{"id":9396,"date":"2025-12-03T04:09:46","date_gmt":"2025-12-03T04:09:46","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=9396"},"modified":"2025-12-03T04:09:49","modified_gmt":"2025-12-03T04:09:49","slug":"adfs-error-250-1020-1021","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/adfs-error-250-1020-1021","title":{"rendered":"ADFS Error 250 \\ 1020 \\ 1021"},"content":{"rendered":"\n<p>Restart Windows Internal Database then ADFS Services<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Expiration of the artifact failed. \n\nAdditional Data \nException message: \nMSIS3115: Cannot connect to ArtifactStorage in the configuration database. \n\nUser Action \nEnsure that the artifact storage server is configured properly. Troubleshoot network connectivity to the artifact storage server. <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Encountered error during OAuth token request. \n\nAdditional Data \n\nException details: \nMicrosoft.IdentityServer.Web.Protocols.OAuth.Exceptions.OAuthAccessTokenMissingAuthorizationCodeException: MSIS9246: Received invalid OAuth access token request. The 'code' parameter is missing or found empty.\n   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthToken.OAuthAccessTokenRequestContext.ValidateCodeAndThrowOnError()\n   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthToken.OAuthAccessTokenRequestContext.ValidateCore()\n\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Encountered error during OAuth authorization request. \n\nAdditional Data \n\nException details: \nMicrosoft.IdentityServer.Service.ArtifactResolutionService.ArtifactServiceStorageConnectionException: MSIS3115: Cannot connect to ArtifactStorage in the configuration database. ---> System.Data.SqlClient.SqlException: Cannot open database \"AdfsArtifactStore\" requested by the login. The login failed.\nLogin failed for user ''.\n   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)\n   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)\n   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)\n   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)\n   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)\n   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal&amp; connection)\n   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal&amp; connection)\n   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal&amp; connection)\n   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)\n   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)\n   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)\n   at System.Data.SqlClient.SqlConnection.Open()\n   at Microsoft.IdentityServer.Service.ArtifactResolutionService.SqlArtifactStorage.GetSqlConnection(Boolean useCommonArtifactDb)\n   --- End of inner exception stack trace ---\n   at Microsoft.IdentityServer.Service.ArtifactResolutionService.SqlArtifactStorage.GetSqlConnection(Boolean useCommonArtifactDb)\n   at Microsoft.IdentityServer.Service.ArtifactResolutionService.SqlArtifactStorage.CreateSqlCommand(ActionType commandType, Boolean useCommonArtifactDb)\n   at Microsoft.IdentityServer.Service.ArtifactResolutionService.SqlArtifactStorage.BeginAdd(Artifact artifact, AsyncCallback callback, Object state, Boolean useCommonArtifactDb)\n   at Microsoft.IdentityServer.Service.ArtifactResolutionService.ArtifactService.BeginAdd(Artifact artifact, AsyncCallback callback, Object state, Boolean useCommonArtifactDb)\n   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthAuthorizationProtocolHandler.SaveOAuthArtifact(OAuthAuthorizationRequestContext authContext, SecurityTokenElement ssoTokenElement, ArtifactSecurityTokenType tokenType, OAuthAccessTokenResponseMessage tokenResponseMessage)\n   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthAuthorizationProtocolHandler.BuildOAuthStandardAuthorizationResponse(OAuthAuthorizationRequestContext authContext, WrappedHttpListenerContext context, SecurityTokenElement signOnTokenElement, ArtifactSecurityTokenType artifactTokenType, Boolean isSSOSignInAttempt, OAuthAccessTokenResponseMessage tokenResponseMessage)\n   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthAuthorizationProtocolHandler.BuildOAuthAuthorizationResponse(OAuthAuthorizationRequestContext authContext, WrappedHttpListenerContext context, SecurityTokenElement signOnTokenElement, ArtifactSecurityTokenType artifactTokenType, Boolean isSSOSignInAttempt, OAuthAccessTokenResponseMessage tokenResponseMessage)\n   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthAuthorizationProtocolHandler.CreateAuthorizationResponseMessage(OAuthAuthorizationRequestContext authorizationContext, SecurityToken ssoSecurityToken, Boolean ssoSignInAttempted)\n\nSystem.Data.SqlClient.SqlException (0x80131904): Cannot open database \"AdfsArtifactStore\" requested by the login. The login failed.\nLogin failed for user 'PA\\svc_crmadfs'.\n   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)\n   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)\n   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)\n   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)\n   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)\n   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal&amp; connection)\n   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal&amp; connection)\n   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal&amp; connection)\n   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)\n   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)\n   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)\n   at System.Data.SqlClient.SqlConnection.Open()\n   at Microsoft.IdentityServer.Service.ArtifactResolutionService.SqlArtifactStorage.GetSqlConnection(Boolean useCommonArtifactDb)\nClientConnectionId:0a102b4d-a4b6-47bc-8abd-1467be4bb4d5\nError Number:4060,State:1,Class:11\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Restart Windows Internal Database then ADFS Services<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9396","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=9396"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9396\/revisions"}],"predecessor-version":[{"id":9397,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9396\/revisions\/9397"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=9396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=9396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=9396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}