Ask a Question related to ASP.NET Security, Design and Development.
-
Josh Buedel #1
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
-
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... -
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... -
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... -
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... -
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... -
Khaled M. Hnidk #2
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..."Microsoft][ODBC> 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 errorto> 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> 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



Reply With Quote

