IIS caching project reference binaries

青春壹個敷衍的年華 提交于 2019-12-11 23:44:00

问题


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.


回答1:


Have you refreshed your application pool on product server?




回答2:


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



来源:https://stackoverflow.com/questions/6201447/iis-caching-project-reference-binaries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!