Click here to monitor SSC

Damon Armstrong


Damon Armstrong

SharePoint CSOM and “The node to be inserted is from a different document context.”

0 comments

There are a few reasons you can get the “The node to be inserted is from a different document context.” error, and most of them appear to involve updating certain types of fields multiple times in the same request.  Here is an example: using (var clientContext = new ClientContext(“UrlToYourSite”)) {    //Load all fields   […]

10 February 2016 5:16 pm by
Damon Armstrong

Fixing the "The operation took too long" Error in O365

0 comments

I was attempting to deploy a provider-hosted application to my O365 instance and it was failing with an extremely helpful message reading “The operation took too long”.  In the past, we’ve seen situations where a remote event receiver took too long to execute, but the message that comes back says something about the remote event […]

5 February 2016 9:02 pm by
Damon Armstrong

Fixing the File Not Found Error Opening a SharePoint Site with Spaces in the URL using Site.OpenWeb

0 comments

I was investigating a bug in the SharePoint app I’m working on where a function was failing on sites with URLs containing spaces.  Although I’m not a fan of creating sites with spaces in the URL, SharePoint lets you do it so it’s going to happen.  At first, I thought the issue would be easy […]

28 January 2016 9:32 pm by
Damon Armstrong

Making SharePoint App Access Token Caching work in MVC

0 comments

I’ve put together a couple of SharePoint Apps that use MVC to run the remote web application.  When you use MVC for a SharePoint remote web, Visual Studio automatically includes some helpful files to help manage the SharePoint access token.  I decided to go ahead and try to use these files to help me out, […]

14 January 2016 9:48 pm by
Damon Armstrong

Utility for Renaming Visual Studio Windows

0 comments

Gimmal has a wide array of products, and most of those products have gone through multiple releases.  This means that I often find myself running two or three instances of Visual Studio with different versions of the same solution.  Trying to tab between them while keeping tabs on which version goes with which instance can […]

13 January 2016 4:30 pm by
Damon Armstrong

SharePoint CSOM: Fixing the “Value does not fall within the expected range” Error Calling GetFolderByServerRelativeUrl

0 comments

There are times when you just need to get a reference to a folder in the master page gallery of a site collection using CSOM, and that’s where I found myself the other day.  I had a SharePoint context, so I attempted to get my folder using: var folder = clientContext.Web.GetFolderByServerRelativeUrl(      “/_catalogs/masterpage/SomeFolder”) Unfortunately, instead […]

6 January 2016 12:25 pm by
Damon Armstrong

Missing or Invalid property value for $(MsDeployServiceUrl) Building SharePoint Apps

0 comments

I was using an automated build to package up a SharePoint App when I received the following error: Missing or Invalid property value for $(MsDeployServiceUrl) I used grepWin to search through our project files looking for any references to this value and found none, leading me to initially believe that it was in fact missing.  […]

23 November 2015 8:22 pm by
Damon Armstrong

Getting the Absolute URL of a File in CSOM

0 comments

Sometimes you need the absolute URL of a file in SharePoint, and if you happen to just have the absolute URL then you are in luck.  I suppose, however, that if you already have the absolute URL then you wouldn’t be here reading about how to to get it.  It’s more likely that you have […]

20 October 2015 3:18 pm by
Damon Armstrong

Key Points to Know When Using SP.SOD.executeFunc and SP.SOD.executeOrDelayUntilScriptLoaded

0 comments

So there I was trying to get SharePoint’s script on demand (SOD) working correctly and I thought I had it all figured out.  I ran across a post called SharePoint Scripts on Demand which covers the topic very thoroughly, but there is some behavior between executeOrDelayUntilScriptLoaded and executeFunc that I don’t think is really clearly […]

5 October 2015 12:20 pm by
Damon Armstrong

Managing ClientContext.ExecuteQuery Errors in SharePoint CSOM

0 comments

One of the underlying realities of working with SharePoint’s client side object model (CSOM) is that you are not continuously connected to SharePoint. This means that as you build commands and queries in CSOM that they are stored up and then executed in batch when you call the ClientContext.ExecuteQuery method. Another unfortunate reality of working […]

30 July 2015 2:15 pm by
Older posts

Blog archive