Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error debugging plugin

(0) ShareShare
ReportReport
Posted on by

Hello All,

 while debugging the plugin i am getting the below error.

Unhandled Exception: System.InvalidOperationException: The plug-in type "sample plugin class" does not exist in the specified assembly.

how to resolve this issue.

*This post is locked for comments

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Error debugging plugin

    Although i have register the assembly into the GAC but still the same error i am getting.

    do i need to put this assembly also into the GAC such that i can resolve this issue.

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Error debugging plugin

    Hello Yu Tian ,

    I was checking this in the GAC_64 location but the assembly went into the GAC_MSIL location.

    sorry it was my mistake.

    now i will try again.

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Error debugging plugin

    Hello Yu Tian,

    This also i have tried but it's also not working.

    it throws an error from the powershell.

    is there any other way to resolve this.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error debugging plugin

    Try to copy the dll to the server and run the powershell as admin.

    Then use below code to register the dll into GAC

    set location "your path"

    #Note that you should be running PowerShell as an Administrator

    [System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")            

    $publish = New-Object System.EnterpriseServices.Internal.Publish            

    $publish.GacInstall("your dll path")

    Then iisreset

    check below link for more details:

    www.andrewcbancroft.com/.../using-powershell-to-install-a-dll-into-the-gac

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Error debugging plugin

    Hello Alagu ,

    This url you provided not helpful for windows server 2012.

    any direct link there which will help me in resolving the issue.

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Error debugging plugin

    Hello Alagu,

    I am having windows server 2012.

    and there is not gacutil.exe utility is present.

    how to overcome this trouble.

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: Error debugging plugin

    You can also use gacutil.exe  please refer below

    crmbusiness.wordpress.com/installing-and-uninstalling-dlls-into-the-gac

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Error debugging plugin

    Hello Alagu,

    i have directly copy the dll in the GAC_64 folder as you mentioned and then tried but still not working.

    Throwing the Error as.

    Unhandled Exception: System.InvalidOperationException: The plug-in type "Namespace.sample" does not exist in the specified assembly.

      at PluginProfiler.Library.AppDomainProxy.InitializeProxy(String assemblyFilePath, String typeName, String logFilePath, String compressedreport)

      at PluginProfiler.Library.AppDomainProxy.InitializeProxy(String assemblyFilePath, String typeName, String logFilePath, String compressedreport)

      at PluginProfiler.Library.AppDomainProxy.CreateProxy(Type type, AppDomain domain, OperationConfiguration configuration, IList`1 trustedAssemblies)

      at PluginProfiler.Library.ProfilerExecutionEngine.Execute(ProfilerExecutionConfiguration configuration)

      at PluginProfiler.Library.ProfilerExecutionUtility.Execute(PluginPermissions permissions, ProfilerExecutionConfiguration configuration)

      at PluginProfiler.Library.ProfilerExecutionUtility.Execute(PluginPermissions permissions, OperationConfiguration operation, ProfilerReportingConfiguration reporting, CrmServiceClient administratorProxy, ITracingService tracing)

      at Microsoft.Crm.Tools.DebugPlugin.DebugPluginViewModel.btnExecutionClicked()

    any other way to overcome this.

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: Error debugging plugin

    or you can also use gacutil.exe  please refer below

    crmbusiness.wordpress.com/.../installing-and-uninstalling-dlls-into-the-gac

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans