- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我的 Azure 环境中,我在实例上有一个包含多个网站的网络角色。 WCF 项目中的 global.asax 中的 Application_Start() 方法被调用多次(中间间隔几分钟),而不会遇到 Application_End 或 Application_Error 。在模拟器中我没有这个问题。
在事件日志中,我看到一个 WAS 事件:“属于站点 'xxxx' 的应用程序 '/' 设置了无效的 AppPoolId 'xxxxx'。因此,该应用程序将被忽略”(并且该站点将被禁用,因为为该站点定义的根应用程序无效。)每 1.5 小时记录一次。
有人知道发生了什么事吗?
最佳答案
我会看看这个: http://technet.microsoft.com/en-us/library/cc735307(v=ws.10).aspx
您很可能为多个站点设置了其中一些内容。如果您可以远程访问 Azure 实例,您应该能够检查并进行适当的调整。
关于.net - Azure Application_End 未命中,而 Application_Start 多次命中(中间间隔几分钟),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9432632/
我是 C# 的新手,所以请多多包涵。 我有一个函数在 Global.asax.cs 文件的 Application_Start 函数中运行,当我开始调试时它工作正常。 但是当我停止调试时,我在 App
我已阅读 this , this , this和 this加上十几个其他帖子/博客。 我在共享主机中有一个经常回收的 ASP.Net 应用程序。我们使用 NLog 并在 global.asax 中有以
Asp.net 有一个 Application_End 事件,它在应用程序结束时发生,如下所示 void Application_End(object sender, EventArgs e) { }
我知道当 IIS 回收应用程序池时会调用此事件的事件处理程序,但是什么时候发生?如果使用内置的 Visual Studio 服务器 (Cassini) 呢?如果我杀死服务器进程,Application
谁能告诉我在应用程序的生命周期中何时触发Application_End?当所有 session 结束后,Application_End会自动触发吗? + 还有其他原因可能会触发 Application
Application_End() 在我的应用程序池停止时被调用,这种情况的发生可能有多种原因,包括自动池回收或提供应用程序的文件夹发生更改。 调用堆栈通常如下所示: my Application_E
在 Web 或 Api 解决方案中处理像 Autofac 这样的 IOC 容器时,您会看到很多这样的实现代码: protected void Application_Start() { ///
我在 web.config 中有这个条目 我在 Global.asax.cs 中有以下代码以在回收时自动启动 IIS void Application_End(object se
在ASP.NET WebAPI中,global.asax.cs文件中有一种称为ApplicationStart的方法,该方法在应用程序启动时会自动调用。这个怎么称呼? 我问的原因是我想添加一个Appl
删除部署或重新启动实际生产 Web 角色时,不会调用 ASP.NET Web 应用的 Application_End 方法。 卸载应用程序时,我需要执行清理操作(例如删除动态服务总线订阅)。 有什么想
我在Application_Start和Application_End (global.asax)中实现了一些代码。当我启动 ASP.NET Developer Server 时,Applicatio
删除部署或重新启动实际生产 Web 角色时,不会调用 ASP.NET Web 应用的 Application_End 方法。 卸载应用程序时,我需要执行清理操作(例如删除动态服务总线订阅)。 有什么想
我们有一个 MVC ASP.NET Web 应用程序作为应用服务托管在 Azure 上。每天有 3 到 4 次我可以看到它重新启动。我正在 global.asax 中的 Application_End
我在 Application_End 上处理的项目中使用临时数据库: protected void Application_End() { if (_db != null) _db.Dispo
我刚刚在读这篇文章 "When is IHttpModule.Dispose method called?"我找到了这个 "The Dispose method performs any final
我想在停止调试或停止 IIS Express 网站时优雅地处理应用程序关闭,但我似乎无法让 Application_End 运行。 最佳答案 如果您正在使用 IIS Express 进行调试,如果您右
在我的 Azure 环境中,我在实例上有一个包含多个网站的网络角色。 WCF 项目中的 global.asax 中的 Application_Start() 方法被调用多次(中间间隔几分钟),而不会遇
我正在编写一个 http 模块,并且我想添加一个在(且仅当)appdomain 被回收时调用的方法。我不想向 global.asax 添加任何内容,我想在 http 模块中以编程方式执行此操作。 但是
在我的 Azure 环境中,我在实例上有一个包含多个网站的网络角色。 WCF 项目中的 global.asax 中的 Application_Start() 方法被调用多次(中间间隔几分钟),而不会遇
我正在处理的当前应用程序似乎经常回收应用程序池,但是当它结束时,id 没有通过 Application End 或 Application Start。 这就是我的 Global.asax 的样子。
我是一名优秀的程序员,十分优秀!