I am working over Asp.Net MVC application. I am using report viewer. Everything was working good at development computer, when I uploaded this to my shared hosting, it started to throw this error.
I googled it, but I didn't found specific question to 'DataVisualization' dll, either I found similar questions like could not load ReportViewer.Webform etc.
Because I was getting error on 'DataVisualization.dll' file, so none of the solution worked for me.
Go to web config and delete or comment the following tag.
<dependentAssembly>
<assemblyIdentity name="Microsoft.ReportViewer.DataVisualization" publicKeyToken="89845DCD8080CC91" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.