SharePoint list data can be accessed in custom applications in C# without using SharePoint Object Model or Web Services. The list data can be retrieved as XML using a specific URL to the list (even using a web browser). This is described in this post. This URL can be requested from within the custom code [...]
Archive for December, 2011
Programmatically Accessing SharePoint List XML Data in C# Code
Posted in Programming, SharePoint, SharePoint 2010, tagged C#, SharePoint Development on December 20, 2011 | 2 Comments »
SharePoint List Data as XML
Posted in Programming, SharePoint, SharePoint 2010, tagged SharePoint Development on December 20, 2011 | 1 Comment »
Getting data as XML from a SharePoint List or Library is very helpful when we need to use the data in a custom application (developed using a programming language like C#) or in InfoPath forms. The data from a SharePoint list can be retrieved in XML format by using the following URL: <your site URL>/_vti_bin/owssvr.dll?Cmd=Display&List={<list [...]
“System.InvalidProgramException: Common Language Runtime detected an invalid program” while rendering Data View Web Parts
Posted in SharePoint 2010, tagged SharePoint Administration; Web Part Error; Error on December 13, 2011 | 4 Comments »
On a busy Tuesday, users of our SharePoint 2010 farm started receiving the following error on a web part page. Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator. [...]
“The Web application at <url> could not be found” – Error with Visual Studio Custom Applications which uses SharePoint 2010 Object Model
Posted in Programming, SharePoint 2010, tagged SharePoint Development; SharePiont Object Model on December 9, 2011 | Leave a Comment »
Most of us might have seen this error while creating a custom application (console application, Windows application or custom web part) using Visual Studio targeting for SharePoint 2010. It’s not just this specific error but a lot of other weird error messages without any reason. The above error occurs when we create a new SPSite [...]