Pages

Thursday, July 21, 2011

Error occurred in deployment step 'Retract Solution': Attempted to perform an unauthorized operation.

I have created one Sharepoint 2010 WebApplication which uses classic based authentication and add myself as "Site Collection Administrator", then I need to convert Webapplication authentication type "classic based authentication" from "Claims Based Authentication". Then when that user tried to deploy solution it gives this error.

"Error occurred in deployment step 'Retract Solution': Attempted to perform an unauthorized operation."

How to solve this one?

1> In SharePoint 2010 go to Central Administration - Manage web applications (under Application    Management).

2> There you select the SharePoint application and press "User Policy" in the ribbon. Over there you add your user you want  deploy with and give him full control.
Disha Shah

Wednesday, July 20, 2011

How to Create a SharePoint Application Page for Anonymous Access

There are some occasions in which we need to give anonymous access to SharePoint Application Pages , but on that webapplication does not give  the anonymous access. Examples like Registration Page, Forgot Password page. So how to do that?
We need to do three things for that.
1. protected override bool AllowAnonymousAccess
        {
            get
            {
                return true;
            }
        }

2. Instead, you need to use another base class for your anonymous application page called UnsecuredLayoutsPageBase. MSDN reference at: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.unsecuredlayoutspagebase.aspx

3. Please make sure we don't use DynamicMasterPageFile="~/masterurl/default.master" your application layout pag .aspx file.
change it to MasterPageFile="~/_layouts/simple.master"

Friday, April 22, 2011

Active Directory Account Creation Mode In SharePoint 2010 Foundation

Hello Friends

In SharePoint 2010 Foundation, during configuration the last screen of the Config Wizard enables you to confirm the settings you have chosen before  committing to them. If you are doing anything other than a SharePoint Foundation install, you will see an Advanced Settings button that is grayed out. If you are doing a SharePoint Foundation install, this button is enabled. If you click the button, you are taken to the Enable Active Directory Account Creation Mode.

Active Directory Account Creation Mode (ADACM) :

It allows your SharePoint farm to be set up to automatically create Active Directory
users when you add them to SharePoint. These new accounts are created in the organizational unit (OU) specified on the screen. You can even have SharePoint e‑mail a notification to users when their
account is created, along with the password. This is a truly automated scenario that works very well
in hosted environments.IT is an interesting but mostly unused feature of SharePoint.

There is disadvantage too. So if you are deploying SharePoint in ADACM, you cannot
use your existing Active Directory accounts to access SharePoint. Users hate having one username and password; 

Remember, it is only available in Foundation, not Server.

Disha Shah