5

我在我的 asp.net(vb) 网站中出现以下 7 个错误。它们发生在我根据SO 帖子添加对 Microsoft Office 12.0 对象库的引用以尝试读取单个 Excel 工作表单元格之后。现在整个网站无法建立。最令人惊讶的是,当我在项目中不需要水晶报告时,为什么会收到与水晶报告相关的错误?

以下是7个错误:

Error   Unknown server tag 'CR:CrystalReportViewer'.    C:\Users\ssaa\Documents\Visual Studio 2010\WebSites\Dpp2012\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx  130 

Error   Could not load file or assembly 'CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.    C:\Users\ssaa\Documents\Visual Studio 2010\WebSites\Dpp2012\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx  3   

Error   Could not load file or assembly 'CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.   C:\Users\ssaa\Documents\Visual Studio 2010\WebSites\Dpp2012\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx  6   

Error   Could not load file or assembly 'CrystalDecisions.ReportAppServer.XmlSerialize, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.   C:\Users\ssaa\Documents\Visual Studio 2010\WebSites\Dpp2012\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx  7   

Error   Could not load file or assembly 'CrystalDecisions.ReportAppServer.ObjectFactory, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.  C:\Users\ssaa\Documents\Visual Studio 2010\WebSites\Dpp2012\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx  8   

Error   Could not load file or assembly 'CrystalDecisions.ReportAppServer.Controllers, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.    C:\Users\ssaa\Documents\Visual Studio 2010\WebSites\Dpp2012\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx  4   

Error   Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.  C:\Users\ssaa\Documents\Visual Studio 2010\WebSites\Dpp2012\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx  5   

非常欢迎任何帮助!

4

2 回答 2

13

去这个位置

[Windows Partition]:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETClientFiles\crystalreportviewers13\

打开 preview.aspx 文件,然后更改12.0.2000.013.0.2000.0

有用 ;-)

于 2012-09-03T07:24:20.107 回答
2

除了修复[Windows Partition]:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETClientFiles\crystalreportviewers13\文件夹中的 preview.aspx 外,您还应该在网站根目录中查找名为 aspnet_client 的文件夹,并在那里应用相同的更改。

如果您在 IIS 中使用多个网站,而不仅仅是“默认网站”,它会将 Crystalreportviewers13 文件夹复制到每个网站中,因此请全部检查。

于 2013-03-13T13:27:21.010 回答