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

  • KM03631396
  • 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 open/start 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)

Unhandled exception terminated VuGen

Cause

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

For further information about this feature, please review the below links from Microsoft:

https://docs.microsoft.com/en-us/archive/blogs/keithmg/strong-name-validation-failed-exception-from-hresult-0x8013141a

https://docs.microsoft.com/en-us/dotnet/standard/assembly/disable-strong-name-bypass-feature

Fix

As a workaround, strong name validation can be disabled following the below 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.

If strong name validation cannot be disabled due to security policies, try the following instructions:

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

     HP.SEV.UI.Component.dll

     ICSharpCode.SharpDevelop.Dom.dll