Process.Start... started process not executing any code

Discussion in '.NET' started by jpock76, Aug 23, 2010.

  1. jpock76

    jpock76

    Joined:
    Aug 20, 2010
    Messages:
    1
    I am calling a simple console application (exe) using process.start...

    Within this application, I am writing events to the event log. For the sake of simplicity, let's pretend that is ALL this app does.

    I have c# code behind running on click of a button in an asp.net web form.

    1. Click button, 2. Button code does process.start... 3. exe gets called 4. Event log has entries.

    This process works great when running it on the server. I see the exe start in the background, and exit. Then I see the event logs I created.

    When I visit the webside this code is deployed on.. meaning through the browser of another computer miles away.. This is what happens. (I have a vpn open and using RDP to connect to my server to view what's happening). When I click the button, my exe IS started on the server. It hangs, and never exits without ending task on the server. NO entry is written to the event log. So, the exe starts, but does not seem to be executing any code.

    I am impersonating in my site as an administrator. I set ASP.NET to be able to interact with the desktop. I set permissions on the exe itself to allow access to anyone. I am also impersonating the process by doing essentially Run-As when using process.start... So, the exe when it runs on the server IS started by Administrator. I do not see any reason why the code in that exe will not execute when run from anywhere other than the server. Please help.
    jpock76, Aug 23, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cédric Rossé
    Replies:
    3
    Views:
    22,613
    Anmol_Kumar
    Sep 23, 2008
  2. Mixedmingle
    Replies:
    0
    Views:
    784
    Mixedmingle
    Jan 23, 2009
  3. Joe Van Dyk
    Replies:
    6
    Views:
    160
    Csaba Henk
    Apr 2, 2005
  4. Ted Byers
    Replies:
    9
    Views:
    111
    Ted Byers
    Sep 16, 2008
  5. Jake Barnes
    Replies:
    2
    Views:
    288
Loading...

Share This Page