Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.