Server error in Commerce Server caused by deprecated authentication modules


Description

The system might raise a Server Error in the "/CSharpSite" Application message following a deployment. The issue is caused by using one of the following deprecated authentication methods:

The error details are as follows:

Server Error in '/CSharpSite' Application.
--------------------------------------------------------------------------------
AuthManager(CommerceServer): Error reading Commerce Server administration database. Site name: 'CSharpSite' Auth resource property: 's_AuthManager_EncryptionKey' HRESULT: 0x800A0CC1 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: AuthManager(CommerceServer): Error reading Commerce Server administration database. Site name: 'CSharpSite' Auth resource property: 's_AuthManager_EncryptionKey' HRESULT: 0x800A0CC1

This issue affects Commerce Server 10.0 and later versions.

Solution

To fix the error:

  1. Remove the HttpModule from your web.config if possible.
  2. Upgrade to a different authentication method such as .Net Authentication or oAuth.