ramszone:When I host the application in the server(
Windows server 2003 ), the exe file is not executing.
I have given full permissions to aspnet user.
Hi Rams,
Since your operating system on the server is Windows Server 2003, the default process identity of ASP.NET is “Network Service” instead of “ASPNET”. To solve this issue, you can change the identity of the corresponding application pool to “Local System”.
1. Open IIS manager.
2. Expand the “Application Pools” node.
3. Right click the coresponding application pool, and then select “Properties”.
4. Click the “Identity” tab, and select the “Local System” identity in the “Predefined” dropdown list.
However, the above method can result in security risk because the process identity of ASP.NET is too powerful. You may consider impersonating an authenticating user in code, which only for starting process. You can find the code about how to implement it in the following link:
How to implement impersonation in an ASP.NET application
http://support.microsoft.com/kb/306158
For your reference, you will know the reason why ASP.NET cannot start a process from the following article though it applies to ASP.NET 1.0.
Unable to Start a Process from ASP.NET
http://support.microsoft.com/kb/555134