SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a program which was developed on SP2010. It refers SharePoint dll in a c# console program to get SPWeb info, then get some library info.

Now, I need to make it work in SP2013. When I run it, it shows this error:

could not load file or assembly 'Microsoft.SharePoint.Library, Version=, culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies

Is there a way to get around this? Or, we have to compile it in a SP2013 environment? The previous developer did not leave the source code, so we try to see whether we can get around of recompiling it.


share|improve this question
up vote 1 down vote accepted

As far as I know, you will need to get into the code to upgrade it. There will be references in it to version 14, as you have above. This refers to 2010. You will need to change them to 15 for 2013.

share|improve this answer
thanks. your answer confirmed what I thought. – urlreader Aug 8 '14 at 20:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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