所有SharePoint服务器错误代码描述位于何处?

时间:2016-07-05 10:02:44

标签: c# .net sharepoint

执行期间,Microsoft.SharePoint.Client.ServerException下面带有ServerErrorCode = -2147024894的代码已被抛出。但我不知道有关此代码的任何信息。您可能知道在哪里可以找到SP ServerErrorCodes与其描述之间的对应关系吗?

private SP.Folder GetFolderByRelativeUrl(string folderRelativePath)
{
    var folder = _spClientContext.SpContext.Web.GetFolderByServerRelativeUrl(folderRelativePath);
    _spClientContext.SpContext.Load(folder);
    _spClientContext.SpContext.ExecuteQuery(); // here exception is thrown
    return folder;
}

MSDN没有关于代码说明的信息。

更新:

完整描述

Microsoft.SharePoint.Client.ServerException: File Not Found.
   at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
   at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
   ...

1 个答案:

答案 0 :(得分:3)

最后,我偶然找到了。

SharePoint server erros codes