sharepoint2010

How can I see the exception call stack in SharePoint 2010?

I am trying to port a SharePoint 2007 site collection feature to 2010. During the feature activation, SharePoint shows the "yellow screen of death" stating "The current custom error settings for this application prevent the details of the application error from being viewed.". AFAIK I have configured everything that is need to see the e...

Make a sharepoint webpart available only for specific users

I am developing a Sharepoint (2010) web part and I want to make it available only for specif users or groups pragmatically. Because I am a total beginner in Sharepoint development, I found some pieces of code around the Internets, but they give no clue about how or where to use that code from withing the web part itself. I need a simpl...

Sharepoint Foundation. Documents opening in browser instead of client application

I need to have all the documents in Sharepoint opens in client applications. I set the appropriate setting in the admin page, but it doesn't work for all users. Also I tried to set this in library settings, result was similar. I think the reason may be on a client side, but I haven't found it. All users with this trouble have IE7 and MS...

Getting a Random User using UserProfileManager

Hello, I'm trying to create a "Who is" web part for a SharePoint 2010 project i'm working on. This web part is supposed to select a random user from SharePoint profiles and display his/her name, department and phone. The problem is that i couldn't find a way to get a random user directly from the User Profiles, which is what i'd like t...

SharePoint 2010 Wiki page columns

I created a wiki page library in sharepoint 2010 and i added several columns to the library. Is there any way to get these columns to show up on each wiki page as they did in SharePoint 2007 ...

Can I use SharePoint 2010 Foundation as a public facing site?

With Moss 2007, we had WSS on our servers so that we could use some basic functionality of SharePoint without purchasing a license. We also created a number of public facing sites on WSS for clients who didnt want to purchase a full fledged license for MOSS 2007. I got some news that SP Foundation 2010 cannot be used as a public facing s...

Display QuickLaunch on WebPartPage in sharepoint 2010

I'm trying to work out how to get sharepoint 2010 to display the quicklaunch on a web part page, the default.master trick I used in 2007 doesn't appear to work any more. In my 2007 install, I simply edited the default.master and moved the quicklaunch code outside of the PlaceHolderLeftNavBar element but this doesn't have any effect in S...

Sharepoint 2010 - connection between custom webparts on different site pages.

Hello! I would be grateful if you could help me / hint me on the issue I'm struggling with at the moment. I try to implement connection (using custom connection interface) between 2 custom web parts on different pages, essentially a "master-detail" behaviour. If I add both web parts on the same page, they can be connected successfull...

LINQ to SharePoint and SPDuplicateValuesFoundException

Consider the following code sample: foreach(EntityData data in Data) { Entity entity = CreateEntity(data); dataContext.Entities.InsertOnSubmit(entity); try { dataContext.SubmitChanges(); } catch(SPDuplicateValuesFoundException e) { // Log that given entity already exists } } // Update othe...

Authentication Providers 'greyed out' in sharepoint 2010 (enable anonymous access)

I am trying to config a sharepoint 2010 site for anonymous access. The tutorials I am following are: http://live.visitmix.com/Videos http://blog.drisgill.com/2009/11/sp2010-branding-tip-9-turn-on-anonymous.html http://www.topsharepoint.com/enable-anonymous-access-in-sharepoint-2010 And a few youtube videos. I am stuck fast in a cert...

Search Results XML Data returns first line of text as the result title instead of the title field for some .doc files

Excuse the very long title, I was just trying to be descriptive :) I have a number of word documents stored in a document library in a document centre. For most of the documents when I search for a term, the content that's in the "Title" field is returned in the result's title node in the Search Result XML. However there are a number ...

Embedding page in sharepoint webpart

Hi, I need to create webpart in sharepoint 2010 which will allow me to view page from specific URL. I.E. I'd like to view http://google.com from this webpart. What's the simpliest way to accomplish that ? I'm totally novice to Sharepoint developement, I've just downloaded SDK and watched some screencasts about creating webparts. Also I...

Applying custom claims in claims based application

I would like to grant document level permission based on custom claims in claims based web site. A user may have hundreds of document or one. Is it a good idea to apply custom claims? What is the avantages or disadvantages? Is there a limit on the number of claims that can be added to the claim set? Thanks in advance for your help. ...

Is it possible to deploy a SharePoint WSP without causing an IIS Reset?

Hi All, I'm working in SharePoint 2010 and have been unable to deploy (or retract) my WSP without causing an IISReset. Here's my situation: •The solution contains: •Fields •One content type •A page layout based on the content type •A bunch of images that go into the style library •There is ZERO code in the solution •I've manual...

How determine which site template to use for different sharepoint 2010 versions?

I have 2 environments: Foundation 2010, SPS 2010 and 2 templates correspondingly. I consider that we can determine the VisibilityFeatureDependency parameter of <Configuration> section in webtemp*.xml in order to hide other templates except one that will be used. What feature (GUID) should be used in order to exactly specify what version...

Where to start learning SharePoint 2010?

I recently started at a new job where I'll be working with Sharepoint 2010 to set up (or actually upgrade) an intranet. Unfortunately, I have no experience with SP2010, and the last time I touched SP2007 (or a virtual server for that matter) was four years ago. I'll be attending a course soon, but until then I have to make myself useful...

SharePoint 2010 People Search

I'm looking for a little help regarding SharePoint 2010 search. When I use the OOTB People Search, phonetic matches are returned (i.e. searching for "jon" returns both "jon" and "john"; however, when I use KeywordQuery or the FullTextSqlQuery classes they are not. Here is what my KeywordQuery object looks like: var query = new Keyword...

Add Calendar Web Part w/SharePoint 2010 AND Summary View

I am trying to add a calendar web part to the default.aspx page within a feature. The calendar gets placed on the form but I would like the default view to be the summary view. I have read that if you set the ViewGuid to string.Empty it will set the view to the summary view but this is not working. Ideas? // Calendar ListViewWebP...

Creating a new CMS, importing content from ASP - Umbraco or Sharepoint?

I'm working on a project to create a CMS, which will entail importing a lot of existing content, most of which is static, but in ASP (so they're not all just pure HTML, there are includes and sometimes other server-side code). We're considering using Umbraco or Sharepoint (2010) for managing the external content, which currently compris...

SAML for SharePoint 2010 Authentication

Is it possible to authenticate a user in SharePoint 2010 using a SAML Token provided by third-party? Most of the examples of SSO configuration for SP2010 assume that you are going to use Active Directory as your user repository. I do not want to setup ADFS, since all of my users are actually out on a SAML compatible Jasig CAS server....