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?