Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Report Viewer will not work when loaded on server

Posted on 2014-04-15
7
Medium Priority
?
564 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

Accepted Solution

by:
Carl Tawn earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
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.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

610 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