Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Process.Start in a web service

Reply
Thread Tools

Process.Start in a web service

 
 
Josh Buedel
Guest
Posts: n/a
 
      11-08-2003
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


 
Reply With Quote
 
 
 
 
Khaled M. Hnidk
Guest
Posts: n/a
 
      11-09-2003
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" <=no.com> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
'web service call failed: 500' using ajax hovermenu and web service Not Me ASP .Net 1 06-05-2007 03:09 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat hocho888 Java 1 04-29-2005 08:26 PM
Web Service that calls an external Web Service Isaias Formacio Serna ASP .Net Security 5 02-02-2004 07:38 AM



Advertisments
 



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