English 中文(简体)
第1页装载时间
原标题:Compiling time of first page load

我从php转至某个项目的英特网,一夫制成一个网络应用程序,一切顺利进行。

我有一个问题,即:我第一次去我的网站,装上大约8至10秒钟。 我假定该守则正在编纂之中。 如果返回现场,将迅速装载。 然而,如果我第二天回来,它将再次汇编。

我不禁要问,谁能详细说明什么进展? 我理解,它需要再次汇编,但为什么第二天再汇编? 我是否可以避免这种情况?

感谢任何建议/建议,

安道尔

最佳回答

第二天又怎么办?

由于伙伴关系。 该网络应用程序已重新启用。

可能的原因:

  • IIS application pool is configured to recycle the working process.
  • Other application touches (modifies or at least just rewrites) web.config.

我是否可以避免这种情况?

是的。

  1. Disable IIS application pool recycling.
  2. Make sure web.config is not touched by any other process. These are usually anti-vurus programs, but pretty rare case. So the 1st option is 99.9% is the cause.
  3. Precompile the ASP.NET application. This and this pages explain how.
问题回答

您是否重新boot机? 每次重新启用该系统时,都需要再次编辑网站。 否则,它可能不会重整,因为它击中了磁盘,因为该代码在海滩上 is。

只有当你有发展安排时,这就是一个问题。

您可以通过从VS专业人员中部署,或使用指挥线作为p.net compiler





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签