How to Call EXE in WebForm

  • Thread starter Thread starter Arron
  • Start date Start date
A

Arron

I would like to use WebForm(aspx) to Call WinForm
(test.EXE) in the same computer.
The test.exe will create a new Excel File immediately.

This is my code:
Process.Start("c:\test.exe", "")

When I run the code,The Task Manager Add a new process
named "test",but not thing happens.It do not add a new
Excel file.

When I double click the test.exe directly ,It Create a new
Excel file immediately.

What is the problem?
Thank you!!
 
The problem is likely related to the ASPNET user account.
This user account has limited permissions and has no access to a desktop.
Therefore it cannot display any programs that have a user interface. This
mostly limits you to console apps.
You could might try using impersonation to run under an account that doesn't
have such limitations.
(Try setting it to use your username & pw for initial testing purposes.)
Here's more info:
http://msdn.microsoft.com/library/d...-us/cpguide/html/cpconaspnetimpersonation.asp
 
Back
Top