Friday, December 16, 2011

Add PeopleEditor Control to your Application Page

You can use this PeopleEditor control when developing application pages or control templates using the following syntax:


But only after you have added a directive at the top of the application page or control template:

Reposted from http://karinebosch.wordpress.com/sharepoint-controls/peopleeditor-control/

Tuesday, December 13, 2011

Attach Debug - View IIS worker process list

In many cases you may have multiple web applications running on the same machine simultaneously. When using attach to process debugging approach, you need to know the exact process id of the application you are debugging. This command will do this work for you:
c:\windows\system32\inetsrv\appcmd.exe list wp

Recycle IIS Application Pool:Error occurred in deployment step 'Recycle IIS Application Pool': List does not exist.

This error happens often on the development Sharepoint 2010 machine after upgrade from sharepoint 2007 when trying to deploy solution from Visual Studio. In my case, the problem was related to incorrect upgrade of sharepoint publishing feature. It was upgraded with the feature activated. To correct the issue, it was sufficient to deactivate the publishing feature and reactivate it.