我正在子应用程序下的 Azure 应用服务上运行托管 Nuget.Server 的 ASP.NET MVC 应用 (4.6.1)。它已经工作了好几个星期了……突然间我得到了以下信息:
Server Error in '/nuget' Application. Not enough storage is available to complete this operation Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: Not enough storage is available to complete this operation
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.
Stack Trace:
[Win32Exception (0x80004005): Not enough storage is available to complete this operation]
System.Diagnostics.Eventing.EventProvider.EtwRegister() +6148507
System.Diagnostics.Eventing.EventProvider..ctor(Guid providerGuid) +64 Microsoft.Web.Hosting.Tracing.EventProviderVersionTwo..ctor(Guid id) +62 Microsoft.Web.Hosting.Tracing.AntaresEventProvider..cctor() +161[TypeInitializationException: The type initializer for 'Microsoft.Web.Hosting.Tracing.AntaresEventProvider' threw an exception.]
Microsoft.Web.Hosting.Tracing.AntaresEventProvider.EventWriteDWASGenericLog(String LogStatement, String SiteName) +27
EnvSettings.SettingsUtils.Trace(String format, Object[] args) +122
EnvSettings.SettingsProcessor.Start() +204[InvalidOperationException: 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..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection1 methods, Func
1 setHostingEnvironmentCultures) +849
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +162
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +130
System.Web.Compilation.BuildManager.ExecutePreAppStart() +170
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +734[HttpException (0x80004005): 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..] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +118 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +708
我不知道发生了什么。根据搜索,我认为这可能是内存问题,但每个实例仅使用 7GB 中的 1-2GB。
主站点和其他两个子应用程序运行良好。这只是一个子应用程序。
看起来它可能与事件和跟踪有关,但 Azure 中的应用程序的跟踪已关闭,因此我不确定为什么它会进行任何跟踪。
大家有什么想法吗?
最佳答案
您可以尝试为您的跟踪器使用单例(EnvSettings.SettingsUtils.Trace)吗?
关于asp.net - 没有足够的存储空间来完成此操作 - Azure 应用服务、Nuget.Server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48297339/