我在我的Web应用程序上有一个内部报告,当我本地浏览时,它显示如预期。我使用rdlc
和xsd
以及标准的apsx
网页来呈现报告。
我现在已经部署到了我的测试服务器上,但是当我尝试浏览显示报告的页面时,出现以下错误:
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.SqlServer.Types, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
在本地,我通过浏览以下路径添加了对Microsoft.SqlServer.Types
的引用:
C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Types\11.0.0.0__89845dcd8080cc91
我已将其设置为Copy Local
并可以在预发布服务器的bin文件夹中看到.dll
,但仍然收到错误消息。
有趣的是,我从我的本地计算机复制了.dll
,并将其ftp到了预发布服务器上并放到了bin文件夹中。它能正常工作,但只是临时的,直到我进行另一个提交,它会抹掉bin文件夹并且错误会再次出现。
好像预发布服务器的操作系统上的Microsoft.SqlServer.Types
的版本过时了?
这里发生了什么?