"Strong name validation failed" exception while trying to start VuGen

  • KM03631631
  • 31-Mar-2020
  • 31-Mar-2020

Summary

"Strong name validation failed" exception while trying to start VuGen

Error

There is an exception(crash) while trying to start/open VuGen:

Exception of type: System.TypeInitializationException. Source: ICSharpCode.SharpDevelop. Occurred in Void set_DomPersistencePath(System.String) method

Exception message is: The type initializer for 'ICSharpCode.SharpDevelop.AssemblyParserService' threw an exception.
Exception trace is:    at ICSharpCode.SharpDevelop.AssemblyParserService.set_DomPersistencePath(String value)
   at HP.Utt.Application.CallHelper.InitProductCore(CallbackHelper callback, StartupSettings properties) in e:\LT\UTT\win32_release\14.0.2981.0\src\Infra\app\HP.UttApplication\CallHelper.cs:line 54
   at HP.Utt.Application.ProductHost..ctor(AppDomain appDomain, StartupSettings startup) in e:\LT\UTT\win32_release\14.0.2981.0\src\Infra\app\HP.UttApplication\ProductHost.cs:line 95
   at HP.LR.Vugen.StartUp.VuGenMain.RunApplication()
   at HP.LR.Vugen.StartUp.VuGenMain.Run()
   at HP.LR.Vugen.StartUp.VuGenMain.Main(String[] args)

Exception of type: System.IO.FileLoadException. Source: ICSharpCode.SharpDevelop. Occurred in Void .cctor() method
Exception message is: Could not load file or assembly 'ICSharpCode.SharpDevelop.Dom, Version=4.1.0.0, Culture=neutral, PublicKeyToken=f829da5c02be14ee' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
Exception trace is:    at ICSharpCode.SharpDevelop.AssemblyParserService..cctor()
Exception of type: System.Security.SecurityException. Source: . Occurred in  method
Exception message is: Strong name validation failed. (Exception from HRESULT: 0x8013141A)

Unhandled exception terminated VuGen

Cause

The problem is caused if Strong name validation feature is enabled on the VuGen machine.

Fix

As a workaround, Strong name validation feature can be disabled by performing the following steps:

  • On 32-bit computers, in the system registry, create a DWORD entry with a value of 0 named AllowStrongNameBypass under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework key.

  • On 64-bit computers, in the system registry, create a DWORD entry with a value of 0 named AllowStrongNameBypass under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework keys.

Due to security policies, sometimes this feature can not be disabled. In those cases, follow the below instructions to fix the issue:

  1. Download the archive corresponding to your version of VuGen
    a) LR_12.63
    b) LR_2020
  2. Backup the original DLLs and replace with the once from the archive