Beklager, der er sket en fejl. Brugeren blev ikke oprettet, prøv venligst igen.
Microsoft.IdentityModel.SecurityTokenService.RequestFailedException: Token request failed. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.IdentityModel.S2S.Protocols.OAuth2.OAuth2WebRequest.GetResponse()
at Microsoft.IdentityModel.S2S.Protocols.OAuth2.OAuth2S2SClient.Issue(String securityTokenServiceUrl, OAuth2AccessTokenRequest oauth2Request)
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.S2S.Protocols.OAuth2.OAuth2S2SClient.Issue(String securityTokenServiceUrl, OAuth2AccessTokenRequest oauth2Request)
at ITSM365Web.TokenHelper.GetAppOnlyAccessToken_Custom(String targetPrincipalName, String targetHost, String targetRealm, String ClientId, String ClientSecret) in C:\GH\cloudmission365\ITSM365\ITSM365Web\TokenHelper.cs:line 426
at ITSM365Web.Code.Tools.CreateAppOnlyContext_Custom(String url, String clientId, String clientSecret) in C:\GH\cloudmission365\ITSM365\ITSM365Web\Code\Tools.cs:line 159
at ITSM365Web.Code.Tools.CreateAppOnlyContext_ITSM(String url) in C:\GH\cloudmission365\ITSM365\ITSM365Web\Code\Tools.cs:line 133
at ITSM365Web.Pages.SelfRegistrationKL.CreateChildControls() in C:\GH\cloudmission365\ITSM365\ITSM365Web\Pages\LetSupport_Brugeroprettelser.aspx.cs:line 45