I recently upgraded my n-tier solution from.NET 3.5 vs 2008 to 4.5 visual studio 2012. Every thing went fine apart from crystal reports and I had to install new runtime crystal reports for visual studio 2012 from the following link. After installing the above package I had to resolve some deprecated function and properties of CrystalViewer and after that reports rendering properly in development environment (Windows 7 64 bit, SQL Server 2005, Visual Studio 2012). When I deployed the package in test environment windows server 2008 R2 the Application failed to load by throwing error Could not load file or assembly 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. As Microsoft.ReportViewer.2012.Runtime has Microsoft.ReportViewer.WebForms, Microsoft.ReportViewer.Common and Microsoft.ReportViewer.ProcessingObjectModel libraries, just run this command on PM Console: Install-Package Microsoft.ReportViewer.2012.Runtime Note: If you want to completely remove the old Microsoft.ReportViewer.xxx references, you can remove them from Manage NuGet Packages>Installed Packages menu and then remove the related lines from packages.config file in your project. After that it will not comeback again during building of the project. Hope this helps. Could not load file or assembly 'Microsoft.ReportViewer.Webforms' or Could not load file or assembly 'Microsoft.ReportViewer.Common' This issue occured for me in Visual studio 2015. Reason: the reference for Microsoft.ReportViewer.Webforms dll is missing. Possible Fix Step1: To add 'Microsoft.ReportViewer.Webforms.dll' to the solution. Navigate to Nuget Package Manager Console as 'Tools-->NugetPackageManager-->Package Manager Console'. Then enter the following command in console as below PM>Install-Package Microsoft.ReportViewer.Runtime.WebForms Then it will install the Reportviewer.webforms dll in '. Packages Microsoft.ReportViewer.Runtime.WebForms.12.0.2402.15 lib' (Your project folder path) and ReportViewer.Runtime.Common dll in '. Packages Microsoft.ReportViewer.Runtime.Common.12.0.2402.15 lib'. Integrating Reporting Services Using ReportViewer Controls - Get Started. { this.reportViewer1 = new Microsoft.Reporting.WinForms.ReportViewer(). Jan 12, 2018 Module Name:- Microsoft.ReportViewer.WinForms Version:- 11.0.0.0 v11 is MS SQL Server 2012 GAC. 2012, Microsoft Report Viewer - 2012 - Runtime. Microsoft Report Viewer Parameters(Your project folder path) Step2:- Remove the existing reference of 'Microsoft.ReportViewer.WebForms'. We need to refer these dll files in our Solution as 'Right click Solution >References-->Add reference-->browse '. Add both the dll files from the above paths. Step3: Change the web.Config File to point out to Visual Studio 2015. Comment out both the Microsoft.ReportViewer.WebForms and Microsoft.ReportViewer.Common version 11.0.0.0 and Uncomment both the Microsoft.ReportViewer.WebForms and Microsoft.ReportViewer.Common Version=12.0.0.0. As attached in screenshot. Microsoft Report Viewer TutorialAlso refer the link below. I Had the same problem. The solution for me is: You must have the same version of: Microsoft.ReportViewer.ProcessingObjectModel registred in C: Windows assembly GAC_MSIL Microsoft.ReportViewer.ProcessingObjectModel, like you have registraded in web.config in developer server: In my case i was only registred the 13. Version in my prodution server and i have the 12. Version in developer server. The solution is install the version 12. In the prodution server too the version 12.: Then now i have the version 12. Microsoft Report Viewer DownloadIn the prodution and the report work fine. *** Remember to reset your IIS after instalation.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2018
Categories |