现在的位置: 首页 > 综合 > 正文

_Web

2013年12月02日 ⁄ 综合 ⁄ 共 558字 ⁄ 字号 评论关闭

在ASP.NET 2.0 开发过程中,有时候开发人员可能会遇到这样的页面异常:

Could not load file or assembly 'App_Web_****, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

异常信息中的****是一个随机字符串,我们知道App_Web_****是一个ASP.NET即时编译的临时程序集。

我是今天在用Orcas beta 1开发一个基于WCF服务的浏览器应用时遇到该问题的,通常地讲,这是一个ASP.NET 2.0处理临时程序集的已知问题,ASP.NET论坛上的billr578说微软建议:

(they suggested) setting batch compilation to false.  Basically put batch="false" in the compiliation tag in your web.config.  Apparently this is an issue they're working on.

也就是说在web.config里配置成这样子:

<compilation debug="true" batch="false">...

 

抱歉!评论已关闭.