Beklager, der er sket en fejl. Brugeren blev ikke oprettet, prøv venligst igen.
System.TypeInitializationException: The type initializer for 'ITSM365Web.TokenHelper' threw an exception. ---> 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 158 at ITSM365Web.Code.Tools.GetAllSecrets(String ClientId, Boolean trimUrl) in C:\GH\cloudmission365\ITSM365\ITSM365Web\Code\Tools.cs:line 65 at ITSM365Web.TokenHelper..cctor() in C:\GH\cloudmission365\ITSM365\ITSM365Web\TokenHelper.cs:line 819 --- End of inner exception stack trace --- at ITSM365Web.TokenHelper.GetAppOnlyAccessToken_Custom(String targetPrincipalName, String targetHost, String targetRealm, String ClientId, String ClientSecret) in C:\GH\cloudmission365\ITSM365\ITSM365Web\TokenHelper.cs:line 413 at ITSM365Web.Code.Tools.CreateAppOnlyContext_Custom(String url, String clientId, String clientSecret) in C:\GH\cloudmission365\ITSM365\ITSM365Web\Code\Tools.cs:line 158 at ITSM365Web.Code.Tools.GetAllSecrets(String ClientId, Boolean trimUrl) in C:\GH\cloudmission365\ITSM365\ITSM365Web\Code\Tools.cs:line 65 at ITSM365Web.Code.Tools.CreateAppOnlyContext_ITSM(String url) in C:\GH\cloudmission365\ITSM365\ITSM365Web\Code\Tools.cs:line 108 at ITSM365Web.Pages.SelfRegistrationKL.CreateChildControls() in C:\GH\cloudmission365\ITSM365\ITSM365Web\Pages\LetSupport_Brugeroprettelser.aspx.cs:line 42