允许预编译的Visual Studio网页是可更新的区别是什么? [英] What is the difference between allowing a precompiled Visual Studio Web Page to be updatable and not?

查看:173
本文介绍了允许预编译的Visual Studio网页是可更新的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用默认的允许这个预编译的网站可更新多次构建了一个网站,但是在最近的编译网站是非常坏的。使用.dll(在bin中删除并替换它们)后,我注意到网站的某些部分再次开始工作,但是如果我把所有原始的.dll都放在了网站中。

I've built a web site several times using the default "allow this precompiled site to be updatable" however on the most recent compile the website was very broken. After playing around with the .dll's (deleting and replacing them, in the bin) I noticed certain parts of the website starting to work again, but if I put all of the original .dll's in the site was broken.

我正在使用具有多个Ajax Web扩展名的aspx页面。这些是最近加入的,可能是问题的根源。我取消选中允许这个预编译的站点可更新,并且将各种额外的编译代码文件添加到bin中,并且网站的所有问题都消失了...这里发生了什么?有什么区别?

I'm using aspx pages with several Ajax web extensions. These were added recently and may be the source of the problem. I unchecked the "Allow this precompiled site to be updatable" and it added all kinds of extra compiled code files to the bin, and all the problems with the website went away... what's going on here? What was the difference?

我更新网站的方式似乎没有任何区别,只是每次从Visual Studio直接发布。

There doesn't seem to be any difference in the way I update the site either, just a straight publish from Visual Studio each time.

任何见解将不胜感激。

Any insights would be appreciated.

推荐答案

取消选中允许此预编译的站点可更新编译.Aspx页面,而不仅仅是代码文件(.VB /.CS)。离开检查允许您在.Aspx文件部署之后对其进行某些更改,而无需重新编译(ex =移动控件的位置或添加一些额外的HTML标记)。

Unchecking the "Allow this precompiled site to be updatable" compiles the .Aspx Pages, not just the code files (.VB/.CS). Leaving it checked allows you to make certain changes to the .Aspx files after it has been deployed without recompiling (ex = move the position of a control or add some additional HTML markup).

在阅读了部署问题的描述之后,似乎更有可能的错误是因为IIS需要刷新App Pool。在低端VPS上,有时候,如果您有这种奢侈品,反弹(重新启动)就有意义。

After reading your description of the deployment issues it seems more likely that the errors are because IIS needs the App Pool refreshed. On a low end VPS, sometimes it just makes sense to bounce (restart) it if you have that luxury.

阅读以下MSDN文章以了解有关站点预编译的更多信息。

Read the following MSDN articles for more information on Site Precompilation.

http://msdn.microsoft.com/en-us/library/399f057w(v = vs80).aspx

http://msdn.microsoft.com/en-us/ library / ms247286(v = vs80).aspx

这篇关于允许预编译的Visual Studio网页是可更新的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆