authorize) throw new UnauthorizedAccessException(); //error occurs here, looks看起来我只是因为尝试实例化/使用UnauthorizedAccessException()类而得到了这个错误。我想这样做,有什么方法可以用吗?Exception Details: System.UnauthorizedAccessException: Attempted to perform an unauth
public IQueryable<SearchResults> GetSearchResults(string searchText);
当用户未经过身份验证时(即当DomainException过期时),抛出一个我认为这是因为当异常抛出到服务器上时,HTTP将'Cache-Control'属性设置为‘私有’,并且当客户机希望稍后执行相同的查询时(一旦用户登录),浏览器甚至不会将请求发送到服务器。
我正在尝试使用Nuget包,Google分发到与他们的Google V3 API接口,详细介绍在中。// The file path the API credentials are stored in.
// The file path the authenticated token for API ac
目前,我正在抛出一个UnauthorizedAccessException,但是这个错误消息没有SP消息那么优雅。throw new UnauthorizedAccessException("User does not have permission to access this list");
任何帮助都将受到高度的感谢