SharePoint: Usage files are not deleted, file is open in SharePoint 2010 Timer

If you have worked on SharePoint 2010, you must have come across .usage file in LOGS folder. Location of this file is hive-folder/Logs.The main issue with .usage file is you can not delete all the files and additionally these files will keep growing in numbers and in the result, your drive space will keep reducing. … Read more

Create Datatable using .Net Client Context in SharePoint 2010

Create Data Table while using SharePoint 2010 Client Context with .Net Code I am using .net code to access SharePoint List.I created a method ExecuteSPQuery() which returns Data Table. For that I wrote below code. public static DataTable ExecuteSPQuery()     {         DataTable dtData = new DataTable();         Microsoft.SharePoint.Client.ListItemCollection listCollection = null;         ClientContext context = new ClientContext(“SITE_URL”);         try         {                        Site oWebsite = context.Site;             context.AuthenticationMode = ClientAuthenticationMode.Anonymous;             List list = … Read more

Attach existing Content Database to new SharePoint Site Collection

This blog will describe how to attach, detach a content database.Below is the scenario – You created a new Site collection in SharePoint 2010.Now you want this site collection to work with your existing Content database. Simply you can be asked that you have an existing content database and you need to attach it with … Read more

Display SharePoint List Items using ECMA Script – Client Object Model

Display SharePoint List Items using ECMA Script In this blog, I will explain, how to get list items using ECMA Script.ECMA script is a client side way to work with SharePoint object. Create a web part page in page library. Add a content editor web part on that page.In content editor webpart write below code: … Read more

REST API in SharePoint 2010 for CRUD operation with ListData.svc

REST API in SharePoint 2010 for CRUD Operation  SharePoint 2010 offers numerous ways to get data from a list. You may use Client Object Model, Linq to SharePoint and REST API by using ListData.svc. In this blog, I will explain how to perform CRUD operation on a SharePoint list using ListData.svcGenerally, SharePoint REST service URL … Read more

Error – The user does not exist or is not unique SharePoint 2010

Currently I was doing some settings for super accountIn this context, I executed below command in powershell window. stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url “<site-url>” But my site stops working and got below screen while access url with error message. “The user does not exist or is not unique SharePoint 2010“ So I … Read more

Client Side Object Model in SharePoint 2010

SharePoint 2010 offers a useful way to access SharePoint objects from the client side. A developer can use .Net managed code, ECMAScript to access SharePoint objects like List, Site, Library etc.On this blog, I will write a code to select data from SharePoint list. I will use .Net managed code to do this.First of all, you … Read more

Client Side Pagination in Gridview

As you know pagination is very important for any data control for eg Gridview if you have large amount of data. Server load on pagination is also a big concern.Below is the code for pagination in gridview using client side. It means no page load/ server post back operation will be performed. To implement this … Read more

What is delegate control in SharePoint? Why to use it?

Delegate control in SharePoint allows developers to manage control on a master page without touching or editing master page. Actually, delegate control is associated with a feature. Whenever that feature is active delegate control will be visible and if an associated feature is de-active delegate control will not be visible to users. Create Delegate control … Read more

The method “GetItems” of the type “List” with id “{Guid}” is blocked by the administrator on the server.

I was working on SharePoint Client Context, and i was writing a piece of code to fetch items from SharePoint list. I got this error at this line:objContext.ExecuteQuery(); I solved this issue by executing powershell command.Open SharePoint Powershell  and type below command one by one. $webapp = Get-SPWebApplication “http://spserver”$webapp.ClientCallableSettings.AnonymousRestrictedTypes.Remove([microsoft.sharepoint.splist], “GetItems”)$webapp.Update()Open SharePoint Powershell  and type below command … Read more

RSS
YouTube
YouTube
Instagram