Advertisement
Guest User

Untitled

a guest
Oct 11th, 2010
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.45 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <configuration>
  3.     <configSections>
  4.         <sectionGroup name="elmah">
  5.             <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
  6.             <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
  7.             <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/>
  8.         </sectionGroup>        
  9.     </configSections>
  10.     <elmah>
  11.         <security allowRemoteAccess="1" />
  12.         <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="ConnectionString" />
  13.         <errorFilter>
  14.             <test>
  15.                 <!-- ignore 404
  16.                <equal binding="HttpStatusCode" value="404" type="Int32" />
  17.                  -->
  18.                
  19.             </test>
  20.         </errorFilter>
  21.     </elmah>
  22.     <connectionStrings>
  23.         <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" />
  24.     </connectionStrings>
  25.     <appSettings>
  26.  
  27.     </appSettings>
  28.     <system.web>
  29.         <customErrors mode="RemoteOnly" redirectMode="ResponseRewrite" defaultRedirect="~/errors.aspx">
  30.  
  31.         </customErrors>
  32.         <authentication mode="None"/>
  33.         <compilation debug="false" targetFramework="4.0">
  34.         </compilation>
  35.         <httpRuntime maxRequestLength="51200" useFullyQualifiedRedirectUrl="true" executionTimeout="600" requestValidationType="CustomRequestValidation"/>
  36.         <sessionState mode="InProc" cookieless="false" timeout="10"/>
  37.         <xhtmlConformance mode="Strict"/>
  38.         <identity impersonate="true"/><!-- true on iis6 -->
  39.         <globalization culture="en-GB" uiCulture="en-GB"/>
  40.         <pages enableViewState="false" enableSessionState="true" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
  41.         </pages>
  42.         <httpHandlers>
  43.             <add verb="POST,GET,HEAD" path="Errors.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
  44.         </httpHandlers>
  45.         <httpModules>
  46.             <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
  47.             <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
  48.         </httpModules>
  49.    
  50.     </system.web>
  51.     <system.webServer>
  52.     <security>
  53.     <requestFiltering>
  54.       <requestLimits maxAllowedContentLength="51200" ></requestLimits>
  55.     </requestFiltering>
  56.     </security>
  57.  
  58.         <!-- Below required to run elmah on iis7-->
  59.         <staticContent>
  60.            
  61.         </staticContent>
  62.        
  63.         <validation validateIntegratedModeConfiguration="false" />
  64.  
  65.        
  66.         <modules>
  67.             <remove name="UrlRoutingModule-4.0" />
  68.             <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
  69.             <remove name="Session"/>
  70.             <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition=""/>
  71.  
  72.             <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
  73.             <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
  74.         </modules>
  75.         <handlers>
  76.             <add name="Elmah" path="Errors.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
  77.         </handlers>
  78.     </system.webServer>
  79. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement