For SharePoint-specific questions, please see the SharePoint Stack Exchange site at http://sharepoint.stackexchange.com/
23
votes
13answers
2k views
How is SharePoint perceived in your company? [closed]
UPDATE An interesting time to revisit this question. Is perception still the same now that SharePoint 2010 is beginning to take hold? Certainly implementing 2010 is not without its own challenges, ...
22
votes
12answers
74k views
Solving SharePoint Server 2010 - 503. The service is unavailable, After installation
Installed:
SharePoint Server 2010 for Internet Enterprise Beta (x64)
On:
Windows Server 2008 Standard (x64) on 64 bit hardware
Attempts to access the Central Administration console led to IIS ...
20
votes
18answers
27k views
FileNotFoundException with the SPSite constructor. What's the problem?
I try to instantiate a instance of SPSite on the farm server in a custom software (MyApp.exe) and I give in parameter the whole website (http://mysite:80/). I also made sure that the account running ...
20
votes
4answers
24k views
Unable to delete SharePoint 2010 ContentType “Contenty type in use.”
I have tried all the recommendations on the web, to no avail.
I wrote a console application per these instructions: ...
18
votes
2answers
4k views
Sharepoint Out of the box Approval Workflow Approve/Reject comments issue when programmatically altering it
I have a resusable out of the box sharepoint approval workflow 2010, and I am programmatically approve/reject workflow using the below code snipelet inside infopath formcode (2010).
Hashtable ht = ...
15
votes
1answer
17k views
Deploying custom dll's in SharePoint 2010
I'm new to SharePoint and trying to get my head around this. I have a simple Web Part project. I also have a custom Data layer project that uses the Microsoft Enterprise Library for data access. In ...
15
votes
4answers
51k views
SharePoint 2010 is forcing me to save PDF when opening from doc library
I have a document library with a PDF file. Whenever I click on the PDF file, I am prompted to save the file. I do not get the option of opening the file, I am forced to save it. What I want is for ...
14
votes
4answers
1k views
What does this Javascript code do?
I've been looking at Sharepoint script files and I've come across this bit that I don't get:
function ULSTYE() {
var o = new Object;
o.ULSTeamName = "Microsoft SharePoint Foundation";
...
14
votes
2answers
21k views
Add user to SharePoint 2010 group using powershell
We need to add several users to several SharePoint Groups.
Does anyone have an example of how to add a user to a sharepoint group using power shell.
11
votes
15answers
2k views
What developer features excite you the most for WSS 4.0 / SharePoint 2010? [closed]
There's been a lot of developer frustration working with SharePoint but we all hope Microsoft has been listening. With that in mind...
What updated and new features for developers excite you about ...
11
votes
2answers
14k views
Getting members of an AD domain group using Sharepoint API
In my Sharepoint code I display a list of all defined users via:
foreach (SPUser user in SPContext.Current.Web.AllUsers)
{
...
}
The great part is, I can add a domain security group to a ...
11
votes
4answers
15k views
Change SharePoint Library URL
How do you change the URI of a SharePoint library? Based on Google searching, most people say that changing the name of a library in Designer (via right click->rename) will result in the URI change, ...
11
votes
7answers
27k views
SharePoint error: Web application at xxxx could not be found
When I try to execute this code:
SPSite siteCollection = new SPSite(@"http://sp-devxxx:10000/");
It throws the following error:
The Web application at
http://sp-devxxx:10000 could not be
...
11
votes
1answer
11k views
Programatically get 14 hive path in sharepoint 2010
i need to get 14 hive path using code in C#.net.
can any one tell me how can i do this?
11
votes
2answers
28k views
SPSite site = new SPSite(SPContext.Current.Web.Url) vs SPContext.Current.Web.Site
Why do some SharePoint examples use
using (SPSite site = new SPSite(SPContext.Current.Web.Url))
{
...
}
and not just simply?
SPSite site = SPContext.Current.Web.Site;
...
Update
I think I ...
9
votes
5answers
19k views
Enabling Session State in SharePoint 2010?
I have a web service built for SharePoint 2007 that I am trying to port to SharePoint 2010. This web service is dependent on session state to function properly, but so far, I have been enable to get ...
9
votes
9answers
6k views
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 ...
9
votes
3answers
7k views
WebBrowsable vs Personalizable in Web Parts
What is the difference between the attributes WebBrowsable and Personalizable in a Sharepoint 2010 web part?
e.g.
[Personalizable(), WebBrowsable]
public string IconURL { get; set; }
vs
...
9
votes
2answers
12k views
SharePoint List.getListItems WebService to return sub folder contents, recursively
I am calling the lists.asmx webservice from CXF.
The following soap call does not return files from list sub folders. It returns folder1,folder2 and file1.pdf
Shared Documents
folder1
...
9
votes
5answers
6k views
“The specified view is invalid” in call to LimitedWebPartManager.AddWebPart in SharePoint 2010
This code used to work in WSS 3.0 / MOSS 2007 in FeatureReceiver.FeatureActivated:
using (SPLimitedWebPartManager limitedWebPartManager = Site.GetLimitedWebPartManager("default.aspx", ...
9
votes
2answers
5k views
Change the Category for Web Part to be displayed
In Sharepoint 2010, is there any way to change the category where custom web parts created in VS2010 to be placed.
VS2010 is putting the custom web part in "Custom" category by default. I'm curious ...
9
votes
2answers
2k views
How to properly call an external WCF Service from SharePoint 2010?
I would like to call an external WCF Service from within SharePoint. Using normal WCF calls immediately causes a SocketException (An existing connection was forcibly closed by the remote host), which ...
8
votes
3answers
45k views
Enabling publishing infrastructure feature in sharepoint 2010
Hi can I enable publishing infrastructure feature in sharepoint 2010
Thanks
8
votes
7answers
31k views
Could not load file or assembly '' or one of its dependencies
Any help please?
I have only one library and it is driving me crazy. this is the error that I receive.
I am not using any other dependancies.
Could not load file or assembly 'FOD.Intranet.Lib, ...
8
votes
2answers
10k views
Override Chrome Type Webpart
I made a Webpart in Sharepoint 2010, and I need that the property "Chrome Type" allways set a "None" value.
I was looking for ways to force the Combobox to "None", or overriding the "Chrome Type" in ...
8
votes
7answers
7k views
“Provider Load Error” when deploying SharePoint 2010 solution
Occasionally, seemingly randomly, about once a week, I get the following error in the output window when trying to deploy or retract a SharePoint 2010 solution from visual studio 10:
Error occurred ...
8
votes
5answers
3k views
ASP.NET MVP vs ASP.NET MVC
My company is trying to make an informed decision about how to pursue future development.
We seem to have narrowed down our future internal and external Applications to being web applications. But ...
8
votes
3answers
7k views
How to Change SharePoint 2010 Project from Sandboxed Solution to Farm Solution
I created a new sharepoint project in Visual studio 2010 and by mistake it was sandboxed solution, after finishing my development its wont build because i am adding items to controltemplates and its ...
8
votes
3answers
29k views
How to reset SharePoint 2010 List forms from InfoPath to the default forms?
I've converted a Custom List forms to use InfoPath forms using SharePoint Designer, now I want to revert this back and return to the normal New, Edit and Details forms.
How can I achieve this?
Edit: ...
8
votes
6answers
14k views
SharePoint 2010 - Client Object Model - Add attachment to ListItem
I have a SharePoint List to which I'm adding new ListItems using the Client Object Model.
Adding ListItems is not a problem and works great.
Now I want to add attachments.
I'm using the ...
8
votes
1answer
9k views
Background image in pdf-document (using iTextSharp)
I need sample code in C# to insert the background image on all pages of the finished pdf-document. I'm using iTextSharp library. Help, please.
8
votes
3answers
15k views
Programmatically set a TaxonomyField on a list item
The situation:
I have a bunch of Terms in the Term Store and a list that uses them.
A lot of the terms have not been used yet, and are not available yet in the TaxonomyHiddenList.
If they are not ...
8
votes
4answers
4k views
How to store user-specific data in SharePoint
I have some user-specific data that I need to store in SharePoint and make accessible to the user through custom webparts. Let's say a list of favorite URLs. What would be the most straightforward way ...
8
votes
2answers
4k views
Using Linq on a Client Object model result from sharepoint
I am trying to use LINQ on a result i get from Client Object Model.
var rolesAssignments = context.Web.RoleAssignments;
context.Load(rolesAssignments,
roles => ...
8
votes
4answers
3k views
When does one use Web Parts vs. Full blown ASP.NET application in SharePoint?
I'm still struggling with this question as I'm trying to get up to speed with SharePoint, coming from ASP.NET Web Forms. We're looking to use SharePoint exclusively for several reasons; one of the ...
8
votes
1answer
8k views
How do I deploy an Asp.net web application to a Sharepoint 2010 site using WSP
Suppose I created a custom web application that consists of:
several assembly DLLs: web app, business logic, data services
multiple aspx pages and ascx custom controls that use them
custom ...
8
votes
3answers
866 views
Cannot upload Image to a SharePoint List
I'm working with a Visual WebPart and I want to upload a image from my FileUpload control to a SharePoint list. This is the code I'm using but I can't get it to work, (Title, prodnum, color, etc is ...
8
votes
2answers
5k views
Get all users from active directory to sharepoint
I have to populate my autocomplete PeopleEditor-like control based on brililant ASPTokenInput with all people from my AD domain. Reflecting PeopleEditor shows a real mess in their Active Directory ...
7
votes
8answers
28k views
How to get the Absolute URL of a file in sharepoint library
I am working on SharePoint 2010.I have an documentlibrary ID and document ID in that library with me.i don't have either web,site in which the document library is present.So now I have to get the Full ...
7
votes
7answers
1k views
What SharePoint development concepts are the hardest for ASP.Net developers to understand?
I'm trying to put together SharePoint 2007 (and, eventually, 2010) training materials for experienced ASP.Net developers, and having done SharePoint for years, I don't really remember where the worst ...
7
votes
2answers
2k views
Conditionally specifying switch parameters in PowerShell
I'm writing a PowerShell script that uses the SharePoint 2010 New-SPWeb cmdlet to create sites defined by an Xml file:
<?xml version="1.0" encoding="utf-8" ?>
<siteStructure>
...
7
votes
2answers
3k views
How do you hide a Powershell progress message?
I think Write-Progress is a rather beautiful Cmdlet. In fact Sharepoint makes use of it with its Start-SPAdminJob commandlet.
All fine and dandy, the problem is that Start-SPAdminJob does not ...
7
votes
5answers
8k views
How do I tell if an SPListItem is a document or a folder
I have a loop that is looping through a document library like in the example below.
foreach (SPListItem item in DocumentLibrary)
{
}
How do I tell if the SPListItem is a document or a folder?
7
votes
5answers
6k views
Where is Microsoft.Sharepoint.IdentityModel.dll
I am trying to use the SPFederationAuthenticationModule class in my SharePoint Foundation 2010 project. \I cannot find Microsoft.Sharepoint.IdentityModel.dll file. There is not one in ...
7
votes
6answers
7k views
Company wants me to learn Sharepoint 2010 development, should I? [closed]
I am a Asp.Net developer, currently working on Webforms in 3.5. I do C# now, used to do VB.Net. I am also a middle tier developer (business layer and data layer) working on refactoring the current ...
7
votes
2answers
9k views
Retrieve SPList URL programmatically
Lets say I have a SharePoint List provided on URL http://webapp:1234/Lists/TestList. In code, I have access to the corresponding SPList-Instance only. How can I get the URL of this SPList-Instance ...
7
votes
2answers
9k views
Import list template STP file to Visual Studio 2010
I have exported a Sharepoint 2010 list as a list template (.stp file) via the UI.
Is there any way to import this list template back to Visual Studio 2010 or is my only chance to extract the .cab ...
7
votes
1answer
7k views
How to get SPWebApplication from SPWeb?
So I'm inside a web scroped feature (properties.Feature.Parent = SPWeb).
How do I get the SPWebApplication from this SPWeb?
I tried:
SPWebApplication webApp = ...
7
votes
3answers
8k views
Unable to add a ribbon button to a custom list
Edit: Updated with input from Omlin
I am attempting to add a custom button to the ribbon. I want the button associated with a custom list named “Products”. I am able to get the button to show for a ...
7
votes
10answers
2k views
Getting started with SharePoint 2010 for SharePoint 2007 Developers
Do you know some quick links that will help a SharePoint 2007 Developers to get started with SharePoint 2010.
Let me start with the links I know.
General Information on SharePoint 2010
Must watch ...