Welcome to AspAdvice Sign in | Join | Help

Could not load file or assembly Microsoft.ReportViewer.WebForms

Ran into this error while deploying an application to production:

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.

A quick search found the issue.  The server needs these three files:

Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll


These get installed by ReportViewer.exe, which can be found here:

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

In my case I just FTP’s up my entire C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer folder to the server and then I was able to run the EXE without problem.

Published Wednesday, January 24, 2007 10:11 AM by ssmith
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Could not load file or assembly Microsoft.ReportViewer.WebForms

Our Service provider does not want to install these 3 dlls since they requier "Full trust" and they do not allow full trust by policy.  So the DLL Hell still remains.  any solutions?

RRV

rv_ooty@hotmail.com

Saturday, February 24, 2007 12:42 PM by Raja Venkatesh

# re: Could not load file or assembly Microsoft.ReportViewer.WebForms

5675m 56756

Friday, March 16, 2007 4:28 AM by 567

# re: Could not load file or assembly Microsoft.ReportViewer.WebForms

Do you have to go through all this if you are using VS 2005?  I loaded the Redistributable Reportviewer control on our development server when I was using Visual Web Developer Express Edition...I was hoping when we got the full-blown VS2005 (we do now) that it would automatically include all needed dlls when I published a web project to the production server.  I'm not sure if i can get access to our production server to run an exe manually.

TIA for any help/comments,

fgs

Thursday, May 03, 2007 5:13 PM by fgs

# Could not load file or assembly 'BasicFrame.WebControls.BasicDatePicker' or one of its dependencies. An attempt was made to load a program with an incorrect format.

hi im getting the above error after deploying my web application. So plz tell me how to fix this problem.

Saturday, June 09, 2007 6:21 AM by Shashikiran

# re: Could not load file or assembly Microsoft.ReportViewer.WebForms

Hi,

The ASP.NET applications will still work if you place the .dll file into the application /bin folder. It is not necessary to install the assemblies into the GAC. I have troubleshoot my deployment as summarized in

http://www.kodyaz.com/articles/assembly-Microsoft.ReportViewer.WebForms.aspx

Monday, September 24, 2007 6:39 AM by Eralper

# re: Could not load file or assembly Microsoft.ReportViewer.WebForms

Ive also found if you just copy the missing DLL files into the bin folder which should be in the application folder the application will just work.

The GAC stores strong assmeblies, which could be used but is more effort

Saturday, October 20, 2007 10:40 AM by Cardiff

# re: Could not load file or assembly Microsoft.ReportViewer.WebForms

WOW... Thanks Man...

Wednesday, December 19, 2007 4:05 PM by NeGroiDe

# re: Could not load file or assembly Microsoft.ReportViewer.WebForms

I have made a assembly named DataHelper,but it will have the error like the artical for a long time with no visit,and if i have upload any files in the bin floder,it can be work commonly,and if there isn't  any visit to he website ,the error will happen again,what can i do ,and the website is in a public web server,I have no access to install this assembly to GAC.

Any one can help me?Thanks.xinerzhui@163.com

Wednesday, December 19, 2007 8:57 PM by linxiang

# re: Could not load file or assembly Microsoft.ReportViewer.WebForms

just go to following link and download The Report Viewer 2005 Service Pack 1 Redistributable Package.

install on you deployment server and get report working.

http://support.microsoft.com/kb/933137

if you want more detail mail me on

     santhegreat@gmail.com

Thank you and Enjoy!

Wednesday, April 16, 2008 2:02 AM by Sangati Shinde

# Thank alot It really helped a lot

Thank alot It really helped a lot

Monday, May 05, 2008 9:33 PM by Haitham Foda

# re: Could not load file or assembly Microsoft.ReportViewer.WebForms

ok. not bad

Tuesday, June 17, 2008 6:55 AM by bhaggu

Leave a Comment

(required) 
required 
(required) 
Enter the code you see below