Make sure your Global.asax is inheriting from EPiServer.Global, like this:
<%@ Application Language="C#" Inherits="EPiServer.Global" %>
Quan Mai suggestion works
Along with EPiServer.Global. Also have to add following key to <appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
and worked for me.
Ranjit J. Vaity
After publishing the commerce manager to Azure site. I am getting the following error. The site is working fine on development machine pointing to the Azure database.
Here are the packages installed
Cannot register a module after the application has been initialized.
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.InvalidOperationException: Cannot register a module after the application has been initialized.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.