首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用具有不同架构的2个.RDLC报告

使用具有不同架构的2个.RDLC报告
EN

Stack Overflow用户
提问于 2016-04-14 10:11:44
回答 1查看 153关注 0票数 0

我有个问题,我不知道怎么解决。

我有两个.rdlc报告,它们有两个不同的模式:

第一:http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition

第二:http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition

要运行第一次报告,我需要在版本Microsoft.ReportViewer.Comon.dll Microsoft.ReportViewer.ProcessingObjectModel.dll Microsoft.ReportViewer.WinForms.dll中使用8.0.0.0

但是当我试图运行第二份报告时,我发现了错误:

详细信息:报表定义的目标名称空间“http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition”无效,无法升级。

因此,我需要.dll10.0.0.0版本,但是当我将版本从8.0.0.0更改为10.0.0.0时,第一次报告停止工作,因为它需要在版本8.0.0.0中使用Microsoft.ReportViewer.WinForms

我试着补充:

代码语言:javascript
复制
   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.ReportViewer.WinForms" publicKeyToken="89845dcd8080cc91" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  </dependentAssembly>
</assemblyBinding>

在配置文件中,但是thin不更改任何内容。

有没有办法在一个程序中运行2份此报告?

EN

回答 1

Stack Overflow用户

发布于 2016-04-14 12:49:10

我使用不同的assemblyBinding部分,并且使用ReportViewer 2010显示一个旧的2005年rdlc文件没有问题。

代码语言:javascript
复制
<?xml version="1.0"?>
<configuration>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.ReportViewer.ProcessingObjectModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.ReportViewer.Common" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.ReportViewer.WinForms" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
            </dependentAssembly>
        </assemblyBinding>      
    </runtime>
</configuration>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36620018

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档