2009-12-01 56 views
0

我使用aspnet ___ compiler.exe编译我的asp.net 3.5SP1网站, 然后aspnet_merge.exe将程序集合成一个。ASP.global_asax从编译程序集中丢失

然后程序集上传到生产服务器。该临时服务器上进行测试时通常效果很好,但有时我得到 以下消息:

Parser Error Message: Could not load file or assembly 'App_global.asax, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

当装配有Reflector前瞻性和它与同一个工作版本比较我看到类型ASP.global_asax确实缺失。

当改变网站上的内容并重新编译时,我得到一个包含'ASP.global_asax'的工作版本。

这是一种烦人的,我想知道这是否是在某些特殊情况下的编译器中的错误?

其他人遇到此问题,并找出如何解决它?

回答