Thursday, May 01, 2014

Attempted to perform an unauthorized operation

Attempted to perform an unauthorized operation Visual studio,SharePoint Deployment

Error occurred in deployment step 'Activate Features': Attempted to perform unauthorized operation.
If you happen to see this error in your visual studio,then reason is your account has permission to access the Farm but not on your site collection where you trying to deploy the solution.

To resolve this issue Go to your Central Administration-->Application Management header-->Change Site collection administrators under "Site Collection" header.
Add your account try again the deployment.


Content Database ID in SharePoint

How to find out the Database Id {GUID} for the specific database on which you know by its name.
There is no GUI for this requirement except the GUID append with the URL.

Step 1
In your Central Adminstration Page navigate to "_admin/CNTDBADM.aspx".
This page will list the all the content databases for the selected webapplication as a link.When you click on the content database name navigation URL will be append as below.

_admin/oldcntdb.aspx?DatabaseId=%7B6D79F6F8%2DA753%2D4DE8%2D9707%2D59D2BF20AECF%7D

So replace the %7B with Open curly brace ( { ),%2D with closed dash (-) and %7D with closed curly brace ({}.

Step 2

Fire the PowerShell Command to get the database Id

Get-SPContentDatabase -Identity wss_Content

Sunday, April 27, 2014

Differences between CSOM and SSOM

The core differences between Client Side Object Model (CSOM) API and traditional Server Side Object Model(SSOM)

Further reading at http://intelliview.blogspot.co.uk/2014/10/sharepoint-2013-client-object-model.html
  • Administration related task such as site back,service application management and workflow related tasks can be done only through Server Side object model. 

  •  Site branding such as managing the master page,theme and CSS file cannot be done in Client Side object model. 

  •  Request Batching (Series of Request for data retrieval on the Client context) submitted to the server in a single request.This can be done using Client side object model and REST API.

Thursday, April 24, 2014

Syntaxhighlighter testing

protected void button_clicked(Object obj,EventArgs e)
{
foreach(String line in Story)
{
Response.Write("Line:"+ line);
}
}