Webpart in Anonymous Access site
I have created a webpart for searching a document library. But when I put this webpart in a site with anonymous access enebled and when i navigate to the page which contains my webpart, it is asking me the username and password.
actually in my code I am calling SPSite.AllWebs there it is asking credentials.
How can I override this and provide the anonymous user my webpart.