Hi.
I have a legacy website built with ASP.NET WebForms, running on a Windows 2012 RC Server and IIS 8.5.
The app is running on .NET 4.5 framework. Recently, the website has suddenly stopped working during few minutes, and i've had to recycle the application pool on IIS to get back to a normal situation. When analyzing the windows events, i found a lot of errors:
Nom de l’application défaillante csc.exe, version : 4.7.3062.0, horodatage : 0x5ab95f85
Nom du module défaillant : KERNELBASE.dll, version : 6.3.9600.19304, horodatage : 0x5c7f684f
Code d’exception : 0xc0000142
Décalage d’erreur : 0x00000000000ecf30
ID du processus défaillant : 0x5864
Heure de début de l’application défaillante : 0x01d72255e27911be
Chemin d’accès de l’application défaillante : C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe
Chemin d’accès du module défaillant: KERNELBASE.dll
ID de rapport : 203392fa-8e49-11eb-80c5-0cc47a91426f
Nom complet du package défaillant :
ID de l’application relative au package défaillant :
In the application logs i found this type of exception :
[26/03/2021 16:34:27] [NC1186] [c:\windows\system32\inetsrv\w3wp.exe] [Error] [General] [HandlingInstanceID: 4c54eaf3-2acd-43e3-8a54-7e23e2450838 An exception of type 'System.Web.HttpParseException' occurred and was caught. ----------------------------------------------------------------------------- 03/26/2021 16:34:27 Type : System.Web.HttpParseException, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Message : Un composant externe a levé une exception. Source : System.Web Help link : 810c912 FileName : Access failed VirtualPath : Line : 0 ParserErrors : System.Web.ParserErrorCollection WebEventCode : 0 ErrorCode : -2147467259 Data : System.Collections.ListDictionaryInternal TargetSite : Void ProcessException(System.Exception) HResult : -2147467259 Stack Trace : à System.Web.UI.TemplateParser.ProcessException(Exception ex) à System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) à System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) à System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) à System.Web.UI.TemplateParser.Parse() à System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() à System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) à System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() à System.Web.Compilation.BuildProvidersCompiler.PerformBuild() à System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) à System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) à System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) à System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) à System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) à System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) à System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() à System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) à System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Additional Info: MachineName : XXXXXX TimeStamp : 26/03/2021 15:34:27 FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 AppDomainName : ThreadIdentity : WindowsIdentity : IIS APPPOOL\XXXXXXX Inner Exception --------------- Type : System.Web.HttpCompileException, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Message : Un composant externe a levé une exception. Source : System.Web Help link : Results : System.CodeDom.Compiler.CompilerResults SourceCode : WebEventCode : 0 ErrorCode : -2147467259 Data : System.Collections.ListDictionaryInternal TargetSite : System.CodeDom.Compiler.CompilerResults Compile() HResult : -2147467259 Stack Trace : à System.Web.Compilation.AssemblyBuilder.Compile() à System.Web.Compilation.BuildProvidersCompiler.PerformBuild() à System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) à System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) à System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) à System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) à System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile) à System.Web.UI.PageParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value, IDictionary parseData) à System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective) ]
I really don't know why or how this errors occurred, and why i'll need to recycle application pool to stop them.
Cases i had check already:
- The code is ok
- The build was generated as usual, and all is fine without any changes since the incident.
- CPU and memory was alright at crash moment.
- No unclosed elements, format issue, or weird chars into aspx views
- web.config was unchanged since lot of time and seems ok (no bindingRedirect repeated etc)
The server was not restarted from few months, is it a possible cause ? Can anybody helps me with this probleme please ? I want to avoid another crash like this one in the future. By advance thanks for help.