diff --git a/ExceptionTest/ApplicationInsights.config b/ExceptionTest/ApplicationInsights.config
new file mode 100644
index 0000000..2e0a49a
--- /dev/null
+++ b/ExceptionTest/ApplicationInsights.config
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
+
+ search|spider|crawl|Bot|Monitor|AlwaysOn
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Web.Handlers.TransferRequestHandler
+ Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler
+ System.Web.StaticFileHandler
+ System.Web.Handlers.AssemblyResourceLoader
+ System.Web.Optimization.BundleHandler
+ System.Web.Script.Services.ScriptHandlerFactory
+ System.Web.Handlers.TraceHandler
+ System.Web.Services.Discovery.DiscoveryRequestHandler
+ System.Web.HttpDebugHandler
+
+
+
+
+
+
+
+ 5
+
+
+
+
\ No newline at end of file
diff --git a/ExceptionTest/Controllers/HomeController.cs b/ExceptionTest/Controllers/HomeController.cs
index 060fcf8..05a6754 100644
--- a/ExceptionTest/Controllers/HomeController.cs
+++ b/ExceptionTest/Controllers/HomeController.cs
@@ -1,7 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Net;
using System.Web;
+using System.Web.Http;
using System.Web.Mvc;
namespace ExceptionTest.Controllers
@@ -10,21 +12,16 @@ namespace ExceptionTest.Controllers
{
public ActionResult Index()
{
+ throw new WebException("awesome", WebExceptionStatus.RequestCanceled);
return View();
}
-
- public ActionResult About()
+ public ActionResult poop()
{
- ViewBag.Message = "Your application description page.";
-
+ throw new HttpResponseException(HttpStatusCode.BadGateway);
return View();
}
- public ActionResult Contact()
- {
- ViewBag.Message = "Your contact page.";
-
- return View();
- }
}
+
+
}
\ No newline at end of file
diff --git a/ExceptionTest/Controllers/ValuesController1.cs b/ExceptionTest/Controllers/ValuesController1.cs
new file mode 100644
index 0000000..8495c03
--- /dev/null
+++ b/ExceptionTest/Controllers/ValuesController1.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+using System.Net.Http;
+using System.Web.Http;
+
+namespace ExceptionTest.Controllers
+{
+ public class ValuesController : ApiController
+ {
+ // GET api/
+ public IEnumerable Get()
+ {
+ throw new HttpResponseException(HttpStatusCode.BadGateway);
+ //throw new WebException("awesome", WebExceptionStatus.RequestCanceled);
+ }
+ }
+}
\ No newline at end of file
diff --git a/ExceptionTest/ExceptionTest.csproj b/ExceptionTest/ExceptionTest.csproj
index 86a1fbf..22c641b 100644
--- a/ExceptionTest/ExceptionTest.csproj
+++ b/ExceptionTest/ExceptionTest.csproj
@@ -44,6 +44,34 @@
4
+
+ ..\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.6\lib\net45\Microsoft.AI.Agent.Intercept.dll
+ True
+
+
+ ..\packages\Microsoft.ApplicationInsights.DependencyCollector.2.2.0\lib\net45\Microsoft.AI.DependencyCollector.dll
+ True
+
+
+ ..\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.2.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll
+ True
+
+
+ ..\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.2.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll
+ True
+
+
+ ..\packages\Microsoft.ApplicationInsights.Web.2.2.0\lib\net45\Microsoft.AI.Web.dll
+ True
+
+
+ ..\packages\Microsoft.ApplicationInsights.WindowsServer.2.2.0\lib\net45\Microsoft.AI.WindowsServer.dll
+ True
+
+
+ ..\packages\Microsoft.ApplicationInsights.2.2.0\lib\net45\Microsoft.ApplicationInsights.dll
+ True
+
..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
True
@@ -131,6 +159,7 @@
+
Global.asax
@@ -145,6 +174,9 @@
+
+ PreserveNewest
+
diff --git a/ExceptionTest/Web.config b/ExceptionTest/Web.config
index f31fdff..30dba40 100644
--- a/ExceptionTest/Web.config
+++ b/ExceptionTest/Web.config
@@ -13,6 +13,9 @@
+
+
+
@@ -21,6 +24,11 @@
+
+
+
+
+
diff --git a/ExceptionTest/packages.config b/ExceptionTest/packages.config
index 44a307a..76ebcd4 100644
--- a/ExceptionTest/packages.config
+++ b/ExceptionTest/packages.config
@@ -4,6 +4,13 @@
+
+
+
+
+
+
+