Server Error in '/' Application: RE2

By default, the installation of Discovery Center should work without any special configuration required within IIS. In customized environments where hardening settings have been applied, we have observed settings which inhibit the use of Discovery Center.

Below are some cases where this can occur.
We have included the error message along with the setting needed to correct the behavior.

 

Could not Load File or Assembly 'Re2.Net'

Server Error in '/' Application.


Could not load file or assembly 'Re2.Net' or one of its dependencies. An attempt was made to load a program with an incorrect format.

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.BadImageFormatException: Could not load file or assembly 'Re2.Net' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Resolution
Follow the steps below to ensure the application pool is configured correctly.

  1. Open IIS Manager

  2. Expand the Application Pools node

  3. Click the ActiveNavigation Application Pool

  4. Click Advanced Settings on the right hand pane

  5. Set "Enable 32-Bit Applications" to False

mceclip0 (6)

 

Unverifiable Code Failed Policy Check

Server Error in '/' Application.


Unverifiable code failed policy check. (Exception from HRESULT: 0x80131402)

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.IO.FileLoadException: Unverifiable code failed policy check. (Exception from HRESULT: 0x80131402)

Resolution
Follow the steps below to ensure the web site is configured correctly.

  1. Open IIS Manager
  2. Expand the Sites node
  3. Click the ActiveNavigation website
  4. Open the .NET Trust Levels feature
  5. Ensure that the setting is set to "Full (Internal)"

mceclip1 (7)