Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Problem with handler when read list.

$
0
0

Hi,

I have a problem with handler (ashx) when I want to get a list.

I got this error: Incorrect function. (Exception from HRESULT: 0x80070001)

(I'm using Sharepoint2013 and VS2012)

I tried using OpenWeb() function but it brings me Credentials window in the browser window and I don't want it to show each time.

This is the code I used:

public void ProcessRequest(HttpContext context)
        {
            var web = SPContext.Current.Site.RootWeb;
            string path = "lists/MyList/allitems.aspx";
            var list = web.GetList(path);
......
}

Will someone please help me?


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>