Solved

Report Viewer will not work when loaded on server

Posted on 2014-04-15
7
534 Views
Last Modified: 2014-04-15
I am using a reportviewer for a local report in VS2010.  The report viewer works perfectly when used on my local machine in the visual studio environment, but when I load the report pages, dataset, reportviewer, and changed web config file on the production server it throws an error.

"Could not load the assembly 'Microsoft.ReportViewer.WebForms, Version 10.0.0.0.0, Culture=Neutral, PublicKeyToken=....' or one of its dependencies.  The system cannot find the file specified."

This is for a local report.  I am not using remote processing.

Can anyone help??

Thanks in advance!!
0
Comment
Question by:rckrch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 40001692
Have you installed the ReportViewer components on your production server? If you do, is it the right version?

If you haven't you can get it here: https://www.nuget.org/packages/MicrosoftReportViewerWebForms_v10/
0
 

Author Comment

by:rckrch
ID: 40002053
Carl Tawn

Thanks for the reply.  I have not added the ReportViewer to the server.  It was my understanding that I should not have to dowload anything if this is a local report.  It simply works off the resources loaded in the application.

Not correct?  If this is not correct please explain.

Thanks again.
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 40002093
A "Local Report" only performs the data processing locally, the server still requires the server components in order to be able to serve the report, and the raw source data, to the client in the first place.
0
Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

 

Author Comment

by:rckrch
ID: 40002125
OK  Where should it be located?
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 40002230
If you just download and follow the instructions in the link i posted earlier, it will sort itself out. I imagine it will install to the GAC so it is available server wide.
0
 

Author Comment

by:rckrch
ID: 40002302
Thanks.  I'll install and let you know.
0
 

Author Comment

by:rckrch
ID: 40002690
Carl Tawn,

Your solution worked perfectly.  Thanks very much.
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question