After Microsoft Windows updates ran on our production environment over the weekend between 20 - 22 July 2018. We came back to the following stack trace when trying to access our web application on Monday morning. Note: No other changes were done on the application and database aside from the Windows updates.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[TypeInitializationException: The type initializer for 'Resolve.ParseUtil' threw an exception.] Resolve.ParseUtil.ParseEnumOrValue(String value, Nullable`1 defaultValue) in C:\Projects\Web Appications\NIMS\trunk\Base\Core\main\4.5\Resolve.Core(shared)(parsing)\ParseUtil.cs:172 NIMS.Common.Logging.SqlDatabaseLogListener..ctor() +179 NIMS.Common.Logging.NimsLogUtil..cctor() +72
[TypeInitializationException: The type initializer for 'NIMS.Common.Logging.NimsLogUtil' threw an exception.] NIMS.Common.Logging.NimsLogUtil.LogInformation(NimsLogBase nimsLog, String message, String callerMemberName, String callerFilePath, Int32 callerLineNumber, IEnumerable`1 categories) +0 NIMS.Common.Logging.NimsLogBase.Startup(String[] categories) +177 NIMS.Website.MvcApplication.Application_Start() +150
[HttpException (0x80004005): The type initializer for 'NIMS.Common.Logging.NimsLogUtil' threw an exception.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +535 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +166 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +169 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +372 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +329
[HttpException (0x80004005): The type initializer for 'NIMS.Common.Logging.NimsLogUtil' threw an exception.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +118 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +708
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2623.0
User contributions licensed under CC BY-SA 3.0