System.net.credentialcache.defaultcredentials is always empty in the MOSS 2007 Web Part

I am trying to pass user credentials to webservice using

system.net.credentialcache.defaultcredentials in the MOSS 2007 web part. But credentials are always always empty. I use Integrated Windows Authentication

+5
source share
3 answers

You will never see credentials when debugging. But they will be correctly transferred to where they are needed. And when using anonymous authentication, the client will not send the authentication header that will be used. You need to disable anonymous authentication.

+11
source

? , . -

http://msdn.microsoft.com/en-us/library/system.net.credentialcache.defaultcredentials.aspx

MSDN - " ICredentials, DefaultCredentials, , ".

- API , , , .

+5

, . . . - .

  • Windows
  • , Windows 7, , , . . , .
+1

All Articles