安装应用程序见解服务器监视器后,站点无法加载 System.IO



我刚刚在测试服务器上安装了Application Insights Server Monitor,在那里我有一个功能齐全的.net 4.0 ASP.net网站。

在网站上启用AI后,当我试图加载它时,我得到一个错误:

Could not load file or assembly 'System.IO' or one of its dependencies.  
The located assembly's manifest definition does not match the assembly 
reference. (Exception from HRESULT: 0x80131040)
System.IO.FileLoadException: Could not load file or assembly 'System.IO' 
or one of its dependencies. The located assembly's manifest definition 
does not match the assembly reference. (Exception from HRESULT: 
0x80131040)

当我启用AI时,它会将几个.net dll复制到sites/bin/,System.IO.dll和System.Threading.Tasks.dll。如果我删除它们,问题就会自行解决,但AI不会从站点接收到任何遥测信息。

我需要做些什么来解决此问题并启用监控?

插入后,能否检查bin文件夹中System.IO.dll的程序集版本和web.config中定义的绑定重定向?如果System.IO.dll是2.0.10版本,并且绑定重定向显示为2.0.9,那么这个问题将在下周初的下一次更新中解决。作为一种变通方法,您现在可以手动将绑定重定向设置为2.0.10。我对这个错误感到非常抱歉!

最新更新