Archive | Visual Studio 2010 RSS feed for this archive

Move documents within site at folder level: Application Page

I have one requirement where user needs a friendly interface with the ability to move the document from one location (any folder under any document library) to another location. To achieve this functionality, my first task is to create a Tree View of all the Document Libraries displaying complete folder structure (show all levels of […]

User Display Name shows “i:0#.f|” using LDAP membership provider for FBA gives you –No Fix from MS Support

We had a MS Support case for the display names not showing up correctly for accounts in the Forms Auth using the LDAP membership provider. Believe me whatever you do its not picking it up from Active Directory User Display Name instead the user display name is like i:0#.f|mName|accountname mName = membershipprovideraliasinCentralAdmin accountname = account […]

SharePoint 2010: Create Custom Login page with persistent cookies

At my current client we are using FBA ( Forms Based Authentication) with LDAP membership provider. The issue was the users were prompted the login page( Dual Authentication) while opening Office documents( Office Client) , something below with setting in Web Application to default sign in page.   Some history on the issue and need […]

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…