Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
The request failed with HTTP status 401: Unauthorized
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Brock Allen" data-source="post: 516138"><p>Sounds like IIS is using integrated authentication for that application.</p><p>Your browser supplies the credentials of the logged in user, whereas the</p><p>web service proxy does not. You can either change the code for your web service</p><p>proxy to 1) hard code the credntials, 2) prompt the user and pass those credentials,</p><p>or 3) use the current logged in user's credentials. Check out the Credentials</p><p>property of teh web service proxy. Set it to CredentialCache.DefaultCredentials</p><p>to get the thrid behavior I listed. For the first or second, use an instance</p><p>of the System.Net.NEtworkCredential class.</p></blockquote><p></p>
[QUOTE="Brock Allen, post: 516138"] Sounds like IIS is using integrated authentication for that application. Your browser supplies the credentials of the logged in user, whereas the web service proxy does not. You can either change the code for your web service proxy to 1) hard code the credntials, 2) prompt the user and pass those credentials, or 3) use the current logged in user's credentials. Check out the Credentials property of teh web service proxy. Set it to CredentialCache.DefaultCredentials to get the thrid behavior I listed. For the first or second, use an instance of the System.Net.NEtworkCredential class. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
The request failed with HTTP status 401: Unauthorized
Top