Gino Abraham's Blog

SharePoint

There are 3 entries for the tag SharePoint

A Console Application or Windows Application in VS 2010 for Sharepoint 2010 : A common Error

I have seen many Sharepoint Newbies cracking their head to create a Console/Windows application in VS2010 and make it talk to Sharepoint 2010 Server. I had the same problem when i started with Sharepoint in the begining. It is important for you to acknowledge that SharePoint 2010 is based on .NET Framework version 3.5 and not version 4.0. In VS 2010 when you create a Console/Windows application, Make Sure you select .Net Framework 3.5 in the New Project Dialog Window.If you have missed while creating ......

Attempted to perform an unauthorized operation – Error while updating other user’s profile data in Sharepoint 2010

We had a requirement where a user profile property will be updated from the event receiver of a custom list. The user profile property which we can had “user can override” and “Allow users to edit”, however we were getting an error “Attempted to perform an unauthorized operation” The code was running under RunWithElevated delegate. We traced the user id which was Sharepoint\System. The system account in use will be the App pool Identity under which the current Sharepoint site is running. We took ......

Block Application pages and Form Pages in Sharepoint 2010

By default Sharepoint doesn’t blocks user with limited access from visiting application pages (for ex _layouts/viewlsts.aspx). Someone who knows the URL, can go to this page. We can avoid this by change the limited access to lockdown mode. Use the command below. Action Command Turn on lockdown mode for a site collection stsadm -o activatefeature -url <site collection url> -filename ViewFormPagesLockDown\featu... Turn off lockdown mode for a site collection stsadm -o deactivatefeature -url ......