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.
-
Open IIS Manager
-
Expand the Application Pools node
-
Click the ActiveNavigation Application Pool
-
Click Advanced Settings on the right hand pane
-
Set "Enable 32-Bit Applications" to False
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.
- Open IIS Manager
- Expand the Sites node
- Click the ActiveNavigation website
- Open the .NET Trust Levels feature
- Ensure that the setting is set to "Full (Internal)"