Microsoft PlayGround

A Playground for Microsoft Technologies

Entries for the ‘Development’ Category

Console Application for SharePoint 2010 [No User Profile Application available to service the request. Contact your farm administrator.]

Today I was working on some cool features to update the User Profile store in SharePoint 2010. To test this feature I usually use a Console Application. In my Console Application I was keep getting an error on a line like below: UserProfileManager profileConfigManager = new UserProfileManager(ServiceContext); The exception I kept getting was : ‘No [...]

SharePoint 2010 Custom Errors

About a year ago I wrote a article on deactivating the custom errors off SharePoint 2007. That had to be done in the following manner: Step 1: Change <SafeMode MaxControls="200" CallStack="false" > to <SafeMode MaxControls="200" CallStack="true" > Step 2: <customErrors mode="Off"/> If you do this on a SharePoint 2010 installation you will still get the [...]

SharePoint Memory Leak

A few day’s ago I stumbled on a article about SharePoint Memory leaks because we were looking at memory leaks for 1 of out clients. I found a great article from Todd Carter about a giant memory leak within SharePoint that he found just a month ago. It is really a must read: SharePoint’s Sasquatch [...]

Failure in loading assembly

In the application event log I found several errors that were pointing to assemblies that I wasn’t using anymore. The error looks like the message below: Error: Failure in loading assembly: Assembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=Token. The application was trying to load an assembly that I wasn’t in the GAC or in the BIN folder. This [...]

Inline Editing in SharePoint 2010 (UI and Code)

Within SharePoint 2010 it is possible to enable inline editing on list items. This can be done by changing properties on a view of a SharePoint library what can be done in code and trough the user interface. To allow inline editing trough the user interface you have to do the following: Navigate to the [...]