SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to enable anonymous access only one list in my sitecollection to display news on login page of form base authentication.In order to do that I have enable Anonymous access at web application level and at sitecollection level i enable anonymous access to List and Libraries. I have News list at root level and i broke permisson here to allow anonymous access for view items.

Now i am trying to access this list in UserControl but getting error saying List does not exists but same code work in Console application.

i am getting error at this line SPList News = web.Lists["News"];

Please advise how i can programatically get items from Anonymous access list.

Thanks ROnak

share|improve this question
If you hit the site as an anonymous user and go directly to the list, can you see the list? – Dave Wise Aug 21 '12 at 21:43
up vote 0 down vote accepted

Thanks Dave for your reply i actually had figure it out and what i did is instead of breaking permission on list programatically i did manually and it worked so something wrong in my code.Thanks

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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