我偶尔会收到“应用程序编译正在开始”的消息。我的事件日志中出现了该事件,但我无法确定导致该事件的原因。我想我可以尝试这个 - http://blogs.msdn.com/b/tess/archive/2008/11/06/troubleshooting-appdomain-restarts-and-other-issues-with-etw-tracing.aspx - 但在我这样做之前,我很好奇我是否可以在不开始搞乱未知事物的情况下识别问题。
我用过<%= %>;和<%#%>整个应用程序中都有标签,所以我想知道这是否是导致问题的原因。在几个地方我嵌入了 C# 代码(使用 ),这样可以添加到它吗?
预编译应用程序对我来说也是有效的选择,我只是不想每次将一些更改上传到服务器时都需要在服务器上执行预编译命令。目前在我的开发机器上,我遵循了此链接的建议 - http ://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html - 它的工作非常棒,因为它允许我识别 C# 代码中的错误在 Visual Studio 中构建期间的 .aspx 页面。但是,我假设预编译结果未存储在我的网站目录中(并且当我使用“发布”选项时不会发布)。
理想情况下,我希望保持默认的 Web 应用程序模型,并在通过 FTP 上传更改的 .aspx 或 .ascx 后立即自动运行编译(不等待用户的 http 请求)。是我要求太多了,还是可以设置?
I am occasionally getting "Application compilation is starting." event in my Event Log and I can't identify what's causing it. I think I may try this - http://blogs.msdn.com/b/tess/archive/2008/11/06/troubleshooting-appdomain-restarts-and-other-issues-with-etw-tracing.aspx - but before I do that I was curious if I can identify the problem without starting to mess with something unknown.
I have used <%= %> and <%# %> tags throughout the app so I am wondering if this is what's causing the problems. On couple spots I have embedded C# code (using ) so that may add to it?
Precompiling the app is also valid choice for me, I just don't want to end in position in which I need execute precompilation command on the server every time I upload some changes to the server. Currently on my dev machine I've followed advices from this link - http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html - and it does awesome job as it allows me to identify errors in C# code in .aspx pages during build in Visual Studio. However, I presume precompilation results are not stored in my website directory (and won't be published when I use Publish option).
Ideally, I want to stay in position I am with default Web Application model with addition of automatically running compilation as soon as I upload changed .aspx or .ascx over FTP (not waiting for user's http request). Am I asking too much, or is this possible to setup?
发布评论
评论(1)
根据我的研究,似乎可以。
因为没有人回复我会接受这个答案。
From my research it seems it can.
Because nobody responded I'll accept this as answer.