CredentialCache.DefaultCredentials always empty?
-
Hi! I'm trying to set the clientcredentials of a wcf-proxy to CredentialCache.DefaultCredentials, but it seems to be empty for some mysterious reason. I have the following code in my web.config:
Any ideas why DefaultCredentials is empty?
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);Morgonen är tröttmans mecka
-
Hi! I'm trying to set the clientcredentials of a wcf-proxy to CredentialCache.DefaultCredentials, but it seems to be empty for some mysterious reason. I have the following code in my web.config:
Any ideas why DefaultCredentials is empty?
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);Morgonen är tröttmans mecka
-
Hi, Whatr credential u r talking abt? Are u trying to pass Network credential? or some thing else
Regards Anil Pal
Yes, network credential. Like this:
service.ClientCredentials.Windows.ClientCredential = (NetworkCredential)System.Net.CredentialCache.DefaultCredentials;
but DefaultCredentials are null even though i have the following settings in web.config:
<authentication mode="Windows" />
<!-- Windows is used, Kerberos is configured as authprovider in sharepoint -->
<identity impersonate="true" />
<!-- Sharepoint is setting impersonate=true as default... -->
<authorization>
<deny users="?" />
<!-- Force authentication by denying anonymous users. Default: allow users="*" -->
</authorization>
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);Morgonen är tröttmans mecka
-
Yes, network credential. Like this:
service.ClientCredentials.Windows.ClientCredential = (NetworkCredential)System.Net.CredentialCache.DefaultCredentials;
but DefaultCredentials are null even though i have the following settings in web.config:
<authentication mode="Windows" />
<!-- Windows is used, Kerberos is configured as authprovider in sharepoint -->
<identity impersonate="true" />
<!-- Sharepoint is setting impersonate=true as default... -->
<authorization>
<deny users="?" />
<!-- Force authentication by denying anonymous users. Default: allow users="*" -->
</authorization>
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);Morgonen är tröttmans mecka
Hi, Ar u working behind the proxy server ? 1.If, No and to assgin empty credential WebProxy _proxy = new WebProxy(); 2. If yes then: WebProxy _proxy = new WebProxy("http://192.168.10.5:8080",true); NetowrkCredential nc = new NetworkCredential(username, password, domain);//if any Then u can assign _proxy and nc object to respective property of your calling code.
Regards Anil Pal