一切正常工作,直到提供了不正确的用户名和密码,并返回401未经授权的错误。我将发送封装在catch语句中以处理错误。但是没有到达catch语句。catch block is not reached when the incorrect username and password are supplied. }
什么是正确的方法来捕获未经授权的错误
但是(9和11)抛出一个401错误:
远程服务器返回一个错误:(401)未经授权。\r\n在Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuildersb) at Micr
显示的错误如下:occurred.---System.UnauthorizedAccessException: The remote serverUnauthorized..TrackingId821d-dbcb88fcce56,TimeStamp:18/07/2016
08:58:21 ---System.Net.WebException: The r