我正在尝试为可用品牌here的One Drive配置运行OfficeDevPnP代码示例。
我使用TokenHelper.cs
访问个人网站的代码如下所示:
Uri siteUri = new Uri(personalSiteUrl);
string realm = TokenHelper.GetRealmFromTargetUrl(siteUri);
string accessToken = TokenHelper.GetAppOnlyAccessToken(TokenHelper.SharePointPrincipal, siteUri.Authority, realm).AccessToken;
但是它出现以下错误:
The remote server returned an error: (400) Bad Request. - {"error":"invalid_request","error_description":"AADSTS90002: No service namespace named '011105d4-7ab7-4e93-9c79-27b6ac63d593' was found in the data store.\r\nTrace ID: a37994c6-3ab0-4fc5-8ae6-14a4bf6fa753\r\nCorrelation ID: b684b897-007d-4099-bd5f-976941b6d4d2\r\nTimestamp: 2015-10-29 05:54:12Z","error_codes":[90002],"timestamp":"2015-10-29 05:54:12Z","trace_id":"a37994c6-3ab0-4fc5-8ae6-14a4bf6fa753","correlation_id":"b684b897-007d-4099-bd5f-976941b6d4d2"}
我尝试在ULS日志中搜索相关ID,但找不到它们。
请帮助解决或解决此问题。