安装Application Insights服务器监视器后,站点无法加载System.IO

时间:2015-03-19 19:07:42

标签: asp.net azure-application-insights

我刚刚在测试服务器上安装了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不会从网站收到任何遥测。

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

1 个答案:

答案 0 :(得分:2)

您可以在检测后检查bin文件夹中的System.IO.dll的程序集版本和web.config中定义的绑定重定向吗? 如果System.IO.dll是2.0.10版本,绑定重定向是2.0.9,那么这个问题将在下周初的下次更新期间修复。 作为一种解决方法,您现在可以手动将绑定重定向设置为2.0.10。我很抱歉这个错误!