18
votes
2answers
5k 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 ...
18
votes
4answers
382 views

Infrastructure knowledge for SharePoint developers

As a SharePoint developer I find that having a good understanding of the underlying infrastructure (such as Active Directory, DNS server, etc.) is very useful. I must say I'm not that good when it ...
18
votes
5answers
35k 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 ...
18
votes
4answers
32k views

Create link to “new item” form

I have a sharepoint docuemnt library and i'd like to create a link on my homepage that will launch a new item form associated to my list. Does anyone know what the url would be if my document library ...
18
votes
1answer
1k views

Is there a way to securely encrypt content in SharePoint Online?

I need to encrypt (or at least digitally sign) a package of content that is sent from the SharePoint Online server, down to the browser, and then cross-site post (JSONP) the ecrypted content to ...
17
votes
5answers
20k views

SP.UI.ModalDialog.showModalDialog using the html option

http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal. I have a string like this; var html = ...
17
votes
5answers
3k views

Sign in as different user in SharePoint 2013

I use SharePoint 2013 and I need to change my current user in my SharePoint site. How can I change my current user? How can I add sub menu (sign in as different user) to my menu ?
17
votes
8answers
41k views

How to detect the edition of SharePoint 2010 installed?

In SharePoint 2007, we have a registry entry HKLM/Microsoft/OfficeServer/12.0/OfficeServerPremium=1 for enterprise edition and OfficeServerPremium=0 for standard edition. How can I determine which ...
17
votes
3answers
6k views

How to access my “Outgoing E-Mail Settings” from code?

Is it possible for me to pull the values that are in: Central Admin -> System Settings -> Configure outgoing e-mail settings from my code behind using the object model?
17
votes
2answers
11k views

SPList.Add() vs SPList.AddItem() SharePoint 2010

Using some test code i found out that SPList.AddItem() executes slight faster then SPList.Add() - does anyone know why is it so ? DateTime start = DateTime.Now; SPList ...
17
votes
4answers
4k views

Content types vs. custom list field

This is a question about best practices and the intent of the designers of SharePoint. I'm pretty new with SharePoint, and have only worked on pretty small projects. I often find myself creating ...
17
votes
2answers
12k views

Which Redirect method should I use?

I'm using SharePoint 2010. I have webparts, then when OK/Save/Cancel etc is clicked, it will redirect a user to the relevant page. Over the past few months of writing different WebParts I have ...
17
votes
7answers
6k views

Enhanced SharePoint discussion forum/Q&A

A client is considering SharePoint 2010 as an information platform on their local intranet (not connected to the internet). One of the main focus points is an advanced discussion forum, including a ...
17
votes
6answers
21k views

How can I authenticate SharePoint REST calls from JavaScript?

I have been banging my head against a wall on this problem for weeks now Warning and Disclaimer .. I have very little JavaScript experience when it comes to REST / Web Services I have an on ...
17
votes
2answers
2k views

Can't start debugging after install VS11

After I installed VS11 Dev Preview, VS2010 cannot start debugging the Sharepoint 2010 server (developer install on Windows 7). I get a nice error dialog stating: Unable to start debugging on the ...
16
votes
1answer
12k views

Whats the difference between host headers and alternate access mappings?

Whats the difference between host headers and alternate access mappings? This is a similar question - What are the differences between extending a web app and adding a host header then adding ...
16
votes
4answers
940 views

Inconsistent user names in SharePoint

Using SharePoint 2010, some user names in the people pickes and User Information List are shown by John Smith. Others are companyDomain\jsmith. We would like to correct this for consistency. I have ...
16
votes
1answer
3k views

Manage trust/add certificate

I try to add a certificate under "central administration>security>manage trust" but I always get the following error: The Root Certificate that was just selected is invalid. This may be ...
16
votes
5answers
3k views

Are there any tweaks, tips to make debugging SharePoint 2010 faster?

I am using Visual Studio 2010 Ultimate and SharePoint 2010. The debugging process itself is okay but the startup takes really long. Are there any options or hidden-hints to make this faster? Edit: ...
16
votes
4answers
6k views

SharePoint project builds but will not package

I have a SharePoint project that references (and includes in its package) a non-SharePoint project. There is a class in my SharePoint project that references the non-SharePoint project, so has a ...
16
votes
0answers
268 views

How do I programmatically work with Exchange Search Results in eDiscovery Center?

I'm working with Exchange search results in eDiscovery Center on Office 365 and trying to find the best way to programmatically retrieve the search result of an eDiscovery query. For SharePoint ...
16
votes
0answers
1k views

Contacts Web Database site in SharePoint Server

I created a site of type Contacts Web Database under a team site collection inorder to maintain some contacts. As soon as I created the Contacts Web Database site on the homepage under Address Book ...
15
votes
4answers
2k views

Any reason not to create a new content database for each site collection?

When creating a site collection in stsadm there are 2 commands I could use: createsite and createsiteinnewdb, where the latter creates a new content database for the site collection. Reading around ...
15
votes
4answers
12k views

How to get List by Url using SharePoint 2013 CSOM

SharePoint 2013 CSOM API contains the following methods for accessing List object: ListCollection.GetById method - returns the list with the specified list identifier ListCollection.GetByTitle ...
15
votes
4answers
11k views

Getting my head round spsite vs spweb vs anything else

I am fairly new to Sharepoint development (But learning it rapidly due to some initiatives I have in place - not exams). Anyway, one of my biggest stumbling blocks is the naming convention for ...
15
votes
6answers
46k views

How to make a filtered lookup field

I have a list of departments. This list will change over time adding new departments and "deactivating" others (because of structural changes). I would like to use this list as a look-up for other ...
15
votes
6answers
35k 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 ...
15
votes
3answers
10k views

Why is my transfer rate so slow when using “Open with Explorer”?

I'm logged in on my SharePoint 2010 server machine (running Windows Server 2008 R2) and using the "Open with Explorer" feature in a document library to copy another full directory from a separate ...
15
votes
3answers
23k views

Fastest way to delete all items with C# [duplicate]

Possible Duplicate: Deleting all the items from a large list in SharePoint What is the fastest way to delete all items in a list programmatically? I do not want to remove list and re-create ...
15
votes
8answers
47k views

User with Full Control Permission is getting Access Denied Message

The user who's responsibility it is to build up and maintain our training portal is receiving the "Access Denied" message when she tries to edit her page. Her permission level is "Full Control". I ...
15
votes
1answer
19k views

How to get a SPFieldLookupValue from an SPListItem?

When you get an SPListItemCollection from a SPList.GetItems(SPQuery) request, and the items have SPFieldUser or SPFieldLookup fields, what is the sexy way to get typed values, not the ...
15
votes
3answers
11k views

How do I find in which (sub)sites a WebPart/Feature is used?

I need to find out on which (sub)sites a certain webpart is used. In a data sharing environment with many subsites and pages, I want to check if and where certain (third party) webparts are used. Is ...
15
votes
6answers
2k views

Facebook-like notifications when new item is added to certain list/library?

I was wondering if this is possible. The screenshot below somewhat illustrates what I'm searching for. I'd like to show a notification in a box whenever a new item has been added to a certain list or ...
15
votes
4answers
7k views

Why is Word document created from template saved locally, instead of to the document library?

I have created a custom content type at the root of my Site Collection and set this content type to use a Word document template, which resides in a different document library on the root site. (The ...
14
votes
8answers
16k views

Customing the newform.aspx of a list using jslink in SharePoint 2013

How do I customise the newform.aspx of a list in SharePoint 2013 using JSLink? A lot of examples seem to be for customising list views. I can't find anything that explains how to customise the new ...
14
votes
2answers
21k views

How to remove Title column in SharePoint 2013 List?

I want to remove "Title" column created by default in SharePoint 2013 List. I googled many times.But I got only solutions for SharePoint 2010 version only.Those Solution is not working for this latest ...
14
votes
2answers
1k views

Automatic updates on farm servers

I am having a hard time convincing the infrastructure team to turn off automatic updates on the SharePoint farm I have setup. It seems that regularly when automatic updates are applied, something ...
14
votes
8answers
5k views

Content Type Event Receivers Impossible to Remove

I have a very odd situation in my SharePoint staging environment. We recently stood up a new SharePoint 2010 server (single WFE + a DB server), and attached a backed-up content database from our ...
14
votes
3answers
22k views

Why are user permissions set in AD not updated immediately to SharePoint?

I have a SharePoint 2010 Foundation installation on Windows 2008 R2 and SQL Server 2008 and using Claims and Windows authentication. Subsites are visible only to members of a certain group. However, ...
14
votes
2answers
11k views

Reduce “noderunner.exe” impact

I have a SharePoint server that is relatively slow. When I look on the task manager, I can see that noderunner.exe is RAM consuming process. I saw that my Get-SPEnterpriseSearchService returns ...
14
votes
3answers
23k 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 = ...
14
votes
1answer
3k views

Is Calling base.ItemUpdating(properties); necessary?

In an event receiver, is it necessary to call base.ItemAdding(properties);, base.ItemUpdating(properties);, etc. at the beginning of your event handler? I've seen people arguing that it isn't ...
14
votes
2answers
6k views

SharePoint 2013 CSOM: Is it better to pass a Context object around or a Url?

In SharePoint 2013 CSOM is it better to pass a Context object around, or a Url to open a context? Which would be the best example: (Please consider there may be a lot of methods preforming tasks) ...
14
votes
2answers
345 views

Do all Content Types require Site Columns?

I'm just wondering if Content Types are always only made out of Site Columns, or if it's possible to define Fields that only exist on that Content Type? (Like how you can add a custom Column to a ...
14
votes
1answer
4k views

Change Sharepoint language with a link?

Is there a way to get the language-switch control as static link in the pagelayout? I want my users to switch between German and English with a single click. Sorry guys, found a solution :D ...
14
votes
3answers
9k views

How do I connect with SharePoint Online Web Services in order to access list and taxonomy data?

I am using the SharePoint SOAP web services to try collecting list and taxonomy data from a site on SharePoint Online. The following code works nicely when connected to a standalone SharePoint farm. ...
14
votes
3answers
3k views

What are the claims supported by SharePoint?

I am passing Claims from a custom STS to SharePoint. It seems that some of the Claims are coming through OK to SharePoint, but not all. For example I am passing in the GivenName and Surname claims, ...
14
votes
2answers
931 views

When deploying a site from custom site template, one lookup column in doclib has empty values for Office 2010 (docx, xlsx, pptx) files

I'm deploying sites using a custom site template (WSP) that is: Saved as WSP from customized Team Site Deployed as Farm Solution Has lists, libraries with content customized in Visual Studio ...
14
votes
1answer
745 views

Why is setting task fields in a “Before A Task Is Assigned” step not working?

I have a custom process in a SharePoint 2010 workflow where I need to allow the first participant to be able to change the second participant in the participant list. What I have tried is asking the ...
13
votes
4answers
35k views

PowerShell: Script to check feature status (enabled/disabled) before activating

I am developing a script to refresh my custom features. Earlier i was just looping through the features and calling Disable-SPFeature and Enable-SPFeature on each items. The issue is when the ...

15 30 50 per page