RE: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

From: mklapp (mklapp_at_zippy.com)
Date: 02/25/04

  • Next message: James Chou: "Reverse Encryption in .NET"
    Date: Wed, 25 Feb 2004 13:56:06 -0800
    
    

    I am working through this very thing (a little different).

    You probably have to build a credential cache.

            Dim credCache As New System.Net.CredentialCache
            Dim uid As String
            Dim pwd As String
            dim ws as new my.webservice

            uid = "realUser"
            pwd = "realPassword"

            credCache.Add(New Uri(ws.Url), "Basic", New System.Net.NetworkCredential(uid, pwd))
            ws.Credentials = credCache

            ws.method()

       This will likely work. Obviously you won't want to keep real Passwords and user ids in your program.


  • Next message: James Chou: "Reverse Encryption in .NET"