=== Pre-bind state information === LOG: DisplayName = Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 (Fully-specified) LOG: Appbase = file:///D:/KYPJXT/Web/ LOG: Initial PrivatePath = D:\KYPJXT\Web\bin Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: D:\KYPJXT\Web\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/bf2e1a56/53f95d2e/Microsoft.ReportViewer.Common.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/bf2e1a56/53f95d2e/Microsoft.ReportViewer.Common/Microsoft.ReportViewer.Common.DLL. LOG: Attempting download of new URL file:///D:/KYPJXT/Web/bin/Microsoft.ReportViewer.Common.DLL. WRN: Comparing the assembly name resulted in the mismatch: Major Version ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
网上的解决办法都不起作用,到微软网站下载最新的ReportViewer报表版本,地址如下:
https://www.microsoft.com/zh-cn/download/details.aspx?id=45496