Quantcast
Channel: CRM Development Forum
Viewing all articles
Browse latest Browse all 888

Plug-in can't find referenced assembly - Deploying plug-in with SDK to DB

$
0
0

Hello everyone,

I'm creating a plugin that will utilizes an assembly. I've been having trouble getting it to work though.

[I can't add images so please forgive my "all text" post]

I have a solution in visual studio 2010 Professional and i'm using the SDK for Dynamics CRM 2011. My solution includes a 'PluginPackage' project for deploying my plug-in and a 'plugins' solution for a plugin. The plugin project has a "PdfSharp.dll" Reference.

The plugin on it's own (without the referenced assembly) works fine. But when i reference the assembly .dll in my project and deploy it, i get this error in run-time:

Could not load file or assembly 'PdfSharp, Version=1.32.2608.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb' or one of its dependencies. The system cannot find the file specified.

I know that the SDK deploys the plug-in to the database. I pasted the 'PdfSharp.dll' file to:

  • C:\Program Files\Microsoft Dynamics CRM\Server\bin
  • C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly
  • C:\Windows\assembly                     -> (GAC)

The assembly filename, version and public key token are all the same as in the error message.

Any info on how to solve this without using ILMerge would be very much appreciated.

Also

I checked the references that PdfSharp.dll has:

  • System
  • System.Data
  • System.Drawing
  • System.Windows.Forms
  • System.XML

Which are all in the GAC.

Thanks,

Selvihan Batırbek


Viewing all articles
Browse latest Browse all 888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>