|
-
September 6th, 2008, 11:11 AM
#1
Help with ASP.net (c#) Web service
Hi ....
I have written this web service that starts a process, here is the code
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Threading;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Diagnostics;
using System.Data.SqlClient;
[WebService(Name="sys_info", Namespace = "system_info_service")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class system_information : System.Web.Services.WebService
{
public system_information () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public void control_process(string process_name)
{
Process p = new Process();
p.StartInfo.FileName = process_name;
p.Start();
}
}
when i run the webservice in visual studio ...it runs fine ...lets say if i pass the
argument C:\Windows\Notepad.exe to the control_process web method, it opens notepad...
But when i publish the web application to the local IIS folder and then run it from a browser ..it does not work ....i am able to access the web service ...and invoke the method ..but once invoked, nothing happens ....
does anyone have an idea as to what might be wrong ? its definitely something to do with the IIS settings ...but I don't know what ...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|