Since a couple of days ago, after we restarted the BizTalk server, we started getting the following warning messages (yellow) in the EventLog every 5 minutes.
Internal error: Failed to refresh tokens. Details: System.TypeInitializationException: The type initializer for 'Microsoft.BizTalk.TokenStore.BizTalkTokenStore' threw an exception. ---> Microsoft.BizTalk.TokenStore.TokenStoreException: Internal error: An error occurred attempting to verify the SSO secret server. ---> System.Runtime.InteropServices.COMException: An error occurred while attempting to access the SSO database. See the event log (on computer 'OURSERVERNAME') for more details.
at Microsoft.EnterpriseSingleSignOn.Interop.ISSOAdmin.GetGlobalInfo(Int32& flags, Int32& auditAppDeleteMax, Int32& auditMappingDeleteMax, Int32& auditNtpLookupMax, Int32& auditXpLookupMax, Int32& ticketTimeout, Int32& credCacheTimeout, String& secretServer, String& SSOAdminGroup, String& affiliateAppMgrGroup) at Microsoft.BizTalk.TokenStore.SSOHelper.IsMasterSecretServer() --- End of inner exception stack trace --- at Microsoft.BizTalk.TokenStore.SSOHelper.IsMasterSecretServer() at Microsoft.BizTalk.TokenStore.BizTalkTokenStore..cctor() --- End of inner exception stack trace --- at Microsoft.BizTalk.TokenStore.BizTalkTokenStore.UpdateIdentifiersListAndUserInfoAsync(EventLog tokenStoreEvent) at Microsoft.BizTalk.TokenStore.Service.TokenRefreshService.<RefreshTimer_Tick>d__11.MoveNext()
I am still investigating to see where the problem is, but I would appreciate if someone knows more about this issue and assist me.
I checked if the BizTalk service user is still in the right groups and I tried to find any missing parts in the BizTalk Server Configuration tool, but I couldn't see what has changed since the restart.
Restore the secret from a backup, which you hopefully made.