Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / February 2008

Tip: Looking for answers? Try searching our database.

System.Net.CredentialCache.DefaultNetworkCredentials

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
william - 05 Feb 2008 20:34 GMT
Hi,

I want to get current login credentials by using
System.Net.CredentialCache.DefaultNetworkCredentials in my c# windows form
application, but when I exam it by setting breakpoint, it's empty. Why?

Thanks.

william
Henning Krause [MVP - Exchange] - 05 Feb 2008 22:40 GMT
Hello,

you can't get the username/password of the currently logged on user,
DefaultNetworkCredential is always empty.

What do you need the username/password for?

Kind regards,
Henning

> Hi,
>
[quoted text clipped - 5 lines]
>
> william
william - 06 Feb 2008 15:25 GMT
Hi Henning,

I want to assign it to a web service's credentials.  e.g.
faWS.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;

Thanks.

William

> Hello,
>
[quoted text clipped - 15 lines]
> >
> > william
Henning Krause [MVP - Exchange] - 07 Feb 2008 12:55 GMT
Hello,

you can do that - The WebService proxy will use windows authentication in
this case.

Just ignore that it's empty.

Kind regards,
Henning

> Hi Henning,
>
[quoted text clipped - 25 lines]
>> >
>> > william

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.