Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <configuration>
- <configSections>
- <sectionGroup name="elmah">
- <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
- <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
- <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/>
- </sectionGroup>
- </configSections>
- <elmah>
- <security allowRemoteAccess="1" />
- <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="ConnectionString" />
- <errorFilter>
- <test>
- <!-- ignore 404
- <equal binding="HttpStatusCode" value="404" type="Int32" />
- -->
- </test>
- </errorFilter>
- </elmah>
- <connectionStrings>
- <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=dummy;Persist Security Info=True;User ID=dummy;Password=dummy;Connect Timeout=45" providerName="System.Data.SqlClient" />
- </connectionStrings>
- <appSettings>
- </appSettings>
- <system.web>
- <customErrors mode="RemoteOnly" redirectMode="ResponseRewrite" defaultRedirect="~/errors.aspx">
- </customErrors>
- <authentication mode="None"/>
- <compilation debug="false" targetFramework="4.0">
- </compilation>
- <httpRuntime maxRequestLength="51200" useFullyQualifiedRedirectUrl="true" executionTimeout="600" requestValidationType="CustomRequestValidation"/>
- <sessionState mode="InProc" cookieless="false" timeout="10"/>
- <xhtmlConformance mode="Strict"/>
- <identity impersonate="true"/><!-- true on iis6 -->
- <globalization culture="en-GB" uiCulture="en-GB"/>
- <pages enableViewState="false" enableSessionState="true" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
- </pages>
- <httpHandlers>
- <add verb="POST,GET,HEAD" path="Errors.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
- </httpHandlers>
- <httpModules>
- <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
- <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
- </httpModules>
- </system.web>
- <system.webServer>
- <security>
- <requestFiltering>
- <requestLimits maxAllowedContentLength="51200" ></requestLimits>
- </requestFiltering>
- </security>
- <!-- Below required to run elmah on iis7-->
- <staticContent>
- </staticContent>
- <validation validateIntegratedModeConfiguration="false" />
- <modules>
- <remove name="UrlRoutingModule-4.0" />
- <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
- <remove name="Session"/>
- <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition=""/>
- <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
- <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
- </modules>
- <handlers>
- <add name="Elmah" path="Errors.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
- </handlers>
- </system.webServer>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement