Take the 2-minute tour ×  I am trying to connect to core service
giving a particular user's credentials most of the time it works
but sometimes I get proxy 407 error (as written in title of this
question), this auto get resolved after 10-15 minutes and then I
am able to connect to core service again. Is there a permanent
solution for this issue? I know this is a simple question but I
can't give credentials as
System.Net.CredentialCache.DefaultCredentials; or as other
solution available on web. Below is the code of my connection to
core service, this problem occurs even if I call client.Close()
after each operation.
core_service.ServiceReference1.SessionAwareCoreService2010Client
client = new SessionAwareCoreService2010Client();
client.ClientCredentials.Windows.ClientCredential.UserName =
"myUserName";
client.ClientCredentials.Windows.ClientCredential.Password =
"myPassword"; client.Open();   if (client.State ==
System.ServiceModel.CommunicationState.Opened)
// some code