2012-07-07 69 views
5

我在我的asp.net(vb)网站中收到以下7个错误。他们在我添加了对Microsoft Office 12.0 Object Library的引用后,发现this SO post尝试阅读各个Excel表格单元格。现在整个网站无法建立。最令人惊讶的是,为什么当我不需要它在我的项目中时,我得到一个与水晶报告相关的错误?Crystal报告在asp.net vb中没有水晶报告所需的错误

这里有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 

任何帮助将是非常欢迎!

回答

12

回到这个位置

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

打开preview.aspx文件,并更改12.0.2000.013.0.2000.0

它工作;-)

+0

感谢它,因为它像宝石一样工作! – rahulserver 2012-09-03 11:15:18

+0

酷!!很高兴帮助 – 2012-09-03 11:28:05

+0

有同样的错误,尝试了这一点,它不会让我保存新文件,它表示,不授予许可 – Dman 2015-12-21 16:58:52

2

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

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