Groups | Blog | Home
all groups > dotnet security > july 2006 >

dotnet security : Console App Security Context


Cuperman
7/12/2006 8:52:29 AM
Hi All,

I am calling a web service from a console app. It appears that the WS
call does not have any credentials and so fails with a 401 error.

How do i determine the account my console app is running as?
How do I reset this to run as either my account (the one I am logged in
with) or a specified account (login / password combo)?

Many thanks,
Mark
Dominick Baier
7/12/2006 4:07:51 PM
Hi,

you can set the credentials on the client proxy using the Credentials property.

For using your current windows identity, set the UseDefaultCredentials property
to true (2.0 only)


[quoted text, click to view]

AddThis Social Bookmark Button