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 derfloh 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
Joined
Mar 14, 2002
Messages
10
Location
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 Peter,

Could you explain a bit more what the web service is supposed to do? Also, the second question you had: did you mean how would your asp.net application access your web service?

Oh, I also found this article I thought you might be interested in:

Jack
 
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?
 
whats the error message its giving you?
 
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