SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software Kodyaz Development Resources
Development resources, articles, tutorials, samples, codes and tools for .Net, SQL Server, Vista, etc.




download SQL Server 2014



Could not load file or assembly Microsoft.ReportViewer.WebForms

Microsoft SQL Server 2000/2005 Reporting Services is a great tool that can be used and customized in web applications.

I have previously used ReportViewer control for displaying reports.
You can also create web forms using .NET Report-Viewer control. Designing web forms using Microsoft SQL Server Reporting Services will enhance your SQL Reporting capabilities as an ASP.NET developer in your database web applications.

Recently I have used the ASP.NET web control ReportViewer in an other web application to display reports in a customized report viewer aspx web page.
When I deployed the web application on an other IIS web server for testing purposes, I got the following error message which is indicating that the Microsoft.ReportViewer.WebForms assembly could not be loaded.


Server Error in '/Kodyaz/RSWebApp' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 42:
Line 43: <httpHandlers>
Line 44: <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 45: </httpHandlers>
Line 46:


Source File: D:\WebApplications\Kodyaz\RSWebApp\web.config Line: 44

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


Installing the Microsoft.ReportViewer.WebForms assembly for MS Visual Studio 2005 and MS Visual Studio 2008

If this is the first time you are using ReportViewer controls within your web projects on a web server, you have to first install the ReportViewer assemblies on the deployed IIS web server.


You can find the ReportViewer installation file "ReportViewer.exe" for VS2005 projects in the following file folder on your development computer :

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer


For MS Visual Studio 2008 the ReportViewer installation file "ReportViewer.exe" is in the following file folder:

C:\Program Files\Microsoft Visual Studio 9.0\ReportViewer


If you copy the ReportViewer.exe on the production web server and run the setup program, you may complete the ReportViewer configuration processes. But if the application still fails then you can try copying the ReportViewer assemblies manually. Normally if the ReportViewer.exe successfully completes the setup process, the following files should be placed within the following folder:
C:\Program Files\Microsoft Visual Studio 8\ReportViewer or
C:\Program Files\Microsoft Visual Studio 9.0\ReportViewer

  • Microsoft.ReportViewer.Common.dll
  • Microsoft.ReportViewer.WebForms.dll
  • Microsoft.ReportViewer.WebForms.xml
  • Microsoft.ReportViewer.WinForms.dll
  • Microsoft.ReportViewer.WinForms.xml

  • You can manually copy the following dll files into the application folder /bin directory. After copying the files into the application bin folder the web application will start responding successfully. And ASP.NET ReportViewer control will work on your web application.


    Installing the Microsoft Report Viewer Redistributable packages 2005, 2005 SP1 (Full or Upgrade), 2008

    You can find sample applications and MS SQL Server Reporting Services Report Viewer Control installer package downloads at Download Microsoft SQL Server Report Viewer Control Redistributable Packages and Sample Applications titled web page.

    By downloading and running these Report Viewer Redistributable Package setup applications, the Microsoft.ReportViewer assemblies will be installed.
    You can view the installed asseblies by this method at Global Assembly Cache folder C:\WINNT\assembly and check for Microsoft.ReportViewer.WebForms for example.
    You should see the Microsoft.ReportViewer.WebForms with version 8.0.0.0 or 9.0.0.0







    SSRS-Reporting Services

    SQL Server Articles

    Reporting Services Blog

    SQL Server Reporting Services Forums

    SQL Blog

    Certification Exams Blog



    Free Exam Vouchers












    Copyright © 2004 - 2014 Eralper Yilmaz. All rights reserved.
    Community Server by Telligent Systems