I have a big issue in accessing a SharePoint site from ASP.NET Web Application.
static void Main(string args)
using (SPSite site = new SPSite("http://server/site"))
using (SPWeb web = site.OpenWeb())
foreach (SPList myList in web.Lists)
This code is a console app that will display all the lists from that site. Works fine, no problem!
System Info: Windows Server 2008 R2, SharePoint Server 2010, SQL Server 2008 R2. My user has admin rights everywere.
Now I created a new ASP.NET Web Application project, .NET Framework 3.5, AnyCPU (and I use Visual Studio Development Server, not deployed yet)
On the default.aspx page I added: one ListBox and a Button.
Event handler for Button Click code is the same as the code above, a simple thing to display all lists from a site.
Result: is not working!
Are there issues in developing ASP.NET Web Application that uses SharePoint Client Object Model?
I just want to
View Complete Post