For questions completely specific to SharePoint 2010 and **not past or future versions**

learn more… | top users | synonyms

32
votes
6answers
18k views

How to update custom master page and page layout, which is already deployed

I have a feature which deploying custom page layout. It's done by this code: <Module Name="MasterPageModule" Url ="_catalogs/masterpage"> <File Path="MasterPageModule\defaultTemplate.aspx" ...
23
votes
1answer
14k views

Using SPContext.Current or using static URL

There are multiple ways to work in the SP object model. The starting point for instantiating objects looks different when you look at different developers. Many times I see people doing this: SPList ...
21
votes
8answers
2k views

An introduction to SharePoint 2010

I've been a member of Stack Overflow for a while and have this week been given a project of having a play around with SharePoint 2010 to see how it works basically, as we're looking to use it to ...
21
votes
6answers
9k views

Backup via SharePoint or backup via SQL Server?

How should I backup my 2010 SharePoint server? As I see it there are 3 choices: Full Farm backup Site collection backup SQL Server backup We're only doing backups using points 1 (occasionally) ...
16
votes
2answers
3k views

HTTP 401 twice before HTTP 200 when serving files

I've built a Javascript web application which is served from Sharepoint (ie. there is no Sharepoint code at all operating on the web app, it's just some HTML/JS being served from a Sharepoint 2010 ...
15
votes
5answers
23k views

Suddenly getting “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.”

This morning all the development machines at the company I work at, couldn't manage SharePoint through Powershell. We were all getting the annoying "The local farm is not accessible. Cmdlets with ...
13
votes
3answers
4k views

Deployed Timer Job not taking new code when deployed

I've realized recently that, when re-deploying (either manually or through vs2010) my timer job feature package, the updated execute code is not being deployed. Strange yea. Essentially, I'll ...
13
votes
2answers
744 views

REST and CSOM much slower than List Web Service

lists.asmx = Web Service listdata.svc = REST API client.svc = CSOM Using JavaScript to query a list using the 3 available APIs, I'm finding lists.asmx responds much faster than listdata.svc or ...
13
votes
1answer
876 views

SharePoint Enterprise Search - Error: OfficeSearch14HealthSession

Ever since I provisioned a dedicated Search & Indexing Server on a SP 2010 production environment , this nagging error occurs everyday as seen in the event viewer of the server:- Session ...
12
votes
5answers
4k views

WebServices or Client object model?

I am writing a Silverlight control which will display the data from SharePoint list for use in SharePoint 2010 site. I am considering wheather to use Client Object Model or SharePoint web services ...
12
votes
1answer
2k views

CSOM vs JSOM vs SSOM vs REST

There does not seem to be any clear explanation of the different hosting types and technology abbreviations, so I decided to make a community post about the different types. Perhaps there will never ...
11
votes
3answers
4k views

How to split a Content Database within site

I have a very large content database & need to split it. Is it possible to split a content database within a site collection? or I need to create a new site collection?
11
votes
3answers
3k views

Visual Studio 2012. Visual webpart's ascx.g.cs file empty after registering any control

I've discovered a problem when a Visual webpart's g.cs appears to be empty. I'm using Visual Studio 2012 Update 3 and a project for SharePoint 2010. The steps to reproduce the problem: in Visual ...
10
votes
2answers
3k views

How can I use normal paging on a custom view?

I'm creating several lists (and their views) programmatically, based on custom list definition templates. When these views display more than 30 items, the following link is displayed: Whereas on ...
10
votes
3answers
5k views

Cross Site Collection Navigation

We are using SharePoint for our Intranet. We will have a site collection for the Intranet. Then a site collection for each department in the business. I.E. HR, IT, Finance. We are creating a custom ...
10
votes
2answers
924 views

“Best Practices” for SharePoint customizations/development to easily migrate to new SharePoint versions

Do you know of any documents that describe “best practices” for SharePoint customizations (especially custom developments) in order for these customizations/code (for example web parts, event ...
10
votes
1answer
4k views

How to use onWorkflowItemChanged in a State Machine Workflow?

I'm using a simple Workflow for demonstration purposes: Init sets State1. State 1 waits for item changed and set's state 2. State 2 waits for item change and finishes the workflow. The problem: ...
9
votes
4answers
6k views

How to log off user from SharePoint site, if the user has been inactive for 20 minutes

How to log off the SharePoint site, if the user is has been inactive for for 20 minutes? Do I need to redirect user to logout page? How would I count the idle time?
9
votes
4answers
3k views

SharePoint 2010 branding - I see it (as site admin) but rest users don't

Our web developer helped me customize our SharePoint 2010 web application (few images and colors). Very basic. He made changes to the master page and I selected that master page and applied it to ...
9
votes
6answers
215 views

What are the standard URL suffix views that every SharePoint professional should know?

There are certain lesser-known URL suffixes that can be quite useful in SharePoint, such as {PageUrl}?contents=1 for web part maintenance and {PageUrl}_layouts/UsageDetails.aspx for ...
9
votes
2answers
2k views

SPWeb being closed when getting list by powershell. What's wrong?

When I run this little piece of powershell code: $w = Get-SPWeb http://localhost $l = $w.List["some list"] I get Unexpected error message to my Sharepoint ULS log Detected use of SPRequest for ...
9
votes
2answers
6k views

What permissions are needed to deploy a WSP to SharePoint 2010?

In an attempt to make sure that developers have the appropriate rights, I'm trying to find documentation on what rights are needed to deploy WSP files to SharePoint 2010 (via stsadm or otherwise). ...
9
votes
4answers
6k views

Will an InfoPath 2007 form with managed code work on SharePoint 2010?

I have an existing InfoPath 2007 form containing managed code. The form is now published on SharePoint 2007. The form will be edited and created using the InfoPath 2007 client, so no Web Form in this ...
9
votes
1answer
1k views

SP 2010 & IE 10 - compatibility mode

IE10 is automatically installed on servers with every new update or on win 8 workstations and our users with rights do not read what is inside updates at all... 2010 SP2 is not ready yet and maybe ...
9
votes
3answers
7k views

How to traverse SharePoint Library in Client Object Model?

I have SharePoint Library and i want to traverse all folder and sub folder of it using client object model. Can anybody have solution ?
9
votes
1answer
2k views

Possible to add a “configuration” page to my custom timer job?

I would like to have a page in the central admin that allows administrators to configure a few values for the my timer job. Is there a way that I can do this?
9
votes
3answers
12k views

How to get all items in a View using Client Object Model (JavaScript)

To get all the items in a List you use // Setup context & load web context = new SP.ClientContext.get_current(); web = context.get_web(); context.load(web); // Load task list this.List = ...
9
votes
4answers
668 views

Renaming a Page Library

What is the proper way of renaming a page library from a site collection that has a different regional setting? e.g. Dutch, changing Paginas to Pages. Swedish/Norwegian from Sider and Sidor to Pages, ...
9
votes
3answers
7k views

Reusing the XsltListViewWebPart

In my situation, I'm creating web part pages with XsltListViewWebParts on them. I need to set a predefined view on them, with custom filtering / columns setup in CAML. Therefore, I tried moving the ...
9
votes
4answers
3k views

“a is null” error in vanilla SP2010 install

I'm setting up an SP2010 VM for dev testing purposes. Our vanilla install has no other components present and is throwing JS errors in Chrome and Firefox. In Firefox (v13): a is null ...
9
votes
1answer
197 views

Passing args to QuickLinksDialog with JS

I have a small button on a site which when i press should start a QuickLinksDialog and fill in some of the fields there. Everything goes good and well except the fields (like: title and url) still ...
8
votes
4answers
19k views

Powershell: cannot access the local farm

Yes, I am logged into the machine as an administrator, and my domain account id a farm admin as well. The site is running properly, and nothing seems wrong in SP Central Administration. But when I ...
8
votes
3answers
1k views

Creating a workflow to be run by a timer

I have been attempting to resolve this issue for about two weeks now. So far, everything I try has a problem that makes it unworkable. Problem One of the current requirements is that I need to be ...
8
votes
2answers
2k views

Global variables in SharePoint

Is it possible to define a global variable in SharePoint 2010 and then reference it in menus and server-side pages? We currently have a menu item on all 30+ web sites that points to the existing ...
8
votes
4answers
2k views

List Validation does not show Error when Conditions are not met

I am using List Validation feature for a list which is working fine i.e. doesn't save the item when condition not met. However, it is not showing the error message which helps to rectify the inputs in ...
8
votes
4answers
4k views

Problem with HTTP Handler deployed on Sharepoint 2010

I've developed a Visual Web Part for Sharepoint 2010. I've used VS2010 to do that and tested the Webpart in a testing server using VS to do the deployment. But to deploy it on the production server I ...
8
votes
4answers
9k views

Creating a Site collection programmatically throws exception <nativehr>0x80070005</nativehr>

I'm migrating a SharePoint customization from MOSS 2007 to SharePoint Server 2010 (Win 2008), which creates the Site Collection programmatically. Problem is I'm unable to create the Site Collection ...
8
votes
5answers
6k views

Creating Nested Folders via Client Object Model

I'm trying to create nested folders in my document library so it looks like this: http://site/PublicDocuments/Folder1/Folder2/Folder3/ The document library "Public Documents" exists but none of the ...
8
votes
2answers
5k views

Definitive answer to sending emails to SP Group from Workflow

I understand that there are some issues when you use SharePoint group in To/CC field in "Send Email" activity in a workflow designed using SharePoint 2010. I searched on internet for solution and I ...
8
votes
2answers
9k views

Remove [Revert to template] message from page

I created a page in SharePoint 2010 and then made some edits to the page. Then I went into the page Version History and restored a previous version of the page. Now I have this message that does not ...
8
votes
3answers
15k views

How to create custom email alert template in SharePoint 2010

There seems to be a widely popular blog post (here) about creating these. It's tailored to SharePoint 2007, but I've read through the entire article, and it makes sense. I've followed the directions, ...
8
votes
5answers
12k views

SharePoint 2010 Column Index on Large List

I have a custom list with more than 5000 items. This article: http://msdn.microsoft.com/en-us/library/ff798465.aspx (the last section, "How Does Indexing Affect Throttling?") states: "For ...
8
votes
1answer
1k views

How to get WebPart on current page by name/ID with javascript?

I have a page with some webparts on it, I want to get specific one (by name or ID) using client javascript. I try this code var ctx=SP.ClientContext.get_current(); var web = ctx.get_web(); var site ...
8
votes
1answer
271 views

What does ULSxSy:; do in SharePoint JS files?

So I was going through init.js and sp.js and found out that nearly all of the SharePoint OOB JS functions start with the following line: "ULSxSy:;" For example: function ctxInitItemState(ctxCur) ...
8
votes
3answers
99 views

How can I get search to index pages where the content is built up dynamically?

I am using the JQueryUI Accordion control within a web part on a SharePoint 2010 site. The way I am using it is to have the content in the accordion panels held as individual pages which are then ...
8
votes
3answers
5k views

Understanding ghosting, unghosting, site pages and application pages

well I know definitions of these terms as mentioned: Ghosted pages: Pages which are on file system and not on content db. Unghosted pages : pages which are on content db. Application Pages : normal ...
8
votes
1answer
550 views

On default.aspx, how can I properly control the Ribbon with OOB webparts?

In a team site, I have put two DataFormWebPart (in new mode) that allow users to directly push data to two SP lists. The two webpart are saving data as expected, but the ribbon is weird when having ...
7
votes
3answers
15k views

Explain it to me: SharePoint deployment scope, solution and features

There are different levels of scope for deployment, but I have not been able to find a definitive explaination of when each applies and what the restrictions are that require loosening (or tightening) ...
7
votes
8answers
450 views

SharePoint 2010 Playground Site

I'm a seasoned developer and CMS consumer, but I've never used SharePoint specifically. Is there a website where I can quickly create and manage a SharePoint site, without installing the entire stack ...
7
votes
3answers
1k views

Customization best practices for SP2010 [closed]

We'd like to customize the look of our SharePoint 2010 pages and sites but didn't know what some best practices are: We'd like to change the look of pages some without breaking the link between them ...