Click here to Skip to main content
16,005,734 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have developed rdlc report which is working fine on my local pc. When I have host my web app on server PC, I got microsoft.reportviwer.webform vesrion=11.0.0.0 error. This error occured becoz server GAC folder does not exist this assemblies. I search a lot about this issue..and i found like

http://stackoverflow.com/questions/22253607/could-not-load-file-or-assembly-microsoft-reportviewer-common-version-11-0-0-0[^]

But still issue is exist. So please help me to solve this issue. How I can add the this DLL file on server GAC..
Thanks in advance.
Posted
Comments
virusstorm 11-Aug-15 7:38am    
First, make sure that the runtime you installed is the same version you are referencing. Microsoft has many versions of this viewer as they have patched and made improvements.

One last thing I would try is locate the DLL reference in your solution explorer. Right click on the assembly and click properties. Make sure "Copy Local" is set to true. This will ensure that when your application gets deployed, the DLL will exist in the bin folder and your application will load.

The only time you need to really worry about the GAC on the web server is when the DLL is used amongst multiple websites on the server or you have sub applications that need to use different versions of the same library.
Member 11151142 11-Aug-15 7:53am    
Yess...Thanks for reply....The Server PC have DLL but it is of version 10.0.0.0 and 12.0.0.0. But currently I am refercing version 11.0.0.0. I have two different server in which one server has dll version 11.0.0.0 and other dont. so what is the good thing...need to change reference accordingly??

1 solution

Just add the dll from your machine into the bin folder on the server. Then it will work.
 
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