ASP.net编译问题
我遇到了一个非常有趣的问题。以下是我对相关站点的设置:
- IIS7
- Sitefinity 4
我创建了一些独立的 ASPX 页面,这些页面未挂接到 Sitefinity 中,并且在更改 .cs 文件后进行编译时出现问题。我将在 .cs 中进行更改,保存并刷新站点,但更改不会生效。如果我对 .aspx 进行更改(在行尾放置空格字符),编译似乎会发生,并且之前在 .cs 中所做的更改现在已生效。
我有什么想法应该从哪里开始调试这个吗?这是一个奇怪的缓存问题,仅通过更新 .aspx 文件就会失效吗?是否是 Sitefinity 设置以某种方式阻止 .cs 更改导致编译?
-------------------- 编辑 --------------------
我是通过“文件”> 打开站点打开>网站,它是.NET 4.0
I have come across a very interesting issue. Here are my settings for the site in question:
- IIS7
- Sitefinity 4
I have created some standalone ASPX pages that are not hooked into Sitefinity and have an issue when it comes to compilation after making changes to the .cs files. I will make a change in the .cs, save and refresh the site and the changes do not take effect. If I make a change to the .aspx (putting a space character at the end of a line) compilation seems to occur and the changes previously made in the .cs are now live.
Any ideas where I should start debugging this? Is it a strange caching issue that gets invalidated only by updating the .aspx file? Is it a Sitefinity setting that is preventing .cs changes from causing compilation somehow?
-------------------- EDIT --------------------
I am opening the site via File > Open > Website, and it is .NET 4.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信在 Sitefinity 网站上,要查看代码隐藏 (.aspx.cs) 文件或常规类文件 (.cs) 的更新,您可以:
另外,如果您使用 IE8 进行测试,请确保从开发人员工具栏中删除缓存。我注意到 IE 不会完全转储你的缓存,除非你按 F12(开发工具栏)> > HTML 选项卡 >清除浏览器缓存...
这不是一个错误,AFAIK。
I believe on a Sitefinity site, to see updates to your code-behind (.aspx.cs) files or to regular class files (.cs) you can either:
Also, if you're testing with IE8 then make sure to delete your cache from the developer tools bar. I've noticed that IE will NOT dump your cache completely unless you hit F12 (dev tools bar) > HTML tab > Clear Browser Cache...
This is not a bug, AFAIK.