DX Application Performance Management

Expand all | Collapse all

Re: Installing APM .NET Agent - GAC Error

Jump to Best Answer
  • 1.  Re: Installing APM .NET Agent - GAC Error

    Posted 02-26-2015 10:06 AM

    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



  • 2.  Re: Installing APM .NET Agent - GAC Error

    Posted 02-26-2015 10:40 AM

    Run the tool from an administrator prompt.



  • 3.  Re: Installing APM .NET Agent - GAC Error

    Posted 02-26-2015 10:49 AM

    Hello Haruhiko !

     

    I tried with Administrator msdos prompt and explorer with admin rights but the problem persist (move Agent.dll to c:\windows\assembly).

    error.png

     

    Thanks for your response.



  • 4.  Re: Installing APM .NET Agent - GAC Error

    Posted 02-26-2015 11:01 AM

    So you're trying to uninstall the agent, correct?

     

    Why not just uninstall the agent from the 'Programs and Features' in the Control Panel?



  • 5.  Re: Installing APM .NET Agent - GAC Error

    Posted 02-26-2015 11:31 AM

    The error you posted in the old thread shows a problem with the way the old tool works.

    This error is a known problem with Win2K8. This is a Microsoft problem.

     

    When Win2K8 came out, they changed how DLLs are registered in the GAC. You must now use the commandline tool 'gacutils'. You can read more about it in MSDN.



  • 6.  Re: Installing APM .NET Agent - GAC Error
    Best Answer