asp.net - 没有足够的存储空间来完成此操作 - Azure 应用服务、Nuget.Server

标签 asp.net asp.net-mvc azure azure-web-app-service nuget-server

我正在子应用程序下的 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, Func1 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/

相关文章:

asp.net-mvc - Entity Framework 将 s 添加到我的 .dbo

azure - 如何在 Azure 上托管 html 应用程序

asp.net - .Net Application Insights 2.5 不跟踪 HTTP 请求

c# - 将类设为可序列化的缺点

python - 由于 .h 文件出现错误,我无法下载 py4ak lib。 C++ 构建工具存在一些问题,我需要帮助解决

asp.net - 在 Webmethod 中获取 Request.Form 值

javascript - 在添加新标记之前如何从谷歌地图中删除所有标记

javascript - 如何在带星号(密码字段)的文本框字段中显示最后 3 个字符?

asp.net - 使用 asp.net mvc 的 API 身份验证选项

jquery - SignalR:无法读取未定义的属性 'hub'?