Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi!

I am having an exe file which covnert .up2 audio file to .wav file. I have done some code for it using process.start(). It is working fine in local. But when I run it from it from iis, It do not run the exe file. I don't know why this is happening.

Please help me .

My OS in windows 7
Posted
Comments
Sergey Alexandrovich Kryukov 31-Oct-12 1:24am    
Not enough information. But HTTP server application environment is sandboxed, so you could have permission issues; and the application could be correctly installed on the client environment you used for development, but not on the server host, and... -- who knows what else. What was Windows 7? Client host used for development? Server?
--SA
ravi sharma11 31-Oct-12 1:34am    
It is just about my system. My OS in windows7. I have created virtual directory and accessing it from IIS in my own system. I have given all permission from iis and folder.

Quote:
When you are going to run the exe from IIS you need to provide the full permission in your webserver. then only it will run.

 
Share this answer
 
Comments
ravi sharma11 31-Oct-12 1:44am    
I have already provided full permission. Still facing problem,
If you have full permission then check your exe filepath in iis at runtime and try to catch exception.This may solve your problem.
 
Share this answer
 
Comments
ravi sharma11 31-Oct-12 3:07am    
I have already kept this code in try and catch and tried to write this exception in log file.
ASP.NET Web page and server control code executes in the context of the ASP.NET worker process on the Web server. If you use the Start method in an ASP.NET Web page or server control, the new process executes on the Web server with restricted permissions. The process does not start in the same context as the client browser, and does not have access to the user desktop. http://msdn.microsoft.com/en-us/library/0w4h05yb.aspx-

Give permission for ASP.NET worker process account
to interact with desktop or allow ASP.NET worker process to run in SYSTEM account.

•To know how to allow worker process to run in SYSTEM account and to know the default permissions of ASPNET account, check this article INFO: Process and Request Identity in ASP.NET: http://support.microsoft.com/default.aspx?scid=kb;en-us;317012

- Enable IIS Admin Service to interact with desktop
To configure this, follow this steps.

•a. Open Control Panel and follow these steps: For Windows NT: click Services. For Windows 2000, Windows XP, and .NET Server: click Administrative Tools, and then click Services.

•b. Double-click IIS Admin Service.

•c. On the Log On tab, select the Allow Service to Interact with Desktop check box. Remember to run IIS Admin Service as a local system.
•d. Stop and restart the IIS Admin Service.
 
Share this answer
 

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

  Print Answers RSS


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