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
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" in the following file folder on your development computer :
C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\BootStrapper\Packages\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
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.
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.
BlinkList
Del.icio.us
Digg
Furl
Simpy
Spurl
DZone
ma.gnolia
Shadows
|