Sharepoint Webservice 401 error
问题 I'm trying to call sharepoint webservices in C# console application. The code works fine when I use my local system's WSS as target application but don't work with another server accessible over the web. Following is my code. Webs service = new Webs(); service.PreAuthenticate = true; service.Credentials = new System.Net.NetworkCredential(login, password); //service.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; service.Url = url + @"/_vti_bin/webs.asmx"; XmlNode sites =