Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
System.Diagnostics.Process.Start() runs the exe successfully when I use visual studion. But when I run the same code from IIS 5.1 it does not work.I have given full control permission to ASP.NET Machine Account.

Regards,
Pranav
Posted
Comments
hitech_s 25-May-12 2:41am    
give permissions to the usertype "everyone"
Pranav Thakur 25-May-12 2:51am    
I have given full control permission to everyone but still did not work

1 solution

It probably does run the code successfully.

On the server.

When you were testing this, and it worked fine, your client and server were on the same physical machine, so when your server code executed the Process.Start the application started and it all worked fine. When you do it in production, your server is a different physcial machine and Process.Start executed in the code behind runs the process on the computer that executes the "Process.Start()" instruction - not on teh client.

As a result, you can't see it, and are assuming it doesn't work. It does, and you are probably annoying the heck out of your host administrator...

You can't run an application on the Client directly from the Server - security prevents it to stop rogue sites doing anything they want with your PC while you browse.
 
Share this answer
 
Comments
Pranav Thakur 25-May-12 2:53am    
I have not yet taken the code to another physical machine(prodcution server). At present i am testing it on IIS 5.1 on my local machine.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900