I have a sharepoint autohosted app integrated with mvc model (DocumentsMvc project)

I created a list (AwaitingDocuments) by adding it to sharepoint project (Documents) and created a simple view in which I want to display some basic information from the list.

However when I try to debug the app it catches exception stating that:

List 'AwaitingDocuments' does not exist at site with URL https://someserver.sharepoint.com/sites/somesite

I tried to access the list directly through https://someserver.sharepoint.com/sites/somesite/someapp/lists/AwaitingDocuments and it was there.

Here is a look at my solution setup:


Any help would be appreciated

  • Double check that the list is added to your feature! May 24, 2013 at 13:31
  • Yes, it's added. Under "Items in the Feature" :AwaitingDocuments List Instance and Documents Module.
    – sebz
    May 24, 2013 at 13:37
  • I had the same problem, how to get the list ? thanks
    – user17442
    Jun 4, 2013 at 23:09

2 Answers 2


Any list you deploy as part of you App will be added to the AppWeb (yes such a web is created when you add SharePoint items to your App, even though the App is Autohosted) not to the HostWeb

  • Ok it works now, I changed access method to web from SPContext.Web to SPContext.Site.OpenWeb(SPContext.Site.ServerRelativeUrl + "/Documents"). Thanks for directing me to the right issue.
    – sebz
    May 27, 2013 at 9:44
  • Well spotted per +1
    – Hugh Wood
    May 28, 2013 at 8:23

I am presuming that your app doesn't have the proper "read" permissions to see this list.

Add the read permission to the AppManifest for the list service. This should then work.

  • Thanks for reply but that wasn't the problem in my case. I had the required permissions turned on.
    – sebz
    May 27, 2013 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.