Server Error in 'SuperAgent' Application. Could not load file or assembly 'NetQoS.Core.TimeZone' or one of its dependencies

Document ID : KB000020615
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When trying to access any webpage (SingleSignOn or SuperAgent) on a SuperAgent Master Console that is installed on 64-bit Windows, you get the following error: Server Error in '/SuperAgent' Application. Could not load file or assembly 'NetQoS.Core.TimeZone' 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 'NetQoS.Core.TimeZone' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Solution:

To resolve this issue, you must configure IIS to run 32-bit applications on 64-bit Windows:

  1. Open a command prompt and navigate to %systemdrive%\Inetpub\AdminScripts

  2. Execute the following command:

    cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 1

  3. Type the following command to install the version of ASP.NET 2.0 (32-bit) and to install the script maps at the IIS root and under:

    C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

  4. Make sure that the status of ASP.NET version 2.0.50727 (32-bit) is set to Allowed in the Web service extension list in Internet Information Services Manager.