473,395 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

CredentialCache.DefaultCredentials

Hi

I'm using the following code to get a response froma server which uses IIS6
and Integrated Security. I don't understand where the credentials are stored
on the client, i.e. the Visual Studio web server. How do I clear them? What
are DefaultCredentials? The username and password I've been using to connect
to a remote server are not the client, i.e. XP logged on user account. I
don't know where the DefaultCredentials has picked them up from.

HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("https://a.server.com/admin");
request.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

If someone provides me with a username and password to log on to their IIS6
machine using the Integrated Security how to I explicitly set the
credentials?

thanks
Andrew
Nov 26 '07 #1
2 1656
Thanks for that. How can I find a list of stored default and other
credentials?

Cheers
Andrew
Nov 27 '07 #2
Hi Andrew,

I'm not sure what do you mean by "find a list of stored default and other
credentials". Could you please depict more?
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve Ng | last post by:
Hello, I have a windows form application that needs to pass through a proxy to get access to the internet. As a test, I have successfully hardcoded my login/password/domain combination and been...
0
by: Craig | last post by:
We have an anonymous web application trying to talk to a windows authenticated webservice. This is currently failing with 401 Access Denied errors. We have found that we can get this to work by...
1
by: | last post by:
According to miscellaneous posts, this should work to the effect of helping overcome FormsAuthentication when the user is already logged in. In my case, the page that gets scraped is the forms...
2
by: Tim Cowan | last post by:
Hi, I am using .NET 2.0 and I want to send mail that uses SMTP authorization. I have found this in the help: client.Credentials = System.Net.CredentialCache.DefaultCredentials; My question...
0
by: Niklas Uhlin | last post by:
I have an ASP.NET 2.0 site running on XP SP2 that uses Windows Integrated Authetication. In web.config I have the following: <system.web> <authentication mode="Windows" /> <identity...
0
by: JOS | last post by:
Hi, I have a web application with the following in the web.config file 1 <authentication mode="Windows" /> 2 <identity impersonate="true" /> My IIS settings are shown below ...
3
by: Anrew | last post by:
Hi Guys, I have not simple question: How can i extract username and password from the CredentialCache.DefaultCredentials property. Any help appreciated. Thx in advance.
0
by: Joerg Lueders | last post by:
Hi, I created simple code to get information from a Web Service. I need to pass credentials for the Web Service as well as for the Proxy Server (static address). This works fine as long as...
11
by: ckb | last post by:
Hi, I have an active x ctrl on my page and using asp.net I i have built a web page that has a web service named e1.I am using CreateSessionImpersonated() but it does not Impersonate and every time...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.