Last post Dec 28, 2017 04:57 PM by Moodhi
Dec 17, 2017 04:53 PM|Moodhi|LINK
My site which is working fine on my machine (SQL 2014 and VS2015) but when launched on the shared web hosting server its giving an error -
Could not load file or assembly 'Microsoft.reportviewer.common' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) .
All of my Reporter Writer DLLs are the "bin" directory.
and the web.config contains:
<compilation debug="true" targetFramework="4.5.1">
<add assembly="Microsoft.ReportViewer.WebForms, Version=18.104.22.168, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.Common, Version=22.214.171.124, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.Build.Framework, Version=126.96.36.199, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Mobile, Version=188.8.131.52, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Web hosting server is limited to SQL server 2016, so I changed SQL server on my machine from 2014 to 2016 and still works fine but NOT on the shared web hosting server !
I would appreciate if someone can assist please? Thanks.
Dec 18, 2017 12:23 AM|oned_gk|LINK
I hope it can help
Dec 18, 2017 06:34 AM|zxj|LINK
First of all check if you have Microsoft.ReportViewer.WebForms (v. 184.108.40.206) and Microsoft.ReportViewer.Common (v. 220.127.116.11) in GAC on your server. If they are missing then set the CopyLocal property to true for both libraries in your project.
If it still does not work then you should try to setup ReportViewer on your server.
Dec 18, 2017 08:00 AM|Deepak Panchal|LINK
please check whether Report Viewer is installed on the server or not.
if it is not installed then try to install it.
if it is installed then try to repair it may work for you.
if then also issue persist then try to reinstalling it may solve your issue.
let us know about your testing result.
we will try to provide you further suggestions , if needed.
Dec 21, 2017 08:54 AM|Moodhi|LINK
Hi thanks for the reply.
Initially I was using SQL 2014 and MS viewer version 11 but on the remote server I was focred to use SQL 2016. Therefore, I upgraded my machine and changed to SQL2016 and I also installed version 12 of MS Viewer, all works fine on my machine but NOT on the
remote server !
As I am using shared hosting I do NOT have direct access to do anything on the server. The hosting guys keep saying that the version of my MS Viewer DLL in the bin directory is incorrect.
Please note, I copied all my stuff using FTP file transfer client rather than using VS2015 publish feature. Is there a difference in copying files and publishing via VS2015?
Dec 28, 2017 04:57 PM|Moodhi|LINK
As no one replied to my query, here's an update.
Web hosting team also keep saying that I need to publish my site but when I tried publishing I kept getting error that web-deploy is not installed on the server. I informed them but they still saying that I need to check my user credential etc.
Guess what? I did absolutely nothing and its all working. Trust me I did not do anything apart from simply copying my site via FTP client to the hosting server and now after few days it's all working. I can only assume that the web hosting
team realised and fixed the issue???