AnsweredAssumed Answered

Re: Installing APM .NET Agent - GAC Error

Question asked by afiorentini on Feb 26, 2015
Latest reply on Mar 5, 2015 by afiorentini
Branched from an earlier discussion

Hello !!

 

I got the similar problem:

 

Stderr was:

Executed command: "G:\wily_apm\UninstallerData\dotnet\wilyregtool.exe" -u "G:\wily_apm\wily\bin\wily.Agent.dll"

Exit code was: 1

Stdout was: Error registering assembly or installing to GAC.

The exception was:

System.Security.SecurityException: Requested registry access is not allowed.

 

Stderr was:

Executed command: "G:\wily_apm\UninstallerData\dotnet\wilyregtool.exe" "G:\wily_apm\wily\bin\wily.Agent.dll"

Exit code was: 1

Stdout was: Error registering assembly or installing to GAC.

The exception was:

System.UnauthorizedAccessException: Access to the registry key 'HKEY_CLASSES_ROOT\CLSID\{F618C514-DFB8-11D1-A2CF-00805FC79235}' is denied.

 

 

When I tried to set manually:

 

G:\wily_apm\UninstallerData\dotnet>wilyregtool.exe G:\wily_apm\wily\bin\wily.Agent.dll

Error registering assembly or installing to GAC.

The exception was:

System.UnauthorizedAccessException: Access to the registry key 'HKEY_CLASSES_ROO

T\CLSID\{F618C514-DFB8-11D1-A2CF-00805FC79235}' is denied.

   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)

   at System.Runtime.InteropServices.RegistrationServices.RegisterComImportedType(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase, Str

ing strRuntimeVersion)

   at System.Runtime.InteropServices.RegistrationServices.RegisterAssembly(Assem

bly assembly, AssemblyRegistrationFlags flags)

   at System.EnterpriseServices.Internal.Publish.RegisterAssembly(String Assembl

yPath)

   at PublishAssembly.Program.Main(String[] args)

 

G:\wily_apm\UninstallerData\dotnet>

 

Any advice ?

 

Thanks

Outcomes