2016-04-14 4 views
0

私には問題があり、解決するためにはわかりません。異なるスキーマを使用して2つの.RDLCレポートを使用

私は2つの異なるスキーマを持つ2 .rdlcレポートがあります:私は Microsoft.ReportViewer.Comon.dll Microsoft.ReportViewer.ProcessingObjectModel.dll Microsoft.ReportViewer.WinForms.dll を使用する必要がある最初のレポートを実行するには http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition

まず: http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition

セカンドをバージョン8.0.0.0

が、私は目のレポートを実行しようとすると、私はエラーました:

詳細:レポート定義をアップグレードすることはできません、無効なターゲット名前空間「http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition」を有します。

だから私は、バージョン10.0.0.0.dllを必要とするが、それは、バージョン8.0.0.0Microsoft.ReportViewer.WinFormsを必要とするので、私は働いて8.0.0.010.0.0.0に最初のレポートストップからのバージョンを変更したとき。

私が追加しよう:

設定ファイルで
<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> 

が、薄い何も変更しないでください。

1つのプログラムでこのレポートを2回実行する方法はありますか?

私は別の assemblyBindingセクションを使用して、私は ReportViewer 2010を使用して古い2005 rdlcファイルの表示も問題ありません

答えて

0

<?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> 
関連する問題