Anonymous access to Application page
-
Saturday, November 06, 2010 6:29 AM
Hi All,
I added an application page to one of my sharepoint projects. And inherited from unsecuredlayoutspagebase.
But I am not able to get anonymmous access to that page. It still prompts for user name and password .
Can anyone point me to right direction.
Thanks
Julie
All Replies
-
Saturday, November 06, 2010 7:35 AM
Hi Julie,
you need to add to your web.config:
<location path="<strong>_layouts/pathtoyourapplicationpage/yourapplicationpage.aspx</strong>"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location>
You will allready find another entry for _layouts/images in your web.config. <allow users="*"> Define that ever user has access even if not authorized and.
There is a good knowledgebase article which describe this: http://support.microsoft.com/kb/316871Regards Stefan
http://www.n8d.at/blog
MCTS - SharePoint / WSS Configuration and Development -
Saturday, November 06, 2010 11:51 AM
Hi Julie
you need to override the AllowAnonymousAccess
property and return true see the following code\Good Luckprotected override bool AllowAnonymousAccess { get { return true; } }
Ahmed Naji SharePoint Geek
MCP|MCTS
My Blog | DotnetFinder- Marked As Answer by Julie Connor Saturday, November 06, 2010 10:39 PM

