I have a project that needs to use Microsoft Exchange WebServices (Microsoft.Exchange.WebServices.dll). After I deployed the solution into SharePoint 2016, sometimes I receive the following error:
System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.Exchange.WebServices, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.
Re-deploying the solution may or may not be able to fix it.
So I opened the project in Visual Studio and double click the “Package.package”, and then go to the “Advanced” tab, and click “Add”:
Add the following info and then click “OK”:
If you go to the Manifest tab, you can see the assembly as been added:
Re-deploy the solution.