0

I have a WCF service that uses the DLL : Microsoft.sharepoint

When I deployed it to the server that does not have sharepoint installed on it then I got the below error :

Could not load file or assembly 'Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies

Can anyone help me with this issue ?

3
  • Did you include the Microsoft.SharePoint DLL in the bin folder of the service?
    – Tim
    Aug 30, 2015 at 17:00
  • Also note, that you may not actually be allowed to simply copy the DLL with your application. Check out this for further information. (Or google "sharepoint assembly redistribution"). Aug 31, 2015 at 6:39
  • If in your code use Sharepoint Object Model, the deploy of the dll is not sufficient but require Sharepoint Installed.
    – Max
    Aug 31, 2015 at 8:02

1 Answer 1

0

Actually I figured out that I can not using server side object model on an environment that does not have SharePoint installed on it. to solve the issue I created a new service that calls the old one ex: make the old one as a client in the new one . using so I will not need to have the SharePoint farm installed on the server hosting the service

1
  • You can deploy a WCF service that uses SharePoint web services in it but not the object model directly unless it is on a SharePoint dedicated front end server. Sep 6, 2015 at 8:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.