Archive | July, 2010

Adding an external DLL/assembly in Visual Studio 2010 SharePoint Project


I wanted to consume a few dll’s and wanted them to be deployed to GAC and was thinking if Visual Studio 2010 has this feature for deploying external dll’s from the same Visual Studio SharePoint project. Solution: Go to Package explorer and double click on the package Click on the Advanced Tab on the bottom […]

SharePoint 2010: Event Receivers Part 1- Create Event Receiver for Content Types


Creating Event receivers in SharePoint is a very common task With the new Visual Studio 2010, its more easy than before though you could do same with WSP builder in SharePoint 2007. Also the VSEWSS provided a few templates that could be used. Lets look at what has changed and what hasn’t changed in SharePoint […]

SharePoint 2010: Event Receivers Part 2- Create Event Receiver for Content Types


Hello Folks from the Part 1 I left you all with the GUID to indentify how we would register the Event Receiver with a content type. I will keep this short and crisp. When we had added the EventReceiver it created a feature to deploy “MyCustomEventReceiver”. See below and we would remove the “MyCustomEventReceiver” from […]

Error occurred in deployment step ‘Activate Features’: Operation is not valid due to the current state of the object.


Whenever you get this error Error occurred in deployment step ‘Activate Features’: Operation is not valid due to the current state of the object. Deploying a feature through Visual Studio 2010 kill the vssphost4.exe process first…

Select Page layout option in pages missing SharePoint 2010


The page layout option was missing in when pages were created. Looked into the pages library and could not find the “testing” page that I created.   Actually it got created in SitePages and this is a new feature in SharePoint 2010 publishing because the wiki feature home page feature was enabled. Go to Site […]