然后aspnet_merge.exe将程序集合并为单个程序集。
然后将程序集上载到生产服务器。这通常工作得很好,但有时在登台服务器上测试时,我会得到
以下消息:
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”。
有没有人遇到过这个问题并找到了解决方法?