sharepoint2010

Error Creating Site Collection Programatically

I have a console application that is going to be used to parse an input file and create site collections based on the input. It is being run on a WFE in the farm, by a farm admin account. When attempting to add a site collection to a web application with a valid user an ArgumentException is thrown deep in the stack with an error message ...

Enumerating SPList.Files is bad....

Hi, I'm looking for a way to add a text file to a SharePoint list that DOESN'T enumerate the entire file set. According to this SharePoint best practices article, you shouldn't access the SPList.Files property because it enumerates the entire collection. Unless you actually want every item, then it's very inefficient. All I want to do i...

Will SharePoint 2010 support Web Service Access?

It's my understanding SharePoint 2010 has introduced a new JavaScript API, a brand new assembly for Silverlight clients, but does anybody know if there will be still support for good old Web Service Access? By old services, I am referring to the old interface http://msdn.microsoft.com/en-us/library/dd878586.aspx ...

Site Columns, Page layouts etc not getting deleted on Feature deactivation

I have written a publishing feature which creates some site columns, a content type referring these site columns, a master page and some page layouts. When I deactivate this feature, the site columns, the master page and the page layouts are not getting deleted from their gallery. What am I doing wrong here? Should I be writing an e...

Deploying Content Type with Publishing HTML Field by Feature saving content not correctly

Hi! I have a problem using a Publishing HTML Field. The Elements.xml: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; <Field ID="{987B9BA2-23AB-4E52-99DD-2D59BAA79F4B}" Name="LeftContent" DisplayName="Left Content" RichText="TRUE" RichTextMode="FullHtml" Type="HTML" Hidden="FALS...

Customizing blog post pages in SharePoint

Can anyone tell me where I am going wrong? I am trying to make some customizations on blog site template. What I want to do is change the layout of the comment list at the bottom of every post detail page in the blog site template. So I went to SiteTemplates\Blog folder, I found the list template for comment lists in Lists\Comments\schem...

WSPBuilder cannot find my assembly

I am using WSPBuilder on Visual Studio 2010 to create a feature with a feature receiver assembly for SharePoint 2010. When I try to build the WSP using WSP Builder I get this message in the output window: The assembly MyAssembly.dll is unmanaged. The assembly will be excluded from the WSP package! The defined Project Assembly seems not ...

Problem with WebPartOrder in onex.xml

I've created site from site definition and created page with webparzones which i add webparts, but property WebPartOrder ignored and webparts sorted randomly. In sharepoint 2007 same code work fine. What could be the problem? <AllUsersWebPart WebPartZoneID="LeftCol" WebPartOrder="1"> </AllUsersWebPart> <AllUsersWebPart WebPartZoneID="Le...

Accessing SP 2010 Object Model from Silverlight 4 Application

I have a Silverlight 4 Beta application where I'd like to use the SharePoint object model to upload a document to a SharePoint site - should be simple enough, except an exception is thrown at: using (SPSite siteCollection = new SPSite(siteCollectionUrl)) The Web application at http://intranet.fabrikam.com could not be found. Ve...

How to refer to/locate a SharePoint 2010 site template?

I created a site template from a basic site which was itself created from the basic team site template. Now I would like to use that site template outside the web where it was created so it acts like a global template. For example, I would like my new template to appear in the templates list shown by get-spwebtemplate or copy an 'stp' ...

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 session state to work at all in SharePoint 2010. This web service runs as its own web application under t he /_vti_bin virtual directory. ...

Search Server 2010 - reference error

Hello, Im running Search Server 2010 from a virtual machine and it works good so far. On my development machine (win xp 32bit), the thought is to query the search server with a web service. Problem is that when i try to start the site, i get the following error: Could not load file or assembly 'Microsoft.Office.Server.Search' or one of...

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 returning 503. The service is unavailable And this error was found in the Application log The Module DLL 'C:\Program Files\Common Files\Microsof...

Differentiate between Windows Auth and Forms Auth users when authenticating against same AD with SharePoint 2010 using claims based authentication.

I am currently working on a SharePoint 2010 project where the environment is setup with a SharePoint web application using claims based authentication. The web app is created on port 8081 using Windows Authentication for auth, and extended to port 80 using Forms Based Authentication. The forms authentication provider is setup to use the...

Installing SharePoint 2010 in Microsoft VPC (Windows 2008 Server) Vs Upgrading MOSS 2007 in same server?

I am aware of the upgrade options for SharePoint 2010 http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=e8b66eb3-27c7-4a39-a2e1-3e7d18b12ee1 The above talks more of a Production Deployment. And i have seen so many Windows 7 VHD boot for SharePoint 2010. Would like to hear options for the MS VPC with Windows...

enabling in-line editing for a view in list definition

I'm currently creating some list definition for use in a SharePoint 2010 environment. In these definitions I need to to define a view which enables in-line editing. This is easily accomplished in the UI as well as from code by setting the InLine property of the SPView object to "TRUE", however I can't find any property of the CAML defini...

Trace log Example does not work in Sharepoint 2010

The Sharepoint Trace Log Sample given at http://msdn.microsoft.com/en-us/library/aa979522.aspx & explained at /en-us/library/aa979595.aspx does not work in in Sharepoint 2010. Any ideas of how to Write to Trace Log from webpart( non-sandboxed) ...

How can I add a ClientAccessPolicy.xml file to the SharePoint 2010 root folder?

In a Visual Studio 2010 SharePoint (2010) project, we can add mapped SharePoint folders, including the {SharePointRoot} folder. When I deploy my project, I can see that the root files end up in the 14-hive, but they never appear in the web site root. What I really want to accomplish to unit test my Silverlight application which communic...

How long am I able to use SharePoint 2010 beta?

How long am I able to use SharePoint 2010 beta version? Thank you. ...

Do Business Connectivity Services use live data

In SharePoint 2010 the business data catalog will be replaced by Business Connectivity Services. With BDC the data in SharePoint would only be synchronized with the datasource when requested. Is this still the case with BCS or does this work with live, up to date, data? ...