运行的更新已发布的应用后,我得到一个错误:装配冲突Microsoft.ReportViewer.WebForms
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
源错误:
Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/XXX/Pages/MainMaster.Master" AutoEventWireup="true"
Line 2: CodeBehind="Report.aspx.cs" Inherits="xxx.yy.cc.tt.Pages.Reports.Report" %><%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
我还没有更新,为10.0 - >它应该是9.0。它在web.config中是9,而在同一服务器上运行的其他应用程序是9.0。所以我想知道,从哪里可以得到该请求命令来搜索10.0版本?
当我使用Visual Studio 2012进行开发时,我认为它在一些阶段会自动错误地执行它。但是,因为我是初学者,我不知道要在哪里搜索“自动”修改的配置。 Web.config中的
复制粘贴:
<compilation debug="false" defaultLanguage="c#" targetFramework="4.0">
<assemblies>
<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
</compilation>
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
</httpHandlers>
而且它的怪异,如果我运行相同的版本我更新,它在我的本地机器它的工作原理。
在web.config中可能会指定几个地方。检入buildprovider部分和assembly部分中的编译部分。 – daustin
我使用构建脚本进行更新。我不把web.config复制到服务器。它在更新后开始出现此错误。所以我很确定它必须在别的地方。但检查.. - >不,我只指向9.0版本..:S –
请问你看看我的答案[无法加载文件或程序集'Microsoft.ReportViewer.Common,版本...](http: //stackoverflow.com/questions/22253607/could-not-load-file-or-assembly-microsoft-reportviewer-common-version-11-0-0-0/33670464#33670464)? –