Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created an application includes database "access" connection and reporter module "Report Viewer " and it's working properly without bugs in my PC "equipped with Microsoft Visual Basic Studio 2010" but when I took only the following files to be installed on another PC
1-Applicationname.exe.config
2-Databasename.mdb file
3-Applicationname.exe
4-Reportname.rdlc
I found that all thing is ok except the report viewer opening as there is an error message stated that (Unhandled exception has occured in your application. If you click continue, the application will ignore this error and attempt to continue if you click Quit,the application will close immediately.
An error ocuured creating the form.See Exception.Inner Exception for details. The error is :Could not load file or assembly
"Microsoft.ReportViewer.WinForms,Version=10.0.0.0,Cluture=neutral,PublicKey Token=b03f5f7f11d50a3a or one of its dependencies. The system cannet find the file specified.)
Awaiting your help. Thx
Posted
Comments
CHill60 23-Oct-14 7:10am    
Do you have the correct version of .net framework on the target PC? And the right version of the ReportViewer redistributable files?
Sherif Adely 23-Oct-14 15:25pm    
Hi Chill60, yes the other PCs with .net framework 4 and all application features are functioning properly on those PCs except the reporter part.
As for the report viewer files,I only took the .rdlc file
CHill60 23-Oct-14 16:07pm    
I think you might need to download the reportviewer redistributable support files e.g. http://www.microsoft.com/en-us/download/search.aspx?q=report%20viewer%202008[^]
Sherif Adely 24-Oct-14 17:47pm    
Thx Chill60 I'll download those file and get back to you.
Sherif Adely 26-Oct-14 5:04am    
It's now working properly. Thanks alot :)

Try (on your computer where it works) change the references to Copy Local = True. Then copy whole bin directory - you'll get all dlls your project needs. With correct versions.

Or update references to newest version.

Or install 2010 runtime on your new computer: http://www.microsoft.com/en-us/download/details.aspx?id=6442[^]


You could also try finding:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies
in your program and copy MS report DLLs to your new computer.


If this helps, please take time to accept the solution. Thank you.
 
Share this answer
 
Hi,

You need to install the Report Viewer setup on the your client machine.


http://www.microsoft.com/en-in/download/details.aspx?id=6442[^]
 
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