How to use ASPOSE Word DLL and LIC file in CRM 2011 Plugin or Workflow

I have designed a CRM 2011 plugin and referenced Aspose.dll and Licence file and it works fine in my development machine. But when I deployed the plugin in the CRM server I am getting the following error



------------------------------------------------------

Microsoft CRM Error Report:Error Description:ERROR - RetrieveDocument Could not load file or assembly ‘Aspose.Words, Version=15.3.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. The system cannot find the file specified.

------------------------------------------------------



I am getting the same error even though I copied the DLL and LIC files in the CRM 2011\server\bin\assembly folder and restarted the IIS and CRM related services



What is the best way to use your ASPOSE DLL with the LIC file in CRM 2011 Plugin (or Workflow)?



Regards

Sam.

Hello Sam,

Thanks for your inquiry.

For plugins/workflows we need to copy the dll in CRMWeb/bin/ directory.

Copying of DLL in CRM Installation directory is not recomended by Microsoft.
For this you register the Aspose.Words DLL in GAC on CRM server.

You will find some helpful meterial on how to use Aspose.Words with CRM on this link: https://blog.aspose.com/2015/01/27/aspose-.net-automerge-for-dynamics-crm-20132015-is-now-available

In case of any further inquiries, concerns or questions, please feel free to raise with us and we'll discuss further to resolve.

Many Thanks

Muhammad Zeeshan Shafqat
.NET Specialist
Aspose Marketplace Team
Aspose - Your File Format APIs

Keep in touch! We're on Twitter and Facebook