Process.Start in a web service

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Process.Start in a web service

    When an ASP.NET app calls Process.Start(), is the resulting process run
    under the same user as the ASP.NET app?

    My situation is an ASP.NET app that calls out to an external exe. The
    external exe uses a DSN entry and ends up getting the error "Microsoft][ODBC
    SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not
    associated with a trusted SQL Server connection."

    The call to Process.Start() works perfectly in a non ASP.NET app.

    I do have <identity impersonate="true" userName="DOMAIN\jbuedel"
    password="mypassword" /> in web.config.
    The DSN is set up to use a trusted connection.
    I do have the SQL server set to mixed mode authentication.
    The code "new System.Data.Odbc.OdbcConnection("DSN=JOSHDSN").Ope n();" did
    not throw an exception when run in the web service (just before the call to
    Process.Start). I believe this means my web service was able to use the
    dsn.
    Process.Start() doesn't throw any security exceptions (before and after
    adding <identity/> to web.config).

    How do I get the security 'context' passed down to the external app?

    Thanks,
    Josh


    Josh Buedel Guest

  2. Similar Questions and Discussions

    1. start process as impersonated account for NETSH DHCP?
      Am trying to automatically query and update DHCP servers via a web application with VB.NET. Testing with a privileged account, defined thus in...
    2. Start external Process under different user account in ASP.NET???
      Does anyone know how to get Process.Start() to use the security context of the user that my ASP.NET app is impersonating? It seems that it is...
    3. Process.Start() - Works on DevBox but not on Server...
      Situation On a Windows 2000 workstation a web service using System.Diagnostics.Process. Successfully executes .exe and returns. On Windows 2000...
    4. Start external process from ASP.Net
      Hello: I am currently having problems with an ASP.NET page...I've never programmed in ASP or HTML so all of this is new to me. I have a table that...
    5. fork, childs, zombies, start a process in the background without waiting for it
      Hi I have a parent program, that should loop (eternally), and start other programs without waiting for them, so many programs can be started at...
  3. #2

    Default Re: Process.Start in a web service

    the shortest/simplest way to solve this is to create a dummy component in
    COM+ give it the identity you want make it create the process and call it
    form the web service.
    Hnidk







    "Josh Buedel" <jbuedel@gatewayedi.spam=no.com> wrote in message
    news:e6DOWdZpDHA.1928@TK2MSFTNGP12.phx.gbl...
    > When an ASP.NET app calls Process.Start(), is the resulting process run
    > under the same user as the ASP.NET app?
    >
    > My situation is an ASP.NET app that calls out to an external exe. The
    > external exe uses a DSN entry and ends up getting the error
    "Microsoft][ODBC
    > SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not
    > associated with a trusted SQL Server connection."
    >
    > The call to Process.Start() works perfectly in a non ASP.NET app.
    >
    > I do have <identity impersonate="true" userName="DOMAIN\jbuedel"
    > password="mypassword" /> in web.config.
    > The DSN is set up to use a trusted connection.
    > I do have the SQL server set to mixed mode authentication.
    > The code "new System.Data.Odbc.OdbcConnection("DSN=JOSHDSN").Ope n();" did
    > not throw an exception when run in the web service (just before the call
    to
    > Process.Start). I believe this means my web service was able to use the
    > dsn.
    > Process.Start() doesn't throw any security exceptions (before and after
    > adding <identity/> to web.config).
    >
    > How do I get the security 'context' passed down to the external app?
    >
    > Thanks,
    > Josh
    >
    >

    Khaled M. Hnidk Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139