我最近将我的n层解决方案从.NET 3.5 vs 2008 to 4.5 visual studio 2012升级.除了Crystal Reports之外,一切都很顺利,我不得不从下面的链接http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe为visual studio 2012安装新的运行时Crystal Reports. 在安装了上面的软件包之后,我必须解析一些不推荐使用的函数和属性 CrystalViewer,然后报告在开发环境(Windows 7 64 bit, SQL Server 2005, Visual Studio 2012)中正确呈现.当我在测试环境中部署软件包时(Windows Server 2008 R2). 由于引发错误,应用程序加载失败 无法加载文件或程序集Microsoft.ReportViewer.WebForms, Version=11
I managed to resolve ReportViewer.WebForms error by copying the DLL from C:\Program Files (x86)\Microsoft Visual Studio 11.0\ReportViewer to bin folder of solution and set property copylocal = true and deployed the package. After that I received the error Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0 . I tried to search that DLL on my machine but couldn't. when project is running in visual studio, In Debug-> Windows->Module the file is not listed however in global assembly cache that file is installed but I don't know how its installed to global cache and from where . I found one solution that I had to install ReportViewer.msi from microsoft package but if i install this package it asks me to install SQL Server 2012 which I dont wan't. Could any one help me to resolve this issue. Thanks