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.


1 Answer 1


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.


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.