473,548 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CredentialCache .DefaultCredent ials always without data

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.

Then I thougt it could be a good idea to use
CredentialCache .DefaultCredent ials to pass the necessary credentials
and to remove the password from the code.

But the debugger always shows me that all content of
CredentialCache .DefaultCredent ials (Domain, User, Pwd) queals "".

Do I have to "fill in" this information first? What is my mistake?

I use .NET Framework 1.1.

Best regards

Joerg

May 7 '07 #1
0 1319

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

Similar topics

0
8282
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...
0
2587
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...
1
1261
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
2628
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...
0
1662
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
1385
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
11
20225
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.
2
1663
by: J055 | last post by:
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...
1
1238
by: silence | last post by:
Hello everybody, The webserver uses kerberos authentication to do webdav requests against an exchange-server and it works fine. My problem is the following... I create a webdav-session object with the CredentialCache-object at session-start for each user. If I open the website on computer A with user A, the webdav-requests are made in the...
0
7512
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...
0
7951
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7803
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...
0
6036
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...
1
5362
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...
0
5082
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...
1
1926
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
1
1051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
751
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.