Call .exe from asp.net with c#
Hi all,
I'm using visual web developer to develop my asp.net applications. The requirement is to call an executable file from one of the aspx pages on the click event of a button.
The good news is that I've achieved it using the process class function and it runs fine when I start debugging from the Visual web developer environment.
Here comes the bad news. When I deploy this page on localhost and click on the button, the desired process starts < I can say this because it's there in the task manager's process tab > but the console application <window> is not displayed. < Also the application tab of the task manager doesn't have this exe file shown >
My observation:
When I run the page with Visual Web Developer environment, the invoked application runs with my user-name against it. But when I run the page after deploying at the local-host, it runs with ASPNET user-name against it.
My tries:
I tried to load window's user profile and tried to run it... It loaded the process with my user-name alright, but it abruptly ended with a 0x00000142 error < I aint sure about the number of 0s it has :) > I looked up in Google and found that this error has to do something with user.dll
Please Help :( :
Now you know what kind of mess I'm in, please try and help me get out of this.
|