幾個月前,我寫了一個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);
它也被帶到了我的注意,基本身份驗證可能已經在我們的農場被禁用。我不相信我在使用,但我可能弄錯了。