Hey all, I'm getting a Web Exception when trying to connect to a remote Web Service:
"The request failed with HTTP status 401: Authorization Required"
Now, I'm not using default credentials.
Public Shared Function GetCredentials(ByVal url As String) As CredentialCache
Dim credCache As New CredentialCache
credCache.Add(New Uri(url), "Basic", New NetworkCredential(WebConfig.PEWebServiceUsername, WebConfig.PEWebServicePassword))
Return credCache
End Function Being added here:
Me.Cre ...
Go to the complete details ...