未能加载文件或程序集“App_Web_1jq3pypa, Version=0.0.0.0, Cult

来源:http://www.daidui.cn/blog/read.asp?blogid=424

在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">...

这个解决方案对我有效。

此外,微软还对此提供了一个处于测试阶段的HotFix,您可以通过访问http://support.microsoft.com/kb/915782/以查看相关描述,以及获取对应的补丁程序。我猜该补丁应该会要集成到.NET Framework 2.0 SP 1中发布吧。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值