I'm writing a deployment application to programmatically deploy site collections and apply templates and master pages. When I try to build the application I get a bunch of errors about a missing assembly reference (Microsoft.SharePoint.Client.Runtime)

I added the missing reference and the errors disappeared to be replaced by a single new error:

2 The type or namespace name 'Runtime' does not exist in the namespace 'Microsoft.SharePoint.Client' (are you missing an assembly reference)

No I'm not missing an assembly reference, I just added it to fix the other errors and the intellisense wavy red line for this error is in the 'Using' statement itself. Its like VS2013 believes the .dll doesn't exist despite it being added to the projects reference list.

I'm completely stuck and google is no help, can anyone shed some light on this for me?


If I remember correctly you also need to add a reference to Microsoft.SharePoint.Client.Runtime.dll. That is a separate assembly, that needs to be referenced on top of the Microsoft.SharePoint.Client.dll

  • I have added it. That is the assembly that is causing the error.
    – JonS
    Jul 10 '15 at 8:24
  • The error message do point at the fact that you have not added it as an actual reference in your project. Can you post a screenshot of the "References" folder in your projekt when you have highlighted the Runtimedll? Also, check for version mismatch between the two dll:s Jul 10 '15 at 8:32

As requested in the comments on my original quesion, here is a screenshot of the assembly reference in the references folder. I can only find one version of this assembly so I don't think its a version mismatch.

enter image description here

  • I would recommend you to update your question with these details, rather than post it as an answer.
    – Asad Refai
    Jul 10 '15 at 9:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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