完整的错误信息如下:
Could not load file or assembly 'App_Web_xxxxxxxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
这里的xxxxxx是ASP.Net生成的临时名称。
我们在托管在ASP.Net应用程序内的WCF服务中遇到了这个错误。
奇怪的是,它很少出现,与部署更改无关......而当它发生时,服务会“中断”所有后续请求。
目前,我们的解决方法是从以下位置中删除应用程序文件夹中的临时程序集:
%windir%\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
该应用程序托管在运行.Net 3.5的win 2008服务器上的IIS7中。
非常感谢任何想法!