Feature #40: Exceptionless error reporting
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
using System;
|
using Disco.BI.Extensions;
|
||||||
|
using Exceptionless;
|
||||||
|
using iTextSharp.text.pdf;
|
||||||
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Disco.BI.Extensions;
|
|
||||||
using iTextSharp.text.pdf;
|
|
||||||
|
|
||||||
namespace Disco.BI.AttachmentBI
|
namespace Disco.BI.AttachmentBI
|
||||||
{
|
{
|
||||||
@@ -33,10 +34,11 @@ namespace Disco.BI.AttachmentBI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
|
|
||||||
// Ignore Thumbnail Generation exceptions for images
|
// Ignore Thumbnail Generation exceptions for images
|
||||||
//throw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -63,6 +65,10 @@ namespace Disco.BI.AttachmentBI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
if (pdfReader != null)
|
if (pdfReader != null)
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ using Disco.Services.Interop.ActiveDirectory;
|
|||||||
using Disco.Services.Users;
|
using Disco.Services.Users;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.DirectoryServices.ActiveDirectory;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using Tamir.SharpSsh;
|
using Tamir.SharpSsh;
|
||||||
|
using Exceptionless;
|
||||||
|
|
||||||
namespace Disco.BI.DeviceBI
|
namespace Disco.BI.DeviceBI
|
||||||
{
|
{
|
||||||
@@ -118,6 +118,7 @@ namespace Disco.BI.DeviceBI
|
|||||||
}
|
}
|
||||||
catch (System.Exception ex)
|
catch (System.Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
EnrolmentLog.LogSessionError(sessionId, ex);
|
EnrolmentLog.LogSessionError(sessionId, ex);
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
@@ -306,6 +307,7 @@ namespace Disco.BI.DeviceBI
|
|||||||
}
|
}
|
||||||
catch (System.Exception ex2)
|
catch (System.Exception ex2)
|
||||||
{
|
{
|
||||||
|
ex2.ToExceptionless().Submit();
|
||||||
EnrolmentLog.LogSessionError(sessionId, ex2);
|
EnrolmentLog.LogSessionError(sessionId, ex2);
|
||||||
throw ex2;
|
throw ex2;
|
||||||
}
|
}
|
||||||
@@ -655,6 +657,7 @@ namespace Disco.BI.DeviceBI
|
|||||||
}
|
}
|
||||||
catch (System.Exception ex2)
|
catch (System.Exception ex2)
|
||||||
{
|
{
|
||||||
|
ex2.ToExceptionless().Submit();
|
||||||
EnrolmentLog.LogSessionError(sessionId, ex2);
|
EnrolmentLog.LogSessionError(sessionId, ex2);
|
||||||
throw ex2;
|
throw ex2;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
using Disco.Data.Repository;
|
||||||
|
using Exceptionless;
|
||||||
|
using Quartz;
|
||||||
|
using Quartz.Impl.Triggers;
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Web.Caching;
|
using System.Web.Caching;
|
||||||
using Disco.Data.Repository;
|
|
||||||
using Quartz;
|
|
||||||
using Quartz.Impl.Triggers;
|
|
||||||
|
|
||||||
namespace Disco.BI.DocumentTemplateBI.Importer
|
namespace Disco.BI.DocumentTemplateBI.Importer
|
||||||
{
|
{
|
||||||
@@ -69,8 +70,9 @@ namespace Disco.BI.DocumentTemplateBI.Importer
|
|||||||
}
|
}
|
||||||
File.Move(filename, filenameError);
|
File.Move(filename, filenameError);
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
// Ignore Errors
|
// Ignore Errors
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -108,6 +110,7 @@ namespace Disco.BI.DocumentTemplateBI.Importer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
DocumentsLog.LogImportWarning(sessionId, string.Format("{0}; Will try again in 10 Seconds", ex.Message));
|
DocumentsLog.LogImportWarning(sessionId, string.Format("{0}; Will try again in 10 Seconds", ex.Message));
|
||||||
// Reschedule Job for 10 seconds
|
// Reschedule Job for 10 seconds
|
||||||
SimpleTriggerImpl trig = new SimpleTriggerImpl(Guid.NewGuid().ToString(), new DateTimeOffset(DateTime.Now.AddSeconds(10)));
|
SimpleTriggerImpl trig = new SimpleTriggerImpl(Guid.NewGuid().ToString(), new DateTimeOffset(DateTime.Now.AddSeconds(10)));
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
using System;
|
using Disco.BI.DocumentTemplateBI;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using Disco.Models.Repository;
|
|
||||||
using Disco.Data.Repository;
|
using Disco.Data.Repository;
|
||||||
using System.IO;
|
using Disco.Models.Repository;
|
||||||
using Disco.BI.DocumentTemplateBI;
|
|
||||||
using Disco.Services.Users;
|
|
||||||
using Disco.Services.Logging;
|
using Disco.Services.Logging;
|
||||||
|
using Disco.Services.Users;
|
||||||
|
using Exceptionless;
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
namespace Disco.BI.Extensions
|
namespace Disco.BI.Extensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ using System.IO;
|
|||||||
using Disco.Services.Users;
|
using Disco.Services.Users;
|
||||||
using Disco.Services.Authorization;
|
using Disco.Services.Authorization;
|
||||||
using Disco.Services.Interop.ActiveDirectory;
|
using Disco.Services.Interop.ActiveDirectory;
|
||||||
|
using Exceptionless;
|
||||||
|
|
||||||
namespace Disco.BI.Extensions
|
namespace Disco.BI.Extensions
|
||||||
{
|
{
|
||||||
@@ -36,6 +37,7 @@ namespace Disco.BI.Extensions
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().AddObject(deviceProfile.ComputerNameTemplate, "ComputerNameTemplate").Submit();
|
||||||
throw new InvalidOperationException(string.Format("An error occurred rendering the computer name: [{0}] {1}", ex.GetType().Name, ex.Message), ex.InnerException);
|
throw new InvalidOperationException(string.Format("An error occurred rendering the computer name: [{0}] {1}", ex.GetType().Name, ex.Message), ex.InnerException);
|
||||||
}
|
}
|
||||||
if (rendered == null || rendered.Length > 24)
|
if (rendered == null || rendered.Length > 24)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using Exceptionless;
|
||||||
using Disco.Data.Repository;
|
using Disco.Data.Repository;
|
||||||
using Disco.Models.BI.Config;
|
using Disco.Models.BI.Config;
|
||||||
using Disco.Models.Repository;
|
using Disco.Models.Repository;
|
||||||
@@ -219,7 +220,7 @@ namespace Disco.BI.Extensions
|
|||||||
{
|
{
|
||||||
DiscoServicesJobs.UpdateRecipientReference(Database, j, publishJobResult.Id, publishJobResult.Secret, j.JobMetaWarranty.ExternalReference);
|
DiscoServicesJobs.UpdateRecipientReference(Database, j, publishJobResult.Id, publishJobResult.Secret, j.JobMetaWarranty.ExternalReference);
|
||||||
}
|
}
|
||||||
catch (Exception) { } // Ignore Errors as this is not completely necessary
|
catch (Exception ex) { ex.ToExceptionless().Submit(); } // Ignore Errors as this is not completely necessary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -441,7 +442,7 @@ namespace Disco.BI.Extensions
|
|||||||
{
|
{
|
||||||
DiscoServicesJobs.UpdateRecipientReference(Database, j, publishJobResult.Id, publishJobResult.Secret, j.JobMetaNonWarranty.RepairerReference);
|
DiscoServicesJobs.UpdateRecipientReference(Database, j, publishJobResult.Id, publishJobResult.Secret, j.JobMetaNonWarranty.RepairerReference);
|
||||||
}
|
}
|
||||||
catch (Exception) { } // Ignore Errors as this is not completely necessary
|
catch (Exception ex) { ex.ToExceptionless().Submit(); } // Ignore Errors as this is not completely necessary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,14 @@
|
|||||||
<Reference Include="EntityFramework">
|
<Reference Include="EntityFramework">
|
||||||
<HintPath>..\packages\EntityFramework.5.0.0\lib\net45\EntityFramework.dll</HintPath>
|
<HintPath>..\packages\EntityFramework.5.0.0\lib\net45\EntityFramework.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Exceptionless, Version=1.5.2092.0, Culture=neutral, PublicKeyToken=fc181f0a46f65747, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\packages\Exceptionless.1.5.2092\lib\net45\Exceptionless.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Exceptionless.Models, Version=1.5.2092.0, Culture=neutral, PublicKeyToken=fc181f0a46f65747, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\packages\Exceptionless.1.5.2092\lib\net45\Exceptionless.Models.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="itextsharp">
|
<Reference Include="itextsharp">
|
||||||
<HintPath>..\Resources\Libraries\iTextSharp\itextsharp.dll</HintPath>
|
<HintPath>..\Resources\Libraries\iTextSharp\itextsharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -214,7 +222,7 @@
|
|||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<ProjectExtensions>
|
<ProjectExtensions>
|
||||||
<VisualStudio>
|
<VisualStudio>
|
||||||
<UserProperties BuildVersion_StartDate="2014/6/1" BuildVersion_BuildAction="Both" BuildVersion_DetectChanges="False" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" />
|
<UserProperties BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_DetectChanges="False" BuildVersion_BuildAction="Both" BuildVersion_StartDate="2014/6/1" />
|
||||||
</VisualStudio>
|
</VisualStudio>
|
||||||
</ProjectExtensions>
|
</ProjectExtensions>
|
||||||
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
|
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="EntityFramework" version="5.0.0" targetFramework="net45" />
|
<package id="EntityFramework" version="5.0.0" targetFramework="net45" />
|
||||||
|
<package id="Exceptionless" version="1.5.2092" targetFramework="net45" />
|
||||||
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />
|
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />
|
||||||
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />
|
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />
|
||||||
<package id="Microsoft.Net.Http" version="2.2.22" targetFramework="net45" />
|
<package id="Microsoft.Net.Http" version="2.2.22" targetFramework="net45" />
|
||||||
|
|||||||
@@ -39,6 +39,12 @@
|
|||||||
<Reference Include="EntityFramework">
|
<Reference Include="EntityFramework">
|
||||||
<HintPath>..\packages\EntityFramework.5.0.0\lib\net45\EntityFramework.dll</HintPath>
|
<HintPath>..\packages\EntityFramework.5.0.0\lib\net45\EntityFramework.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Exceptionless">
|
||||||
|
<HintPath>..\packages\Exceptionless.1.5.2092\lib\net45\Exceptionless.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Exceptionless.Models">
|
||||||
|
<HintPath>..\packages\Exceptionless.1.5.2092\lib\net45\Exceptionless.Models.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="LumenWorks.Framework.IO">
|
<Reference Include="LumenWorks.Framework.IO">
|
||||||
<HintPath>..\packages\LumenWorks.Framework.IO.3.8.0\lib\net20\LumenWorks.Framework.IO.dll</HintPath>
|
<HintPath>..\packages\LumenWorks.Framework.IO.3.8.0\lib\net20\LumenWorks.Framework.IO.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -380,7 +386,7 @@
|
|||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<ProjectExtensions>
|
<ProjectExtensions>
|
||||||
<VisualStudio>
|
<VisualStudio>
|
||||||
<UserProperties BuildVersion_UseGlobalSettings="False" BuildVersion_DetectChanges="False" BuildVersion_BuildAction="Both" BuildVersion_StartDate="2014/6/1" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" />
|
<UserProperties BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_StartDate="2014/6/1" BuildVersion_BuildAction="Both" BuildVersion_DetectChanges="False" BuildVersion_UseGlobalSettings="False" />
|
||||||
</VisualStudio>
|
</VisualStudio>
|
||||||
</ProjectExtensions>
|
</ProjectExtensions>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using Disco.Services.Logging.Models;
|
||||||
|
using Exceptionless;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Disco.Services.Logging.Models;
|
|
||||||
|
|
||||||
namespace Disco.Services.Logging
|
namespace Disco.Services.Logging
|
||||||
{
|
{
|
||||||
@@ -44,6 +44,8 @@ namespace Disco.Services.Logging
|
|||||||
}
|
}
|
||||||
public static void LogException(string Component, Exception ex)
|
public static void LogException(string Component, Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
|
|
||||||
// Handle Special-Case Errors
|
// Handle Special-Case Errors
|
||||||
if (ex is System.Data.Entity.Validation.DbEntityValidationException)
|
if (ex is System.Data.Entity.Validation.DbEntityValidationException)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ using System.Text;
|
|||||||
using Disco.Services.Logging;
|
using Disco.Services.Logging;
|
||||||
using Disco.Services.Logging.Models;
|
using Disco.Services.Logging.Models;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using Exceptionless;
|
||||||
|
|
||||||
namespace Disco.Services.Plugins
|
namespace Disco.Services.Plugins
|
||||||
{
|
{
|
||||||
@@ -123,6 +124,8 @@ namespace Disco.Services.Plugins
|
|||||||
|
|
||||||
public static void LogInitializeException(string PluginFilename, Exception ex)
|
public static void LogInitializeException(string PluginFilename, Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().AddObject(PluginFilename, "PluginFilename").Submit();
|
||||||
|
|
||||||
if (ex.InnerException != null)
|
if (ex.InnerException != null)
|
||||||
{
|
{
|
||||||
Log(EventTypeIds.InitializeExceptionWithInner, PluginFilename, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
Log(EventTypeIds.InitializeExceptionWithInner, PluginFilename, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
||||||
@@ -135,6 +138,8 @@ namespace Disco.Services.Plugins
|
|||||||
|
|
||||||
public static void LogPluginException(string Component, Exception ex)
|
public static void LogPluginException(string Component, Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().AddObject(Component, "Component").Submit();
|
||||||
|
|
||||||
if (ex.InnerException != null)
|
if (ex.InnerException != null)
|
||||||
{
|
{
|
||||||
Log(EventTypeIds.PluginExceptionWithInner, Component, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
Log(EventTypeIds.PluginExceptionWithInner, Component, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
using System;
|
using Disco.Data.Repository;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using Quartz;
|
using Quartz;
|
||||||
using Disco.Data.Repository;
|
using System;
|
||||||
|
|
||||||
namespace Disco.Services.Tasks
|
namespace Disco.Services.Tasks
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Disco.Services.Logging;
|
using Disco.Services.Logging;
|
||||||
using Disco.Services.Logging.Models;
|
using Disco.Services.Logging.Models;
|
||||||
|
using Exceptionless;
|
||||||
|
|
||||||
namespace Disco.Services.Tasks
|
namespace Disco.Services.Tasks
|
||||||
{
|
{
|
||||||
@@ -54,6 +55,8 @@ namespace Disco.Services.Tasks
|
|||||||
|
|
||||||
public static void LogInitializeException(Exception ex)
|
public static void LogInitializeException(Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
|
|
||||||
if (ex.InnerException != null)
|
if (ex.InnerException != null)
|
||||||
{
|
{
|
||||||
Log(EventTypeIds.InitializeExceptionWithInner, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
Log(EventTypeIds.InitializeExceptionWithInner, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
||||||
@@ -65,6 +68,8 @@ namespace Disco.Services.Tasks
|
|||||||
}
|
}
|
||||||
public static void LogInitializeException(Exception ex, Type ScheduledTaskType)
|
public static void LogInitializeException(Exception ex, Type ScheduledTaskType)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
|
|
||||||
if (ex.InnerException != null)
|
if (ex.InnerException != null)
|
||||||
{
|
{
|
||||||
Log(EventTypeIds.InitializeScheduledTasksExceptionWithInner, ScheduledTaskType.Name, ScheduledTaskType.Assembly.Location, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
Log(EventTypeIds.InitializeScheduledTasksExceptionWithInner, ScheduledTaskType.Name, ScheduledTaskType.Assembly.Location, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
||||||
@@ -77,6 +82,12 @@ namespace Disco.Services.Tasks
|
|||||||
|
|
||||||
public static void LogScheduledTaskException(string ScheduledTaskName, string SessionId, Type ScheduledTaskType, Exception ex)
|
public static void LogScheduledTaskException(string ScheduledTaskName, string SessionId, Type ScheduledTaskType, Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless()
|
||||||
|
.AddTags("Scheduled Task")
|
||||||
|
.AddObject(ScheduledTaskName, "ScheduledTaskName")
|
||||||
|
.AddObject(ScheduledTaskType.Name, "ScheduledTaskTypeName")
|
||||||
|
.Submit();
|
||||||
|
|
||||||
if (ex.InnerException != null)
|
if (ex.InnerException != null)
|
||||||
{
|
{
|
||||||
Log(EventTypeIds.ScheduledTasksExceptionWithInner, ScheduledTaskName, SessionId, ScheduledTaskType.Assembly.Location, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
Log(EventTypeIds.ScheduledTasksExceptionWithInner, ScheduledTaskName, SessionId, ScheduledTaskType.Assembly.Location, ex.GetType().Name, ex.Message, ex.StackTrace, ex.InnerException.GetType().Name, ex.InnerException.Message, ex.InnerException.StackTrace);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="EntityFramework" version="5.0.0" targetFramework="net45" />
|
<package id="EntityFramework" version="5.0.0" targetFramework="net45" />
|
||||||
|
<package id="Exceptionless" version="1.5.2092" targetFramework="net45" />
|
||||||
<package id="LumenWorks.Framework.IO" version="3.8.0" targetFramework="net45" />
|
<package id="LumenWorks.Framework.IO" version="3.8.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.AspNet.Mvc" version="4.0.30506.0" targetFramework="net45" />
|
<package id="Microsoft.AspNet.Mvc" version="4.0.30506.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.AspNet.Razor" version="2.0.30506.0" targetFramework="net45" />
|
<package id="Microsoft.AspNet.Razor" version="2.0.30506.0" targetFramework="net45" />
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
using Disco.Data.Repository;
|
using Disco.Data.Repository;
|
||||||
using Disco.Services.Interop.DiscoServices;
|
using Disco.Services.Interop.DiscoServices;
|
||||||
|
using Exceptionless;
|
||||||
|
using Exceptionless.Configuration;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
|
[assembly: Exceptionless("https://errors.discoict.com.au", "c81e644582374f68aaf1fb546e3db0cd")]
|
||||||
|
|
||||||
namespace Disco.Web
|
namespace Disco.Web
|
||||||
{
|
{
|
||||||
public static class AppConfig
|
public static class AppConfig
|
||||||
@@ -27,16 +31,19 @@ namespace Disco.Web
|
|||||||
|
|
||||||
public static void InitalizeCoreEnvironment(DiscoDataContext Database)
|
public static void InitalizeCoreEnvironment(DiscoDataContext Database)
|
||||||
{
|
{
|
||||||
|
ExceptionlessClient.Current.SendingError += Exceptionless_SendingError;
|
||||||
|
|
||||||
// Initialize Logging
|
// Initialize Logging
|
||||||
Disco.Services.Logging.LogContext.Initalize(Database, DiscoApplication.SchedulerFactory);
|
Disco.Services.Logging.LogContext.Initalize(Database, DiscoApplication.SchedulerFactory);
|
||||||
|
|
||||||
// Initialize Active Directory Interop
|
|
||||||
Disco.Services.Interop.ActiveDirectory.ActiveDirectory.Initialize(Database);
|
|
||||||
|
|
||||||
// Load Organisation Name
|
// Load Organisation Name
|
||||||
|
DiscoApplication.DeploymentId = Database.DiscoConfiguration.DeploymentId;
|
||||||
DiscoApplication.OrganisationName = Database.DiscoConfiguration.OrganisationName;
|
DiscoApplication.OrganisationName = Database.DiscoConfiguration.OrganisationName;
|
||||||
DiscoApplication.MultiSiteMode = Database.DiscoConfiguration.MultiSiteMode;
|
DiscoApplication.MultiSiteMode = Database.DiscoConfiguration.MultiSiteMode;
|
||||||
|
|
||||||
|
// Initialize Active Directory Interop
|
||||||
|
Disco.Services.Interop.ActiveDirectory.ActiveDirectory.Initialize(Database);
|
||||||
|
|
||||||
// Setup Global Proxy
|
// Setup Global Proxy
|
||||||
DiscoApplication.SetGlobalProxy(Database.DiscoConfiguration.ProxyAddress,
|
DiscoApplication.SetGlobalProxy(Database.DiscoConfiguration.ProxyAddress,
|
||||||
Database.DiscoConfiguration.ProxyPort,
|
Database.DiscoConfiguration.ProxyPort,
|
||||||
@@ -47,6 +54,14 @@ namespace Disco.Web
|
|||||||
Disco.Services.Users.UserService.Initialize(Database);
|
Disco.Services.Users.UserService.Initialize(Database);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void Exceptionless_SendingError(object sender, ErrorModelEventArgs e)
|
||||||
|
{
|
||||||
|
e.Error.UserName = DiscoApplication.DeploymentId;
|
||||||
|
e.Error.UserDescription = DiscoApplication.OrganisationName;
|
||||||
|
|
||||||
|
e.Error.Tags.Add(string.Concat("v", DiscoApplication.Version));
|
||||||
|
}
|
||||||
|
|
||||||
public static void InitalizeNormalEnvironment(DiscoDataContext Database)
|
public static void InitalizeNormalEnvironment(DiscoDataContext Database)
|
||||||
{
|
{
|
||||||
InitalizeCoreEnvironment(Database);
|
InitalizeCoreEnvironment(Database);
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ using Disco.Services.Plugins.Features.UIExtension;
|
|||||||
using Disco.Services.Plugins.Features.WarrantyProvider;
|
using Disco.Services.Plugins.Features.WarrantyProvider;
|
||||||
using Disco.Services.Users;
|
using Disco.Services.Users;
|
||||||
using Disco.Services.Web;
|
using Disco.Services.Web;
|
||||||
|
using Exceptionless;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -544,6 +545,7 @@ namespace Disco.Web.Controllers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
m.Error = ex;
|
m.Error = ex;
|
||||||
return View(Views.LogWarrantyError, m);
|
return View(Views.LogWarrantyError, m);
|
||||||
throw;
|
throw;
|
||||||
@@ -558,6 +560,7 @@ namespace Disco.Web.Controllers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
m.Error = ex;
|
m.Error = ex;
|
||||||
return View(Views.LogWarrantyError, m);
|
return View(Views.LogWarrantyError, m);
|
||||||
}
|
}
|
||||||
@@ -580,6 +583,7 @@ namespace Disco.Web.Controllers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
m.Error = ex;
|
m.Error = ex;
|
||||||
return View(Views.LogWarrantyError, m);
|
return View(Views.LogWarrantyError, m);
|
||||||
throw;
|
throw;
|
||||||
@@ -624,6 +628,7 @@ namespace Disco.Web.Controllers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
model.JobDetailsSupported = false;
|
model.JobDetailsSupported = false;
|
||||||
model.JobDetailsException = ex;
|
model.JobDetailsException = ex;
|
||||||
return View(model);
|
return View(model);
|
||||||
@@ -726,6 +731,7 @@ namespace Disco.Web.Controllers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
m.Error = ex;
|
m.Error = ex;
|
||||||
return View(Views.LogRepairError, m);
|
return View(Views.LogRepairError, m);
|
||||||
throw;
|
throw;
|
||||||
@@ -740,6 +746,7 @@ namespace Disco.Web.Controllers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
m.Error = ex;
|
m.Error = ex;
|
||||||
return View(Views.LogRepairError, m);
|
return View(Views.LogRepairError, m);
|
||||||
}
|
}
|
||||||
@@ -762,6 +769,7 @@ namespace Disco.Web.Controllers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
m.Error = ex;
|
m.Error = ex;
|
||||||
return View(Views.LogRepairError, m);
|
return View(Views.LogRepairError, m);
|
||||||
throw;
|
throw;
|
||||||
@@ -806,6 +814,7 @@ namespace Disco.Web.Controllers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
ex.ToExceptionless().Submit();
|
||||||
model.JobDetailsSupported = false;
|
model.JobDetailsSupported = false;
|
||||||
model.JobDetailsException = ex;
|
model.JobDetailsException = ex;
|
||||||
return View(model);
|
return View(model);
|
||||||
|
|||||||
@@ -43,6 +43,15 @@
|
|||||||
<UseVSHostingProcess>true</UseVSHostingProcess>
|
<UseVSHostingProcess>true</UseVSHostingProcess>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="Exceptionless">
|
||||||
|
<HintPath>..\packages\Exceptionless.1.5.2092\lib\net45\Exceptionless.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Exceptionless.Models">
|
||||||
|
<HintPath>..\packages\Exceptionless.1.5.2092\lib\net45\Exceptionless.Models.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Exceptionless.Mvc">
|
||||||
|
<HintPath>..\packages\Exceptionless.Mvc.1.5.2092\lib\net45\Exceptionless.Mvc.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="MarkdownSharp">
|
<Reference Include="MarkdownSharp">
|
||||||
<HintPath>..\packages\MarkdownSharp.1.13.0.0\lib\35\MarkdownSharp.dll</HintPath>
|
<HintPath>..\packages\MarkdownSharp.1.13.0.0\lib\35\MarkdownSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -2387,7 +2396,7 @@
|
|||||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||||
</WebProjectProperties>
|
</WebProjectProperties>
|
||||||
</FlavorProperties>
|
</FlavorProperties>
|
||||||
<UserProperties BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_DetectChanges="False" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildAction="Both" BuildVersion_StartDate="2014/6/1" />
|
<UserProperties BuildVersion_StartDate="2014/6/1" BuildVersion_BuildAction="Both" BuildVersion_UseGlobalSettings="False" BuildVersion_DetectChanges="False" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" />
|
||||||
</VisualStudio>
|
</VisualStudio>
|
||||||
</ProjectExtensions>
|
</ProjectExtensions>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -145,6 +145,9 @@ namespace Disco.Web
|
|||||||
_OrganisationName = value;
|
_OrganisationName = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string DeploymentId { get; set; }
|
||||||
|
|
||||||
public static bool MultiSiteMode { get; set; }
|
public static bool MultiSiteMode { get; set; }
|
||||||
|
|
||||||
#region Version
|
#region Version
|
||||||
|
|||||||
@@ -37,7 +37,9 @@
|
|||||||
</pages>
|
</pages>
|
||||||
</system.web>
|
</system.web>
|
||||||
<system.webServer>
|
<system.webServer>
|
||||||
<modules runAllManagedModulesForAllRequests="true" />
|
<modules runAllManagedModulesForAllRequests="true">
|
||||||
|
<add name="ExceptionlessModule" type="Exceptionless.Mvc.ExceptionlessModule, Exceptionless.Mvc" />
|
||||||
|
</modules>
|
||||||
<handlers>
|
<handlers>
|
||||||
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
|
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
|
||||||
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
|
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
<package id="DotNet.Highcharts" version="4.0" targetFramework="net45" />
|
<package id="DotNet.Highcharts" version="4.0" targetFramework="net45" />
|
||||||
<package id="EntityFramework" version="5.0.0" targetFramework="net45" />
|
<package id="EntityFramework" version="5.0.0" targetFramework="net45" />
|
||||||
<package id="EntityFramework.SqlServerCompact" version="4.3.6" targetFramework="net45" />
|
<package id="EntityFramework.SqlServerCompact" version="4.3.6" targetFramework="net45" />
|
||||||
|
<package id="Exceptionless" version="1.5.2092" targetFramework="net45" />
|
||||||
|
<package id="Exceptionless.Mvc" version="1.5.2092" targetFramework="net45" />
|
||||||
<package id="FontAwesome" version="4.1.0" targetFramework="net45" />
|
<package id="FontAwesome" version="4.1.0" targetFramework="net45" />
|
||||||
<package id="jQuery" version="2.1.1" targetFramework="net45" />
|
<package id="jQuery" version="2.1.1" targetFramework="net45" />
|
||||||
<package id="jQuery.UI.Combined" version="1.10.4" targetFramework="net45" />
|
<package id="jQuery.UI.Combined" version="1.10.4" targetFramework="net45" />
|
||||||
|
|||||||
Reference in New Issue
Block a user