Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing a WebService( execute file .exe)

Status
Not open for further replies.

PeterSC

Programmer
Mar 14, 2002
10
ES
Hi everybody!

How should I write a WebService in C# (with Visual Studio.NET), which servers to execute or launch a program or file .exe. And how should I access since ASP.NET WebApplication (in C#) at this WebService.

This code doesn´t function:

[WebMethod()]

public void start()
{
System.Process.Star("C:\\psc.bat");
}

Thanks for all.
 
Hi!
I have a ASP.NET WebApplication which has a buttom, when I make Click on it I want that it access to my WebService, which it executes a .exe file in the sever. For example

[WebMethod()]
public void Start()
{
System.Process.Start("Notepad.exe");
}

This code is invalid and I don´t why?
 
The error message is anyone. The debug is OK but it seems to do anything.
 
so when its debugging its actually stepping into your web service?
 
Yes.
In the Task Administrator the process is launched but I can´t see. I don´t know if the error is in the code or...
 
Yes. In the Task Administrator, the process is launched, but i don´t see anything. I dont know if it is the code of what...
 
Have you set your asp.net account to have execute priviledges to the notepad.exe?
 
How can I do it, Please?
I return the next Wednesday because I go to holyday. See you. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top