473,809 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CredentialCache .DefaultCredent ials

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 DefaultCredenti als? 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 DefaultCredenti als has picked them up from.

HttpWebRequest request =
(HttpWebRequest )WebRequest.Cre ate("https://a.server.com/admin");
request.Credent ials = CredentialCache .DefaultCredent ials;
HttpWebResponse response = (HttpWebRespons e)request.GetRe sponse();

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 1680
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
8317
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 able to gain access through the proxy. I would like to ditch the hardcoded login/password/domain combination and use the settings defined in Internet Explorer. I've read that I can use System.Net.CredentialCache.DefaultCredentials to get the
0
2618
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 writing the following code in the web application before calling the webservice: WebServiceInstance.Credentials = new NetworkCredential("username", "password","domain");
1
1281
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 login page :?(. Somehow the default credentials do not work on the new WebRequest object. Any amount of help will be appreciated,
2
2657
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 is how do I set the username and password? Say the username is bob@home.com and the password is onions, how do I set this? The values could be different on a user by user basis, so I need to apply the settings from
0
1708
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 impersonate="true" /> <authorization> <allow roles="DOMAIN\Group" /> <deny users="*" />
0
1410
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 However the System.Net.CredentialCache.DefaultCredentials is not being
3
2123
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
1339
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 login and pwd are hard-coded. Best would be if the app could use the standard proxy-settings of IE without any login data. But this does not work.
11
20264
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 asks for the user name and the password.The code is Can anybody help me on this please. Thankyou.
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.