Damon Armstrong

Damon Armstrong is a Senior Engineering Team Lead with GimmalSoft in Dallas, Texas, and author of Pro ASP.NET 2.0 Website Programming. He specializes in Microsoft technologies with a focus on SharePoint and ASP.NET. When not staying up all night coding, he can be found playing disc golf, softball, working on something for Carrollton Young Life, or recovering from staying up all night coding.

10 February 2016
10 February 2016

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

2
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   … Read more
2
13 January 2016
13 January 2016

Utility for Renaming Visual Studio Windows

0
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 … Read more
0
06 January 2016
06 January 2016

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

0
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 … Read more
0
23 November 2015
23 November 2015

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

0
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.  … Read more
0
05 October 2015
05 October 2015

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

7
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 … Read more
7
30 July 2015
30 July 2015

Managing ClientContext.ExecuteQuery Errors in SharePoint CSOM

6
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 … Read more
6
16 June 2015
16 June 2015

Incorrect Client ID in SharePoint App Package

0
Interesting issue today.  I was attempting to install a SharePoint app today and ran into the following error: 8fff7a1f-f0ea-4d73-8c7d-aa97279b6d20 Stack trace:   at Microsoft.SharePoint.SPUser.get_UserToken()    at Microsoft.SharePoint.Lifecycle.SPAppLifecycleEventCalloutTask.CallRemoteEventReceiver(Uri url, SPAppInstance instance)    at Microsoft.SharePoint.Lifecycle.SPAppLifecycleEventCalloutTask.CallRemoteEventReceiver(SPAppInstance instance)    at Microsoft.SharePoint.Lifecycle.SPAppLifecycleEventCalloutTask.Deploy()    at Microsoft.SharePoint.Administration.SPAppTask.DeployOperation()    at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)    … Read more
0
12 March 2015
12 March 2015

Fixing “An update error has occurred” When Modifying Alternate Access Mappings in SharePoint

0
A while back, I made  change to my SharePoint configuration to modify my alternate access mappings.  For some unknown reason, the mappings keep reverting back to their original state and when I go to modify them again, I get the following error: An update conflict has occurred, and you must re-try this action. The object … Read more
0