IIS 缓存项目参考二进制文件
我只需要调试一个问题,其中 Asp.Net 似乎正在缓存网站引用的项目的 dll,即使在重建这些项目之后
解决方案可以编译,但在运行时 Asp.Net 引用了 C:\Windows 中过时的二进制文件\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root,并引发异常。 (我不认为具体的异常是相关的,这只是底层代码很旧的事实,在我的例子中,它是 LLBLGEN 的问题,其中实体索引不正常)
这是一个新问题,但似乎正在发生跨开发工作站和我们的集成服务器一致,所以我认为这一定是我们拥有的某种配置。
我们正在 IIS 7.5 上针对 Asp.Net 4 进行开发
更新
我们在 web.config 中的 system.web/compilation 元素上使用 optimiseCompilations 标志。我看不出这会如何影响它,但会翻转它并看看是否有任何变化。
I just had to debug an issue where Asp.Net seemed to be caching the dll's of projects referenced by the website, even after those were rebuilt
The solution compiles, but at runtime Asp.Net references an out of date binary in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root, and throws an exception. (I don't think the specific exception is relevant, its simply the fact that the underlying code is old, in my case its an issue with LLBLGEN where entity indexes are out of whack)
This is a new issue, but seems to be happening consistently across development workstations, and our integration server, so I think it must be some configuration we have.
We are developing against Asp.Net 4, on IIS 7.5
Update
We are using the optimizeCompilations flag on system.web/compilation element in web.config. I can't see how this might affect it, but will flip this and see if anything changes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否刷新了产品服务器上的应用程序池?
Have you refreshed your application pool on product server?
正如我的更新中提到的,这似乎与 optimizationCompilations 标志有关
http://blogs.msdn.com/b/davidebb/archive/2009/04/15/a-new-flag-to-optimize- asp-net-compilation-behavior.aspx
As mentioned in my update, this appears to be related to the optimizeCompilations flag
http://blogs.msdn.com/b/davidebb/archive/2009/04/15/a-new-flag-to-optimize-asp-net-compilation-behavior.aspx