我已經在我的代碼下面的語句:的SharePoint SoapServerException調用GetListItems Web服務
System.Xml.XmlNode items = lstWebs.GetListItems(
"Tasks", string.Empty, listQuery, listViewFields,
string.Empty, listQueryOptions, WorkspaceId);
在執行此操作,會出現以下異常:
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. Exception Source is: System.Web.Services Stack Trace: at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at ImpersonationConsoleApp.MossLists.Lists.GetListItems(String listName, String viewName, XmlNode query, XmlNode viewFields, String rowLimit, XmlNode queryOptions, String webID) in C:\Documents and Settings\david\My Documents\_Dew02SiteCreator\DeWProjectStarter\ImpersonationConsoleApp\Web References\MossLists\Reference.cs:line 435 at ImpersonationConsoleApp.Program.DeleteTasksIfNotExist(DataRow[] drTasksdel, String siteURL) in C:\Documents and Settings\david\My Documents\_Dew02SiteCreator\DeWProjectStarter\ImpersonationConsoleApp\Program.cs:line 1384
我已確認該網站的網址,這是精細。
請問您爲什麼會發生異常?我需要重置IIS嗎?
請找到細節。
SoapException.InnerException is Null.
However the soapExcetion.Detail.InnerText is showing: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
你能檢查出SoapException的InnerException和SoapException.Detail屬性,然後在這裏發佈? – Colin 2009-07-03 12:46:53
你可以寫一些關於參數的更多信息作爲「listQuery」的值嗎?你正在實施什麼類型的應用程序? – jaloplo 2011-01-31 17:32:31