You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.3 KiB

10 years ago
11 years ago
  1. <configuration>
  2. <configSections>
  3. <sectionGroup name="elmah">
  4. <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
  5. <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
  6. <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
  7. <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
  8. </sectionGroup>
  9. </configSections>
  10. <system.web>
  11. <httpModules>
  12. <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
  13. <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
  14. <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
  15. </httpModules>
  16. </system.web>
  17. <system.webServer>
  18. <validation validateIntegratedModeConfiguration="false" />
  19. <modules>
  20. <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
  21. <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
  22. <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
  23. </modules>
  24. </system.webServer>
  25. <elmah>
  26. <!--
  27. See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
  28. more information on remote access and securing ELMAH.
  29. -->
  30. <security allowRemoteAccess="false" />
  31. </elmah>
  32. <location path="elmah.axd" inheritInChildApplications="false">
  33. <system.web>
  34. <httpHandlers>
  35. <add verb="POST,GET,HEAD"
  36. path="elmah.axd"
  37. type="Elmah.ErrorLogPageFactory, Elmah" />
  38. </httpHandlers>
  39. <!--
  40. See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
  41. more information on using ASP.NET authorization securing ELMAH.
  42. <authorization>
  43. <allow roles="admin" />
  44. <deny users="*" />
  45. </authorization>
  46. -->
  47. </system.web>
  48. <system.webServer>
  49. <handlers>
  50. <add name="ELMAH"
  51. verb="POST,GET,HEAD"
  52. path="elmah.axd"
  53. type="Elmah.ErrorLogPageFactory, Elmah"
  54. preCondition="integratedMode" />
  55. </handlers>
  56. </system.webServer>
  57. </location>
  58. </configuration>