Data import and ‘old’ dates
Running a data importing tool my team had developed I ran into this little gem: “Unhandled Exception: Microsoft.SharePoint.SPInvalidPropertyException: Date Times before 1/1/1970 are not supported”....
View ArticleSharePoint Search: Custom Managed Property Woes
So I was working on some custom search interfaces that my team had built and was getting the infamous “Property doesn’t exist or is used in a manner inconsistent with schema settings”. Now usually this...
View ArticleCreate a Document Set in Code
I have a solution where we need to create custom Documents Set via code, luckily there are some good samples out there. However I ran into a strange piece of behaviour. My Document Sets were appearing...
View ArticleVS 2010: Missing Source Control Icons
So I’m working on a project with a number of other developers at present. However every so often when another developer adds files to source control when they are added to my local solution they appear...
View ArticleDocument Set Limitations and Considerations in SharePoint 2010
First of all, go and read the excellent article Document Set Limitations and Considerations in SharePoint 2010 written by Michal Pisarek. Ok, you’re back and have read all those? Great! I’ve got a few...
View ArticleWhitespace: Silent Killer!
Today I went hunting in an XML file for an erroneous double space I knew was there. I was horrified to see all those extra spaces there!!! Now this Visual Studio 2010 instance is just running the...
View ArticleI’m an MVP for SharePoint Server!
Wahooo! A couple of weeks ago I got one of the coolest emails I’ve received in my professional career, it read: Dear Gavin Barron,Congratulations! We are pleased to present you with the 2012 Microsoft®...
View ArticlePowerShell: Pause for specific key strokes
Today I needed to add a wait into a Powershell script, given that is a point where the user running the script needs to go do some manual steps on another server I thought it might be a good idea to...
View ArticleSetting up Visual Studio 2012 for SharePoint 2013
VS2012 Update 1 is great it adds the Microsoft Fakes framework for stubbing out SharePoint dependencies and other really useful tools for SharePoint development. If you’re using Visual Studio 2012 you...
View ArticleDesign Manager and Server 2008 R2
I was trying to use the design manager features today and ran into this on my dev server. I’d copied the short cut from the screen and pasted it into the map network folder dialog and got this: If...
View ArticleWriting testable SharePoint code: New Zealand and Australian SharePoint...
This year I was lucky enough to be invited back to present at the New Zealand and Australian SharePoint Conferences, this time on “Writing Testable SharePoint Code”. As promised in my sessions here is...
View ArticlePractical Guide to Public Facing sites
This year I presented a second session at the New Zealand SharePoint Conferences, on “A Practical Guide to Public Facing web sites”. As promised in my session here is the slide deck. Filed under:...
View ArticleSPDisposeCheck: Do not use for SharePoint 2013
I like many SharePoint developers out there I am user of SPDisposeCheck. My team and I use this as in our Continuous Integration builds as one of our quality checks on to determine if our code is...
View ArticleName ActiveX controls for public sites AKA go away name.dll prompt
So, I use Chrome, there I said it. They say that admitting you have a problem is the first step to solving it. Anyway when I’m browsing the web using what is, in general, a pretty good browser I’ll...
View ArticleThe Sandbox is dead! Long live the Sandbox!
So, you may have heard that Sandboxed solutions have be deprecated in SharePoint 2013. This was one of the big news items that came with the new version of the product along with the new SharePoint App...
View ArticleExtracting a full list of users from SharePoint
I had an interesting ask from a customer the other day. “Can I get a report of all the users in the system along with some key pieces of data that is stored on their user profile?” Sure there are...
View ArticleMVPComCamp: PowerShell Automation for Everyone
Last weekend around the world there was a global series of events hosted by Microsoft known as MVPComCamp. I was one of the people to present here in Auckland, New Zealand. I was speaking on a topic...
View ArticleSharePoint 2013 Search: Add User Profile Properties to the Full Text Index
We would like to allow users to search on values stored against user profiles without needing to use an explicit managed property search, i.e. they just want to type in the keyword and have the...
View ArticleWhy do I need to use SPWeb.AllowUnsafeUpdates?
We have a customer who has a couple of custom feature bound onto a WebTemplate that was giving them grief when they attempted to provision sites from this template via PowerShell but worked just fine...
View ArticleSharePoint MVPs do an AMA
Are you a redditor? If you are start collating some questions for the SharePoint MVP AMA which will be held on October 30 6am (October 29 at 1pm EST according to the post in /r/sharepoint). If you’re...
View Article