From a16dcb7a8e69f98e3e0e3e239663ef4cf198003a Mon Sep 17 00:00:00 2001 From: Thomas Hounsell Date: Wed, 26 Apr 2017 12:26:18 +0100 Subject: [PATCH] Remove Azure App Insights; Fix-up error handling --- BuildFeed/App_Start/FilterConfig.cs | 3 +- BuildFeed/BuildFeed.csproj | 30 +------------- BuildFeed/Code/AiHandleErrorAttribute.cs | 25 ------------ BuildFeed/Views/shared/_default.cshtml | 10 ----- BuildFeed/Views/shared/error.cshtml | 51 ++---------------------- BuildFeed/Web.Release.config | 8 +--- BuildFeed/packages.config | 9 +---- 7 files changed, 8 insertions(+), 128 deletions(-) delete mode 100644 BuildFeed/Code/AiHandleErrorAttribute.cs diff --git a/BuildFeed/App_Start/FilterConfig.cs b/BuildFeed/App_Start/FilterConfig.cs index 89c58c4..0a738c6 100644 --- a/BuildFeed/App_Start/FilterConfig.cs +++ b/BuildFeed/App_Start/FilterConfig.cs @@ -1,5 +1,4 @@ using System.Web.Mvc; -using BuildFeed.Code; namespace BuildFeed { @@ -7,7 +6,7 @@ public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { - filters.Add(new AiHandleErrorAttribute()); + filters.Add(new HandleErrorAttribute()); } } } \ No newline at end of file diff --git a/BuildFeed/BuildFeed.csproj b/BuildFeed/BuildFeed.csproj index 44bfd77..e82a72c 100644 --- a/BuildFeed/BuildFeed.csproj +++ b/BuildFeed/BuildFeed.csproj @@ -1,6 +1,6 @@  - + @@ -70,27 +70,6 @@ ..\packages\Humanizer.Core.2.1.0\lib\netstandard1.0\Humanizer.dll True - - ..\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.7\lib\net45\Microsoft.AI.Agent.Intercept.dll - - - ..\packages\Microsoft.ApplicationInsights.DependencyCollector.2.3.0\lib\net45\Microsoft.AI.DependencyCollector.dll - - - ..\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.3.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll - - - ..\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.3.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll - - - ..\packages\Microsoft.ApplicationInsights.Web.2.3.0\lib\net45\Microsoft.AI.Web.dll - - - ..\packages\Microsoft.ApplicationInsights.WindowsServer.2.3.0\lib\net45\Microsoft.AI.WindowsServer.dll - - - ..\packages\Microsoft.ApplicationInsights.2.3.0\lib\net46\Microsoft.ApplicationInsights.dll - ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll @@ -194,7 +173,6 @@ - @@ -249,10 +227,6 @@ - - Designer - PreserveNewest - @@ -502,7 +476,7 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - +