我正在Azure应用服务上运行ASP.Net网站,每次发生应用程序池回收时,该服务都会挂起。
我已经检查了可用的存储空间,我正在使用50 Gb中的大约5 Gb,这应该不是问题。
请参阅下面的堆栈跟踪。有人有主意吗?我已经向Microsoft支持部门询问了此问题,他们无法回答这一问题:-(
最坏的情况下,我可以阻止System.Diagnostics.Eventing.EventProvider.EtwRegister()
通话吗?
非常感谢您提供帮助!
Exception message: The pre-application start initialization method Start on type EnvSettings.SettingsProcessor threw an exception with the following error message: The type initializer for 'Microsoft.Web.Hosting.Tracing.AntaresEventProvider' threw an exception..
at System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures)
at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods)
at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
at System.Web.Compilation.BuildManager.ExecutePreAppStart()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
The type initializer for 'Microsoft.Web.Hosting.Tracing.AntaresEventProvider' threw an exception.
at Microsoft.Web.Hosting.Tracing.AntaresEventProvider.EventWriteDWASGenericLog(String LogStatement, String SiteName)
at EnvSettings.SettingsLogger.Trace(String format, Object[] args)
at EnvSettings.SettingsProcessor.Start()
Not enough storage is available to complete this operation
at System.Diagnostics.Eventing.EventProvider.EtwRegister()
at System.Diagnostics.Eventing.EventProvider..ctor(Guid providerGuid)
at Microsoft.Web.Hosting.Tracing.EventProviderVersionTwo..ctor(Guid id)
at Microsoft.Web.Hosting.Tracing.AntaresEventProvider..cctor()
答案 0 :(得分:0)
最后,问题确实出在句柄计数太大而无法为IIS处理。调查指出,Imagprocessor(http://imageprocessor.org)的文件缓存实现导致了此问题。