Skip to content


Subversion checkout URL

You can clone with
Download ZIP
120 lines (118 sloc) 6.66 KB
<?xml version="1.0" encoding="utf-8"?>
For more information on how to configure your ASP.NET application, please visit
<!-- This section type declaration is needed unless you want to set things up entirely in code -->
<section name="Exceptional" type="StackExchange.Exceptional.Settings, StackExchange.Exceptional" />
<!-- Example minimal setup section that uses an in-memory error store: -->
<!--<Exceptional applicationName ="Samples.MVC4" />-->
<!-- Complete Exceptional Settings: only applicationName is required here, if given no store we'll default to memory. -->
<!-- Note: dataIncludePattern is optional - just here for demo purposes -->
<Exceptional applicationName="Samples.MVC4" dataIncludePattern="Redis.*">
<!-- This entire section is optional, if you want to log all exceptions you can leave off <IgnoreErrors> -->
<!-- Optional: Error messages to ignore -->
<!-- Exceptions with messages matching a regex here will not be logged -->
<!--<add name="connection suuuuuuuucks" pattern="Request timed out\.$"/>-->
<!-- Optional: Error types to ignore, e.g. <add type="System.Exception" /> or <add type="MyNameSpace.MyException" />-->
<!-- Exceptions of the type here will not be logged, if you want to ignore an entire class of exception-->
<!--<add type="System.Exception" />-->
<add name="password" replaceWith="********" />
<add name="authToken" replaceWith="**we don't record tokens man!**" />
<!-- Email settings to send to, if an email per exception is desired, only toAddress is required, other defaults are pulled from the <> section -->
<!--<Email fromAddress="" fromDisplayName="Bob the Builder" toAddress="" />-->
<!-- Which ErrorStore to use, if no element is declared here a Memory store with defaults will be used -->
<ErrorStore type="Memory" />
<!-- Other store types, common attributes:
- rollupSeconds: optional (default 600 seconds), determines how long the window is to roll up exceptions with the same stack trace - 0 to not roll up
- backupQueueSize: optional (default 1000), determines how many errors to cache (excluding rollups) in memory when logging fails...every 2 seconds we'll retry logging and flush these out to the final store -->
<!-- JSON: size defaults to 200, this is how many files are kept before the oldest error is removed -->
<!--<ErrorStore type="JSON" path="~/Errors" size="200" />-->
<!-- SQL: only a connection string or connection string name is needed, many applications can log to the same place as long as they have unique names (otherwise we can't tell them apart). -->
<!--<ErrorStore type="SQL" connectionString="Server=.;Database=Exceptions;Uid=Exceptions;Pwd=myPassword!" />-->
<!--<ErrorStore type="SQL" connectionStringName="MyConnectionString" />-->
<!-- You can also use a MySQL Database with the MySQL ErorrStore -->
<!--<ErrorStore type="MySQL" connectionString="Server=.;Database=Exceptions;Username=Exceptions;Pwd=myPassword!" />-->
<!--<ErrorStore type="MySQL" connectionStringName="MyConnectionString" />-->
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-Samples.MVC4-20120901082117;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-Samples.MVC4-20120901082117.mdf" providerName="System.Data.SqlClient" />
<add key="webpages:Version" value="" />
<add key="webpages:Enabled" value="false" />
<add key="PreserveLoginUrl" value="true" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Optimization" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<validation validateIntegratedModeConfiguration="false" />
<!-- OPTIONAL: if not using a router, or you don't want to access the errors directly via this application,
this is not necessary. A common scenario for this is logging all errors to a common SQL store and viewing
them through another application or a dashboard elsewhere.
Note: If the error list isn't exposed in the application, any errors in logging exceptions will be queued up,
but not visible (since that's exposed on the error list view).
<add name="Exceptional" path="exceptions.axd" verb="POST,GET,HEAD" type="StackExchange.Exceptional.HandlerFactory, StackExchange.Exceptional" preCondition="integratedMode" />
<!-- Here the error log needs to be registered to catch all unhandled exceptions,
these are exceptions that make it all the way to being a 500 page the user sees. -->
<modules runAllManagedModulesForAllRequests="true">
<add name="ErrorLog" type="StackExchange.Exceptional.ExceptionalModule, StackExchange.Exceptional" />
<smtp deliveryMethod="Network" from="">
<network host="localhost" port="25"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="" newVersion="" />
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="" newVersion="" />
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="" newVersion="" />
Jump to Line
Something went wrong with that request. Please try again.