几个月前,我写了一个windows服务,它使用_vti_bin/lists.asmx函数GetListItemChanges来ping一个Sharepoint列表。直到几个星期前,当我的公司将我们的Sharepoint实例升级到SP1时,它工作良好。
现在,每当我的服务尝试访问SharePoint我收到401.1身份验证错误:通过网络服务访问Sharepoint列表时发生身份验证错误
错误:
You are not authorized to view this page
You do not have permission to view this directory or page using the credentials that you supplied.
Please try the following: Contact the Web site administrator if you believe you should be able to view this directory or page.
HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
Internet Information Services (IIS)
我已经检查过我的网站上的权限没有改变。这里是在我称之为列表的代码:
Lists listsService = new Lists();
listsService.Credentials = new NetworkCredential("UserName", "Password", "domain");
Result = listsService.GetListItemChanges("List name", null, dTime.ToString(), null);
它也被带到了我的注意,基本身份验证可能已经在我们的农场被禁用。我不相信我在使用,但我可能弄错了。