March 16, 2012

The browser or gateway element with ID 'Safari1Plus' cannot be found

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The browser or gateway element with ID 'Safari1Plus' cannot be found.

This is because the browser definitions that were borrowed from Ocean's Place are inheriting from definitions that existed on the .NET framework v2 and no longer exist on v4.
 
There are two ways around this:
  • Replacing all the definitions from .NET4 with the old ones from .NET2
              You can go the IIS aplication pool, and change the framework version of the apppool to v2
  • Remove Ocean's definitions

Could not load type 'System.ServiceModel.Activation.HttpModule'

If you install DotNet framework 4.0 on IIS server and then enable DotNet 3.0 or 3.5 WCF features, you might see following error when browse your application site made of ASP.NET 4.0.

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
  • 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.TypeLoadException: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Solution:

  • In 64 bit machine:

            C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -i
  • Others:

            C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i