Could not load file or assembly or one of its dependencies - Issue in SharePoint Farm solution


Ahamed Fazil Buhari
SharePoint Developer
Published On :   28 Feb 2018
Visit Count
Today :  1    Total :   684



Hello everyone,

In this article we will see how to resolve the following issue which happens when you refer third party dll in your SharePoint farm solution. Here in my solution I use Aspose.Words third party dll which is used to deal with word documents in .NET and used to convert word to other formats like PDF. After deploying your solution in SharePoint, to debug - add w3wp.exe in Attach Process window (Ctrl + Alt + P in VS) and while debugging I came across the below issue.


image

To avoid this error, go Package.package in your solution as show below


image


In Package.package window, go to Advanced tab and give source path to your dll and click on OK.


image


Now the “Could not load file or assembly Aspose.Words,” issue has been resolved. Like this you can refer your dll in the package and avoid this error when you refer some third party dll.

I hope this article is helpful for you. Thank you for reading.

Happy Coding

Ahamed

Categories