|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Console App Security ContextHi 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 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) Show quoteHide quote > 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
WindowsIdentity.GetCurrent().Token cannot be used when remoting?
Windows authentication over remoting... possible? Service, Requested registry access is not allowed Creating New Process Under Alternate Credentials (createprocessasuser) RSA Encryption: Saving keys as files, and size of encrypted data code access security across the network Questions about RijndaelManaged and Rijndael How to grant and deny the access to a virtual directory? Encrypt elements in XML file Restrict access to application from "outside" |
|||||||||||||||||||||||