Greetings,
I have a little odd situation that needs some help from experts like you.
We are an internal webapp (within the company) that is set as Windows Authentication. The site captures the user perfectly.
Now, there is one feature that we validate some other websites' headers by using the anonymous user account. So the following codes don't seem to be working:
The System.Net.CredentialCache.DefaultNetworkCredentials is using as the current logged in user account, not anonymous account that we would like. How do I provide the anonymous account in this case?
Added: The codes above works in my local machine but once I publish it in web server, it breaks....
Thanks
john9569
_____________________________________________
live simply, love generously, care deeply, speak kindly
If you want the request to be anonymous there is no need set any credentials.
Lou Prete [MSFT]
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
le9569
Participant
970 Points
265 Posts
How to use anonymous user account in a windows authenticated website
Nov 15, 2012 09:08 PM|LINK
Greetings,
I have a little odd situation that needs some help from experts like you.
We are an internal webapp (within the company) that is set as Windows Authentication. The site captures the user perfectly.
Now, there is one feature that we validate some other websites' headers by using the anonymous user account. So the following codes don't seem to be working:
The System.Net.CredentialCache.DefaultNetworkCredentials is using as the current logged in user account, not anonymous account that we would like. How do I provide the anonymous account in this case?
Added: The codes above works in my local machine but once I publish it in web server, it breaks....
Thanks
john9569
live simply, love generously, care deeply, speak kindly
lprete
Member
385 Points
57 Posts
Microsoft
Re: How to use anonymous user account in a windows authenticated website
Nov 20, 2012 02:35 PM|LINK
If you want the request to be anonymous there is no need set any credentials.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.