Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Plugin Profiler error while debugging plugin

Posted on by 676

Hi,

I have one dll referenced in my class library (C#) project. DLL name is "EPPlus". But now when I deployed this as a plugin. Now when I try to debug the plugin after adding plugin profiler, it throws this error:

 "Could not load file or assembly 'EPPlus, Version=3.1.2.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1' or one of its dependencies. The system cannot find the file specified".

Although the dll is present in my project's reference folder.

Any suggestion would be highly appreciated on this.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Profiler error while debugging plugin

    What is the .net version that is used on the dll,is this the same .net version that you have on your project,you might need to open this dll,and build it gain using the relevant .net version and dlls from your sdk.

    To troubleshoot this download the following tool crmdiagtool2011.codeplex.com ,then try gain to debug the plugin,this might just point you to the right direction crmdialog

    How to use this tool  social.microsoft.com/.../how-to-use-crm-diag-tool-

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Profiler error while debugging plugin

    Nope, i don't get any error during deploy the plugin using plugin registration tool.

  • Mohd Tahir Profile Picture
    Mohd Tahir 676 on at
    RE: Plugin Profiler error while debugging plugin

    Hi Fikri Hailal,

    Don't you get any errors while deploying them in plugin registration tool?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Profiler error while debugging plugin

    Hii, it's strange. I have been develop some plugin, and set the key like below withour any "key" error.
    Key-Plugin.png

  • Mohd Tahir Profile Picture
    Mohd Tahir 676 on at
    RE: Plugin Profiler error while debugging plugin

    This is what I get now:

    "Assemblies containing Plugins must be strongly signed. Sign the Assembly using a KeyFile".

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Profiler error while debugging plugin

    Hii, try to remove the password of your key. Usually i create a key for plugin without password. Just give a try and tell me the result

  • Mohd Tahir Profile Picture
    Mohd Tahir 676 on at
    RE: Plugin Profiler error while debugging plugin

    With Password. The same project works when I add key without merging with external Dlls.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Profiler error while debugging plugin

    The "strong key", when you create strong key do you create strong key with password or without password ?

  • Suggested answer
    Nausher Sayeed Profile Picture
    Nausher Sayeed 520 on at
    RE: Plugin Profiler error while debugging plugin

    Use proper merging with this link nicknow.net/dynamics-crm-ilmerge-dll-plugin

    Then you will able to debug

  • Mohd Tahir Profile Picture
    Mohd Tahir 676 on at
    RE: Plugin Profiler error while debugging plugin

    I merged the dlls. Then I created a strong key and built the project. Now when I try to upload/deploy this assembly(plugin), I get this error:

    Invalid assembly public key.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans