Click here to Skip to main content
15,886,774 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
XML
<?xml version="1.0"?>
<configuration>
  ...

  <elmah>
  <security allowRemoteAccess="1" />

  ...
  </elmah>

  ...

  <location path="elmah.axd">
  <system.web>
  <authorization>
  <allow roles="Admin" />
  <deny users="*" />
  </authorization>
  </system.web>
  </location>
</configuration>

but not allowing any user to access the elmah.axd page..
plz help me out .....Thanks in advance..
Posted
Comments
Richard C Bishop 22-May-13 10:30am    
Hmmm, I wonder. Could that be because you are denying all of them?
Orcun Iyigun 22-May-13 11:01am    
My 5+.
ZurdoDev 22-May-13 10:34am    
deny users="*" means deny everyone. Try deny users="?" which means deny those not authenticated.
Prasad Khandekar 22-May-13 10:42am    
Hello,

Please checkout this article (http://weblogs.asp.net/gurusarkar/archive/2008/09/29/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config.aspx)

Regards,
Orcun Iyigun 22-May-13 11:00am    
Why didnt you post it as a solution since it is the obvious answer? :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900