Category Archives: SharePoint 2010

CustomErrors setting in SharePoint 2010

It’s a little bit different than SharePoint 2007, you need to change two web.config files instead of one:

  • Underneath  [systemdrive]:/inetpub/wwwroot/wss/virtualdirectories/
  • In the layouts directory underneath the SharePoint root directory or 14 hive – [systemdrive]:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/TEMPLATE/LAYOUTS/

The settings that you need to change in the web.config file are still the same:

  • Change Debug=”true”
  • CallStack=”true”
  • CustomErrors=”Off”

Peoplepicker not showing diabled users

If you don’t want that disabled accounts will be show in the people picker of MOSS 2007, than run the following stsadm command to add a filter to the peoplepicker query:

stsadm -o setproperty -propertyname peoplepicker-searchadcustomfilter -propertyvalue (!userAccountControl=514) -url http://site_collection_url

To check if the query has changed, run the following stsadm command:

stsadm -o getproperty -propertyname peoplepicker-searchadcustomfilter -url http://site_collection_url


Cannot Destroy Cluster on Windows 2008 R2

I tried to remove a OS cluster with the “Cluster” command but without any succes. After serveral tries I did remove the OS cluster settings from the registry and after a reboot I was able to remove the cluster feature and start all over again to create a new OS cluster.

1. Remove the following registry keys:



2. Reboot server

3. Remove Failover Cluster Feature

4. Reboot server

5. Install Failover Cluster Feature

6. Start building a new OS cluster

DPM 2010 create catalog PowerShell script

A little script to do a DPM 2010 restore on item-level to a SharePoint 2010 farm directly after creating the first backup of the SharePoint 2010 environment. Normally every 24 hours, DPM will create a catalogue of the Sharepoint environment in order to allow the item-level recovery. To force this task (for demo purposes maybe) you can run the following PS commands to do the trick.

$protectionGroup = Get-ProtectionGroup 

$dataSource = Get-Datasource $protectionGroup [index number 1] // the index number of the SharePoint Protection group, type $protectionGroup to get a list.

Start-CreateCatalog $dataSource[index number 2] // Create the catalog from the SharePoint datasource, type $dataSource to get a list of all datasources

File Not Found error NewDwp.aspx in SharePoint, adding new web part

Receiving the following error in MOSS 2007 when you try to add a new web part?

File Not Found. at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RuntimeMethodInfo.get_Signature()
at System.Reflection.RuntimeMethodInfo.GetParameters()
at Microsoft.SharePoint.WebPartPages.SPWebPartSerializer.GetPersonalizableProperties()
at Microsoft.SharePoint.WebPartPages.SPWebPartManager.GetEffectiveWebPartType(Type webPartType, SerializationTarget serializationTarget, Boolean ignoreSupportsAttributeMarkup)
at Microsoft.SharePoint.WebPartPages.SPWebPartManager.GetEffectiveWebPartType(Type aspWebPartType, SerializationTarget serializationTarget)
at Microsoft.SharePoint.ApplicationPages.NewDwp.Page_PreRender(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

This problem occurs if the following is true:

  • You are using the SmartPart web part
  • You do not have ASP.NET Ajax installed on the SharePoint server.

To correct this problem, download and install on all WFE servers the ASP.NET 2.0 AJAX Extensions 1.0 from the Microsoft site. (click here to download the file) After installing the AJAX Extensions, do a iisreset on all the WFE servers and you now can add new webparts.

Advance Search webpart, contains is missing

Default the “contains” option is missing in the property select field of the Advance Search Webpart in SharePoint 2007. The reason for this is the hugh load on the SQL server if this option is used to query the SharePoint index. So be careful when adding this option.

Add following line
underneath root node in the Advance Search webpart properties XML.

  • Go to Advanced Search page and click Site Actions, and Edit Page.
  • On the Advanced Search Web Part, click Edit in upper right corner of web part, and then click Modify Shared Web Part.
  • In the Properties text box, click the small rectangle Builder.
  • In the Builder dialog box, under the root node create
    and click OK

property_advance_search2 property_advance_search