SPWeb.EnsureUser() using Web Services
I wanted to know the equivalent of SPWeb.EnsureUser() in web services and this is what I found: The people.asmx web service contains a method that let us do exactly the same than what EnsureUser()...
View ArticleAccess Denied with RunWithElevatedPrivileges
One of my coworkers was getting an Access Denied error within the RunWithElevatedPrivileges block. I had this issue long time ago when I first used RunWithElevatedPrivileges so I thought maybe it was...
View ArticleProgrammatically Reading excel file from SharePoint library
I had a requirement to read the contents of Excel files located in a SharePoint library from a C# Application. The Server had installed the Office Primary Interop Assemblies (PIAs). PIAs are assemblies...
View ArticleSubmit SharePoint Survey without navigating to the last question
If you’re implementing branching logic, to submit a SharePoint survey you have to navigate to the last question and click the Finish button. This is how it behaves, it is designed so that the Finish...
View ArticleComplete Workflow Programmatically
Looking at a document library with workflows, I noticed that one of the instances of a workflow was in status “Error Occurred”. All of the tasks were Completed, but for an error in the code, the...
View ArticleUnmanaged Code and SharePoint Internals Presentation
SharePoint underground (Unmanaged Code and SharePoint Internals)
View ArticleSilverlight and WCF communication error
I’m working on a Silverlight application that makes calls to WCF services to work with data, and today I ran into this error: System.ServiceModel.CommunicationException: An error occurred while trying...
View ArticleDVWP sorts numeric columns as strings
If you’ve worked with the data form web part (or as some people call it: the data view web part, lol), you’ve probably noticed that if you enable “Sorting and Filtering on column headers” in the data...
View ArticleWorking with the Managed Metadata Service Remotely
With the arrival of the Managed Metadata Service in SharePoint 2010 we know how useful and powerful this concept is to centrally define and manage terms that will be used as attributes for items in...
View ArticleAdd a web part to an application page (located in the _layouts folder)
This post goes to a friend that needed to host a webpart in a page located in the _layouts folder. Application pages are generic pages that will not be customized, will be deployed only once per web...
View Article
More Pages to Explore .....