我应该这样做,我刚为vs2010安装了水晶报告
现在出现此错误
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll'
Source Error:
Line 80: <asp:Button ID="Button1" runat="server" Text="Button_Test_Test" OnClick="working" />
Line 81:
Line 82: <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" ReportSourceID="CrystalReport1.rpt" />
Line 83:
Line 84: </asp:Panel>
答案 0 :(得分:2)
试试这个。打开web.config文件,确保提及Crystal Report的所有引用都是13.0.2000.0。大会部分会有几个(我认为12或13)。接下来打开您拥有Report Viewer的页面,并确保您注册的版本与web.config中的版本相同
&lt;%@ Register assembly =“CrystalDecisions.Web,Version = 13.0.2000.0,....
之前我没有遇到过您的确切错误,但我有几个类似的错误并编辑这两个文件以确保所有版本的排序对我来说每次都有效。