AnsweredAssumed Answered

Installing APM .NET Agent - GAC Error

Question asked by Ramiro.Estrada on Aug 23, 2012
Latest reply on Feb 26, 2015 by Hiko_Davis
Branched to a new discussion
I am trying ot install the 9.0.8.0 agent on a windows machine running .NET 4.0. I am getting the error below and unsure what the problem may be. The installer is being executed as admin as well as tried running as the service account user for IIS.

Can someone help with determining where the permissions for the mentioned zone are? The registry editor does not allow me to modify the permissions of that key.


Contents of "install_tasks.log"
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Executed command: "C:\Windows\system32\regsvr32.exe" /s /u "E:\wily-dotnet\wily\bin\wily.NativeProfiler.dll"
Exit code was: 0
Stdout was:
Stderr was:
Executed command: "C:\Windows\system32\regsvr32.exe" /s "E:\wily-dotnet\wily\bin\wily.NativeProfiler.dll"
Exit code was: 0
Stdout was:
Stderr was:
Executed command: "E:\wily-dotnet\UninstallerData\dotnet\wilyregtool.exe" -u "E:\wily-dotnet\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.
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at System.Runtime.InteropServices.RegistrationServices.UnregisterComImportedType(Type type, String strAsmVersion)
at System.Runtime.InteropServices.RegistrationServices.UnregisterAssembly(Assembly assembly)
at System.EnterpriseServices.Internal.Publish.UnRegisterAssembly(String AssemblyPath)
at PublishAssembly.Program.Main(String[] args)
The Zone of the assembly that failed was:
MyComputer

Stderr was:
Executed command: "E:\wily-dotnet\UninstallerData\dotnet\wilyregtool.exe" "E:\wily-dotnet\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.
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, String strRuntimeVersion)
at System.Runtime.InteropServices.RegistrationServices.RegisterAssembly(Assembly assembly, AssemblyRegistrationFlags flags)
at System.EnterpriseServices.Internal.Publish.RegisterAssembly(String AssemblyPath)
at PublishAssembly.Program.Main(String[] args)

Stderr was:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Outcomes