実行中にServerErrorCode = -2147024894
とMicrosoft.SharePoint.Client.ServerException
のコードがスローされました。しかし、私はこのコードに関する情報は知らない。 SP ServerErrorCodesとその記述の間の対応をどこで見つけることができますか?すべてのSharePointサーバーのエラーコードの説明はどこにありますか?
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にはコードの説明がありません。 UPDATED
:
詳しい説明最後に
Microsoft.SharePoint.Client.ServerException: File Not Found.
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
...
*フル*例外は、 'Exception.ToString()'の呼び出しの結果、つまり、何ですか? –
@ PanagiotisKanavos私はポスト – isxaker
を更新しました。私はその質問に答えると思います。既に例外の理由がある場合、コードは必要ありません。それは完全な例外ではありません。完全なものは、テキストに* inner *例外と異なるエラーを区別するために使用できるプロパティが含まれているため、すべてを意味します。 –