Damon Armstrong

Damon Armstrong is a consultant with SystemwarePS in Dallas, Texas. He is also a blogger and author of Pro ASP.NET 2.0 Website Programming and SharePoint 2013 Essentials for Developers. He specializes in the Microsoft stack with a focus on web technologies like MVC, ASP.NET, JavaScript, and SharePoint. When not staying up all night coding, he can be found watching a bunch of kids, studying Biblical topics, playing golf, or recovering from staying up all night coding.

Follow Damon Armstrong via

23 January 2015
23 January 2015

SharePoint Apps and Fixing the “Provided App Differs from Another App with the Same Version and Product ID” Issue

0
2
I’ve seen a number of people posting about this issue on forums and in blogs, and the resolution tends to be to change the version number or the client ID and redeploy.  That approach will work, but it’s a bit of a hack.  Here is another option to try before going that route: Delete the … Read more
0
2
14 January 2015
14 January 2015

C# – Getting the Directory of a Running Executable

0
27
I was trying to remember how to get the directory of a running executable and I ran across this stack overflow entry on the subject: http://stackoverflow.com/questions/1658518/getting-the-absolute-path-of-the-executable-using-c The answer the question is really embedded in the comments to the answer.  The answer says to use System.Reflection.Assembly.GetExecutingAssembly which will work if you call the method directly from … Read more
0
27
10 December 2014
10 December 2014

Enabling Search Indexing on Property Bag Values in O365

0
0
SharePoint allows you to store ad-hoc values in property bags values on SPWeb objects in server-side code.  You can even setup SharePoint search to crawl these properties using the server-side SPWeb.IndexedPropertyKeys property – just add the name of the property bag key to the list of IndexedPropertyKeys and the next time the crawler hits the … Read more
0
0
12 November 2014
12 November 2014

Does Each Call to SP.ClientContext.get_current() Return the Same Instance?

0
0
I was trying to figure this out for some common code that we are putting together so I ran the following test: function TestReferences() {     var contextA = SP.ClientContext.get_current();     var contextB = SP.ClientContext.get_current();     contextA.test = 5;     alert(contextB.test);         //Displays 5     alert(contextA == contextB);  //Results in True     alert(contextA === contextB); //Results … Read more
0
0
11 November 2014
11 November 2014

Fixing “Could not Load File or Assembly” Error for CKS Dev Copy to SharePoint Root Command

0
1
I’ve got a SharePoint solution containing a standard SharePoint solution project and a SharePoint App project.  While trying to use CKS Dev to deploy mapped files for the standard SharePoint solution using context menu command Quick Deploy (CKSDev) > Copy to SharePoint Root I got the following error: Could not load file or assembly ‘AssemblyName.dll’ … Read more
0
1
16 September 2014
16 September 2014

Constants in a Common Assembly

0
0
We were having a discussion about constants and an interesting issue came up.  I’ve always known that when you use a constant it gets interpreted as a literal when your code compiles, but I never made the connection that this is true of referenced constants as well.  This creates a bit of an issue when … Read more
0
0
06 August 2014
06 August 2014

Fixing NativeHR 0x80070002 Error When Retracting or Deploying SharePoint Apps from Visual Studio

0
0
Sometimes when App deployment fails from Visual Studio you will get the following error when trying to retract or redeploy the app: <nativehr>0x80070002</nativehr><nativestack></nativestack> There seems to be some issue with the information in the content database.  To fix the problem I just deleted all of the information from the App tables in the content database.  … Read more
0
0
22 April 2014
22 April 2014

SharePoint 2010 to 2013 Search Service Application Upgrade Issue–Action 15.0.80.0 Fails

0
2
During the course of upgrading a search application database from SharePoint 2010 to SharePoint 2013 we encountered an error in PowerShell: Microsoft.SharePoint.Upgrade.SPUpgradeException: Action 15.0.80.0 of Microsoft.Office.Server.Search.Upgrade.SearchAdminDatabaseSequence failed And we traced it back down to this error in the ULS: SqlError: ‘The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object … Read more
0
2
27 July 2012
27 July 2012

Setting Boolean Values in a SharePoint SPItemEventReceiver

0
1
One of the confusing things about implementing an SPItemEventReceiver that modifies properties on an SPListItem is that while you are given an actual SPListItem with which to work, you’re really not supposed to use it. Instead, you should be modifying properties in the AfterProperties property of the SPItemEventProperties parameter passed into the method. AfterProperties is … Read more
0
1
25 June 2012
25 June 2012

Microsoft Access as a Weapon of War

0
0
A while ago (probably a decade ago, actually) I saw a report on a tracking system maintained by a U.S. Army artillery control unit.  This system was capable of maintaining a bearing on various units in the field to help avoid friendly fire.  I consider the U.S. Army to be the most technologically advanced fighting … Read more
0
0