Merge branch 'aspnet46'

This commit is contained in:
Tommy Parnell
2015-10-21 22:25:06 -04:00
2 changed files with 5 additions and 8 deletions

View File

@@ -73,14 +73,14 @@ namespace DotNetMashup.Web
{
// Add Error handling middleware which catches all application specific errors and
// send the request to the following path or controller action.
app.UseExceptionHandler("/Home/Error");
app.UseExceptionHandler("/Home/Error")
.UseApplicationInsightsRequestTelemetry()
.UseApplicationInsightsExceptionTelemetry();
}
// Add static files to the request pipeline.
app.UseStaticFiles();
// Add MVC to the request pipeline.
app.UseMvc(routes =>
app.UseStaticFiles()
.UseMvc(routes =>
{
routes.MapRoute(
name: "default",

View File

@@ -1,5 +1,2 @@
{
"ApplicationInsights": {
"InstrumentationKey": "fda37cc5-e36e-4171-94ac-f02f9f1771c9"
}
}