Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Error Message show when i Drag and Drop Report From ToolBox

Failed to create component 'ReportVirwer'. The error message follows: 'System.io.FileNotFoundException: Could not load or assembly 'Microsoft.ReportViewer.Common,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system connot find the file specified.
File name:'Microsoft.ReportViewer.Common,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.Reporting.WinForms.LocalReport..ctor()
at Microsoft.Reporting.WinForms.ReportViewer.Reset()

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]

What I have tried:

Search all Internet but not find any solution
Posted
Updated 24-Jul-20 2:06am
Comments
Sandeep Mewara 24-Jul-20 7:58am    
Seems straigt forward assembly missing case. Which version ReportViewer is installed on your system? Where did you refer it from in your project?
Amar chand123 24-Jul-20 8:03am    
NuGet Microsoft.ReportViewer.WinForm v10.0.402191.1
Sandeep Mewara 24-Jul-20 8:08am    
Make sure that the file named "Microsoft.ReportViewer.Common.dll" verion 10 is present in the bin folder (if files exists from nuget, it would be in that too - search file and see)
Amar chand123 24-Jul-20 8:47am    
Already have this in bin Folder
Sandeep Mewara 24-Jul-20 9:15am    
based on the error, lcearly not Version=10.0.0.0.

Right click properties of the assembly and check the version in details tab there

1 solution

I think you are referring ReportViewer for a project that references 2010 and now trying to run in current environment that does not have that component.

For making it work for expected version, download and install: Download Microsoft Report Viewer 2010 Redistributable Package from Official Microsoft Download Center[^]

Try!
 
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