K
kris_scheyer
Hi,
I have a little .exe file that I want the C# code behind of my web
application to execute as a different user. The executable is supposed
to take a screenshot of the server's display and save the image and it
has to be run under the currently logged on user otherwise the
generated image just turns out black.
My problem is when I click the button on the browser thats supposed to
run the exe file a message box appears on the server saying that the
file failed to initialise properly:
The application failed to initialize properly (0xc0000142). Click on OK
to terminate the application.
That's the exact error message I'm getting with no other details. I've
tried giving the ASP account on the server full permissions with no
luck. The user account that is currently logged on, which is the user
account the exe is supposed to run under has full permissions as well.
What I'm using is ASP.Net2.0 and the new ProcessStartInfo.UserName and
ProcessStartInfo.Password arguments to run the exe under a different
user account.
If anyone has any alternative solutions on how to get this done or know
any way to fix this please let me know.
Thanks!
Kris
I have a little .exe file that I want the C# code behind of my web
application to execute as a different user. The executable is supposed
to take a screenshot of the server's display and save the image and it
has to be run under the currently logged on user otherwise the
generated image just turns out black.
My problem is when I click the button on the browser thats supposed to
run the exe file a message box appears on the server saying that the
file failed to initialise properly:
The application failed to initialize properly (0xc0000142). Click on OK
to terminate the application.
That's the exact error message I'm getting with no other details. I've
tried giving the ASP account on the server full permissions with no
luck. The user account that is currently logged on, which is the user
account the exe is supposed to run under has full permissions as well.
What I'm using is ASP.Net2.0 and the new ProcessStartInfo.UserName and
ProcessStartInfo.Password arguments to run the exe under a different
user account.
If anyone has any alternative solutions on how to get this done or know
any way to fix this please let me know.
Thanks!
Kris