Click here to Skip to main content
15,916,030 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
Type: Inner exception
Error: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.


What I have tried:

RDLC Report(.pdf) is working correctly in IIS but in my C Panel i'm getting this issue

Type: Inner exception
Error: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
Posted
Updated 16-Mar-16 4:34am

1 solution

In your project in the Solution Explorer, make sure you have clicked the "Display All Files" icon.
In the references section click on the reference Microsoft.ReportViewer.WebForms and look at the Properties window (if that window is not visible just hit F4)

Find the "Copy Local" property and change it to True

This should ensure that the file is copied to the same folder as the executable
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900