Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Two Web Services using same NetworkCredential?

Reply
Thread Tools

Two Web Services using same NetworkCredential?

 
 
wgo
Guest
Posts: n/a
 
      10-14-2003
Hi,

I've been trying to figure this out all day and thought someone here might
be able to help.

I have a Windows form app that's using windows basic authentication to
access two different web services. Each web service uses a different
username and password. When I access the first web service everything is
fine, but when I access the second web service it's using the username and
password from the first web service.

I'm making an instance of NetworkCredential, assigning the correct username
and password and then assigning it to the web service proxy before making
each call.

If I switch the order of the calls the first always works and the second
fails because it has the username and password of the first one.

I'm verifying the username received by the web service by using
User.Identity.Name() and Thread.CurrentPrincipal.Identity.Name in the web
service. Both web services are running on the same server.

Does anyone know what's going on here?

Thanks in advance.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Known issues using 2 of the same Web User Controls on the same page mrobins@gmail.com ASP .Net 2 05-04-2006 01:15 PM
Two processes writing to the same XML file at the same time? darrel ASP .Net 2 04-05-2006 05:30 PM
How .NET web services client handles exceptions from Java web services? John ASP .Net Web Services 4 03-31-2006 10:13 PM
Prevent two users from accessing the same file at the same time Shawn ASP .Net 2 02-19-2006 03:11 AM
Two PIX on same subnet with same gateway? This Old Man Cisco 4 10-20-2003 07:27 PM



Advertisments