简体   繁体   English

asp.net:调试缓慢-始终触发application_start

[英]asp.net: slow debugging - always fire application_start

I have an app with about 200 aspx pages and it started to run slowly some days ago. 我有一个约200个aspx页面的应用程序,几天前它开始运行缓慢。

It seems that the VS 2010 debugger started to fire application_start on every single code change. 似乎VS 2010调试器开始在每次代码更改时触发application_start。

Before this slow behavior, the debuger fire the application_start just once and I had to stop the dev server to force the event. 在出现这种缓慢行为之前,调试器仅触发一次application_start,而我必须停止开发服务器来强制事件。

  • Windows 2008 R2 server x64 Windows 2008 R2服务器x64
  • Visual Studio 2010 Visual Studio 2010
  • 3 developers via rdp (all with the same issue) 通过rdp的3个开发人员(所有问题相同)

Thanks. 谢谢。

That is how Application_Start is supposed to work. 那就是Application_Start应该如何工作的。 It only fires when the Application Pool starts or when there's a change to the code-base, or a web.config file, which would cause it to restart. 它仅在应用程序池启动时或代码库或web.config文件发生更改(会导致其重新启动)时触发。

This article discusses the topic in more detail. 本文将详细讨论该主题。

I think your code is either creating/ deleting folder on web server which is causing the issue. 我认为您的代码正在Web服务器上创建/删除文件夹,从而导致了问题。

You should check ASP.NET restarts when a folder is created, renamed or deleted 您应该检查在创建,重命名或删除文件夹后ASP.NET重新启动

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.NET MVC3调试Application_Start - ASP.NET MVC3 Debugging Application_Start 在调用Application_Start()之后,Asp.Net MVC应用程序属性始终为null - Asp.Net MVC application Property is always null after Application_Start() is called asp.net application_start事件中的问题……它非常非常慢……可能是什么原因? - problem in asp.net application_start event…its very very slow…what could be the reason? ASP.net Application_Start捕获计时器中的异常 - ASP.net Application_Start catch exception in timer 访问在Application_Start ASP.NET MVC 3中创建的变量 - Accessing Variables Created In Application_Start ASP.NET MVC 3 如果本地运行ASP.NET应用程序,则在Global.Asax中查找-Application_Start - Find out in Global.Asax - Application_Start if ASP.NET application running locally 在asp.net中托管套接字服务 - 与application_start和application_end有关 - Hosting a socket service in asp.net - issues with application_start & application_end 当无法访问Application_Start时如何向第三方asp.net应用程序添加路由 - How to add routes to a 3rd party asp.net application, when no access to Application_Start is available 如何在ASP.NET application_start中调用一些异步代码 - How to call some async code in an ASP.NET application_start Asp.net MVC5 Application_Start每个请求都发生-有时每个请求多次 - Asp.net MVC5 Application_Start happens every request - sometimes multiple times per request
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM