Visio scanner is not running correctly
Jeyaraman85 opened this issue · comments
Hello Team,
when we try to execute the scanner with app id and app scanner , getting below error. could you please check and help me, why its happening.
we validated app id and app secret is not expire.
SharePoint.Visio.Scanner.exe -t -i -s
Unhandled Exception: Microsoft.IdentityModel.SecurityTokenService.RequestFailedE
xception: Token request failed. ---> System.Net.WebException: The remote server
returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at SharePointPnP.IdentityModel.Extensions.S2S.Protocols.OAuth2.OAuth2WebReque
st.GetResponse()
at SharePointPnP.IdentityModel.Extensions.S2S.Protocols.OAuth2.OAuth2S2SClien
t.Issue(String securityTokenServiceUrl, OAuth2AccessTokenRequest oauth2Request)
--- End of inner exception stack trace ---
at SharePointPnP.IdentityModel.Extensions.S2S.Protocols.OAuth2.OAuth2S2SClien
t.Issue(String securityTokenServiceUrl, OAuth2AccessTokenRequest oauth2Request)
at OfficeDevPnP.Core.Utilities.TokenHelper.GetAppOnlyAccessToken(String targe
tPrincipalName, String targetHost, String targetRealm)
at OfficeDevPnP.Core.AuthenticationManager.EnsureToken(String siteUrl, String
realm, String appId, String appSecret, String acsHostUrl, String globalEndPoint
Prefix)