none
Erro em webjob RRS feed

  • Pergunta

  • 07/18/2019 21:28:33 > 994c9a: SYS INFO] Status changed to Initializing
    [07/18/2019 21:28:33 > 994c9a: SYS INFO] Run script 'Panco.VendasInternas.ImportacaoUsuariosConsole.exe' with script host - 'WindowsScriptHost'
    [07/18/2019 21:28:33 > 994c9a: SYS INFO] Status changed to Running
    [07/18/2019 21:28:34 > 994c9a: ERR ] 
    [07/18/2019 21:28:34 > 994c9a: ERR ] Unhandled Exception: Microsoft.IdentityModel.SecurityTokenService.RequestFailedException: Token request failed. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
    [07/18/2019 21:28:34 > 994c9a: ERR ]    at System.Net.HttpWebRequest.GetResponse()
    [07/18/2019 21:28:34 > 994c9a: ERR ]    at Microsoft.IdentityModel.S2S.Protocols.OAuth2.OAuth2WebRequest.GetResponse()
    [07/18/2019 21:28:34 > 994c9a: ERR ]    at Microsoft.IdentityModel.S2S.Protocols.OAuth2.OAuth2S2SClient.Issue(String securityTokenServiceUrl, OAuth2AccessTokenRequest oauth2Request)
    [07/18/2019 21:28:34 > 994c9a: ERR ]    --- End of inner exception stack trace ---
    [07/18/2019 21:28:34 > 994c9a: ERR ]    at Microsoft.IdentityModel.S2S.Protocols.OAuth2.OAuth2S2SClient.Issue(String securityTokenServiceUrl, OAuth2AccessTokenRequest oauth2Request)
    [07/18/2019 21:28:34 > 994c9a: ERR ]    at CS.Utils.SP365.TokenHelper.GetAppOnlyAccessToken(String targetPrincipalName, String targetHost, String targetRealm)
    [07/18/2019 21:28:34 > 994c9a: ERR ]    at Panco.VendasInternas.BL.Services.ImportacaoUsuarios.Importar(String siteUrl, String realm, String clientId, String clientSecret, ILogger log) in C:\Users\vinicius.carvalho\Source\Repos\Panco.VendasInternas\Panco.VendasInternas.Backend\Panco.VendasInternas.BL\Services\ImportacaoUsuarios.cs:line 18
    [07/18/2019 21:28:34 > 994c9a: ERR ]    at Panco.VendasInternas.ImportacaoUsuariosConsole.Program.Main(String[] args) in C:\Users\vinicius.carvalho\Source\Repos\Panco.VendasInternas\Panco.VendasInternas.ImportacaoUsuariosConsole\Program.cs:line 16
    [07/18/2019 21:28:34 > 994c9a: SYS INFO] Status changed to Failed
    [07/18/2019 21:28:34 > 994c9a: SYS ERR ] Job failed due to exit code -532462766
    quinta-feira, 18 de julho de 2019 22:00