Check you have ASP.NET installed, wsdl mapped correctly in IIS -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Davy J Sent: Wednesday, August 13, 2008 3:49 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Problem with Sharepoint and Authentication.
Hi all, I'm completly bald after pulling my hair out for the past two days, everything I've found on the web either doesn't apply or doesn't work in my instance. Problem: I'm trying to call the dev sharepoint server http://devserver/_vti_bin/lists.asmx and I get this in reply. System.Net.WebException occurred Message="The request failed with HTTP status 405: Method Not Allowed." Source="System.Web.Services" StackTrace: at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient Message message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Base.SPLists.Lists.GetListCollection() at Base.Sharepoint.SPGenericFile.AddListItem(String documentReference) Code: SpLists = new SPLists.Lists(); SpLists.Url = serveruri.AbsoluteUri; SpLists = new SPLists(); SpLists.Credentials = new NetworkCredential("bobtheadmin","bobtheadminspassword","devserver"); XmlNode lists = SpLists.GetListCollection(); //Error here. The server name and the user / password have been changed. I just can't figure out what's going on. Stuff I've found / checked. Authentication type is KERBOS and I can't change that, most say to change to NTLM to fix the problem but that's not possible. BobtheAdmin is a local machine admin of the devserver, and is admin of the sharepoint , and has execute / read writes on the _vti_bin folder under c:\program files.... etc. The code was copied from another application that runs on the same server, using the same network credentials. Any ideas? thanks Dave. -- Dave Jones [EMAIL PROTECTED] =================================== This list is hosted by DevelopMentorR http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com