sharepoint2010

Caml query to search in Sharepoint ListItem MetaInfo

Hello, I am working with Sharepoint Lists in Silverlight and I am trying to write a CAML query that returns me all list items (pictures) which where made (effectively taken with the camera) after a specific date. I found that the ListItems have a MetaInfo property called "vti_ct" which is exactly the date I need. The problem is that I d...

how to do the webpart to list the items(doc,lib) available in current site in sharepoint 2010

How to Create a webpart using client object Model and get the current site,loop through the List and Libraries get the documents which are uploaded by today & yesterday ...

Unable to update a list item from a workflow task in C#

I am not getting any exceptions, but the code below is simply not working. Any ideas? SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPWeb web = this.workflowProperties.Web) { try { SPListItem item = web.Lists["NewHireFormsLibrary"].Items[workflowProperties.ItemId - 1]; item["Fi...

Visual Studio - SharePoint 2010 - Include Assembly > Quick Question

I have a quick question....building a VS 2010 SharePoint project and I am referencing a custom assembly. I can reference this assembly in my code and it works fine to write code and all. When I deploy the project to SharePoint my Feature Activation code will not run because the custom assembly does not get deployed with the project. I...

Cannot Enable Anonymous Access for Publishing Site

I have created a new Publishing Site on a newly installed SharePoint 2010 on my local Win7 box. The front page of the Publishing Site has an option to "Enable anonymous access" When I access that link there are three radio button options with "Nothing" selected. The other radio buttons for "Entire Site" and "Lists and Libraries" are di...

Minimum Hard Drive Size for SharePoint 2010 and SQL Server 2008 dev machine

I plan to have VS 2010 on my local box, and I'm building a VM with SP 2010 and SQL Server 2008. What hard drive size should I shoot for on the VM? ...

Getting a list of currently logged on users from the active directory

I am currently working on developing a sharepoint 2010 web part where I need to get a list of currently logged on users from a given domain. Can this be done using System.DirectoryServices.AccountManagement? If so how can some one give me code example? ...

How to display the site name and site list,library available in the site collection using sharepoint client object model

How to display the site name and site list, library available in the site collection using sharepoint client object model on sharepoint 2010 ...

Exception when Deploying to SharePoint 2010 from Visual Studio 2010

I've done MOSS 2007 development for some time, and am just starting to get my feet wet with SharePoint 2010. I created a SharePoint project, added a Visual Web Part, and typed "Hello, World!" into the web part's user control. Everything works fine the first time I deploy the project (by selecting Deploy from the project's context menu i...

Adding ContentTypes to a list with SiteDefinition

Using SharePoint 2010 and Visual Studio I have created a site definition (inheriting from the publishing site) which correctly creates all the required lists and now includes page instances in the "Pages" document library. The Pages use the correct custom pagelayout and the correct content type, however, because the "pages" library on...

InfoPath Forms Services, Manage form templates error file not found

Im using Sharepoint 2010 and when i tried to go to Central Administration -> General Application Settings -> Manage form templates (InfoPath Forms Services), the page shows error , file not found, Troubleshoot issue with Microsoft Sharepoint Foundation. Correlation ID:xxxxxxxx. i use this instructions for the services activation What s...

How to get solutionVersion, productVersion and PIVersion for published Infopath form?

I have to create some Infopath form from c# code. So I use xsd.exe to create c# objects and XmlSerializer to compose xml files. Also I must define "mso-application" like "progid="InfoPath.Document" versionProgid="InfoPath.Document.3" (for sharepoint 2010) and "mso-infoPathSolution". I have problem with "mso-infoPathSolution" where I mus...

PerformancePoint, SharePoint 2010 and JQuery

Are there any events that PerformancePoint Dashboards emit after loading data that can be leveraged by JQuery. The document.ready fires before the performancepoint dashboard has rendered so that doesn't help. I need for the performancepoint dashboard to render so I can then use JQuery to manipulate the dashboard. Your help is apprecia...

Crawling MOSS 2007 from Sharepoint 2010

Hi Sharepoint Experts, I got the following warning after I crawled a site. Info out of Crawl Log: "The content for this address was excluded by the crawler because this item was marked with a no-index meta-tag. To index this item, remove the meta-tag and recrawl." Sound easy but I don't no where I could do it. In crawl Rules i have ...

Selected items on a sharepoint 2010 listitemcollection

Is there a way to get just the selected items of a document library from the server side? I was looking for something like this: SPDocumentLibrary docLib = web.Lists[list.Title] as SPDocumentLibrary; SPListItemCollection items = docLib.Items; foreach (SPListItem item in items){ //if (item.Selected) } ...

MultipleBaseAddressBasicHttpBindingServiceHostFactory or WebScriptServiceHostFactory for SharePoint 2010 Web Service?

When it comes to creating a new Service running on SharePoint 2010, people seem to usually use the Sharepoint MultipleBaseAddressBasicHttpBindingServiceHostFactory. However, I would like to use the standard .net/WCF WebScriptServiceHostFactory instead because this gives me JavaScript code by calling the Service URL with /js. My Service...

How to get Sharepoint User object from the "AssignedTo" field using client side object model ?

I am using managed client side object model in sharepoint 2010. And I want to get loginaName of the AssignedTo user in Task list. In server side object model I use SPFieldUserValue.User.LoginName to get this property but in client side object model FieldUserValue.User does not exists. How can I resolve this situation ? Thanks ...

How to create page layout in sharepoint 2010 wss? please help

How to create page layout in sharepoint 2010 wss? please help ...

Guide me to do recent activity web part in sharepoint 2010 using client object model.

how to add the toolpart where user can specify Multiple no of sites. using client object Model get the configured site details, Show only custom list & libraries, Get only the Last 2 days created & Modified Items details ...

Paging error using SPGridView

I'm using the OOTB SPGridViewPager control associated with an SPGridView. This worked fine in 2007 but now we've upgraded to 2010, I get the following error when trying to page through the dataset; System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. at Microsoft.SharePoint.WebControls.SP...