• <small id='P73Zh'></small><noframes id='P73Zh'>

    <legend id='P73Zh'><style id='P73Zh'><dir id='P73Zh'><q id='P73Zh'></q></dir></style></legend>

        <i id='P73Zh'><tr id='P73Zh'><dt id='P73Zh'><q id='P73Zh'><span id='P73Zh'><b id='P73Zh'><form id='P73Zh'><ins id='P73Zh'></ins><ul id='P73Zh'></ul><sub id='P73Zh'></sub></form><legend id='P73Zh'></legend><bdo id='P73Zh'><pre id='P73Zh'><center id='P73Zh'></center></pre></bdo></b><th id='P73Zh'></th></span></q></dt></tr></i><div id='P73Zh'><tfoot id='P73Zh'></tfoot><dl id='P73Zh'><fieldset id='P73Zh'></fieldset></dl></div>
          <bdo id='P73Zh'></bdo><ul id='P73Zh'></ul>
      1. <tfoot id='P73Zh'></tfoot>
      2. 在 CrystalReport 中分配 DataSource 时发生 FileNotFoundException

        FileNotFoundException occured while assign DataSource in CrystalReport(在 CrystalReport 中分配 DataSource 时发生 FileNotFoundException)
          • <small id='0fiUu'></small><noframes id='0fiUu'>

              <tfoot id='0fiUu'></tfoot>
                <bdo id='0fiUu'></bdo><ul id='0fiUu'></ul>

              • <legend id='0fiUu'><style id='0fiUu'><dir id='0fiUu'><q id='0fiUu'></q></dir></style></legend>
                  <tbody id='0fiUu'></tbody>

                • <i id='0fiUu'><tr id='0fiUu'><dt id='0fiUu'><q id='0fiUu'><span id='0fiUu'><b id='0fiUu'><form id='0fiUu'><ins id='0fiUu'></ins><ul id='0fiUu'></ul><sub id='0fiUu'></sub></form><legend id='0fiUu'></legend><bdo id='0fiUu'><pre id='0fiUu'><center id='0fiUu'></center></pre></bdo></b><th id='0fiUu'></th></span></q></dt></tr></i><div id='0fiUu'><tfoot id='0fiUu'></tfoot><dl id='0fiUu'><fieldset id='0fiUu'></fieldset></dl></div>
                • 本文介绍了在 CrystalReport 中分配 DataSource 时发生 FileNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在报告中分配数据源时抛出 System.IO.FileNotFoundException execption.我正在使用 Visual Studio 2013、C# 4.5、WinForm 应用程序.我已经为 Visual Studio 13 安装了 Crystal Report.

                  System.IO.FileNotFoundException execption thrown while assigning data source in report. I am using visual studio 2013, C# 4.5, WinForm application. I have installed crystal report for visual studio 13.

                  这是代码

                      DataSet ds = new DataSet();
                      ds.Tables.Add(new DataTable("administration_CashDeskManager_Reports_ReportDataBusinessObject"));
                      ds.Tables.Add(new DataTable("administration_CashDeskManager_Reports_ReportDataDetailBusinessObject"));
                  
                      Reports.CrystalReport.rptCashDeskTransactionLog Report = new Reports.CrystalReport.rptCashDeskTransactionLog();
                      Report.SetDataSource(ds);
                      crViewer.ReportSource = Report;
                  

                  Report.SetDataSource(ds) 命令引发错误.

                  我认为这个错误是特定于版本的错误.

                  I think this error is version specific error.

                  异常详情:

                  System.IO.FileNotFoundException"类型的未处理异常发生在 mscorlib.dll 中

                  An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

                  附加信息:无法加载文件或程序集'file:///C:Program FilesSAP BusinessObjectsCrystal Reports for .NET框架 4.0CommonSAP BusinessObjects Enterprise XI4.0win32_x86dotnet1crdb_adoplus.dll' 或其依赖项之一.系统找不到指定的文件.

                  Additional information: Could not load file or assembly 'file:///C:Program FilesSAP BusinessObjectsCrystal Reports for .NET Framework 4.0CommonSAP BusinessObjects Enterprise XI 4.0win32_x86dotnet1crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

                  推荐答案

                  在您的配置中添加以下部分后重试:

                  Try again after adding below section in your config:

                  <startup uselegacyv2runtimeactivationpolicy="true">
                    <supportedruntime version="v4.0" />
                  </startup>
                  

                  这篇关于在 CrystalReport 中分配 DataSource 时发生 FileNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding DbContextOptions in Startup.cs not registering data store(在 Startup.cs 中添加 DbContextOptions 未注册数据存储)
                  Migrate html helpers to ASP.NET Core(将 html 帮助程序迁移到 ASP.NET Core)
                  Conditional validation in MVC.NET Core (RequiredIf)(MVC.NET Core 中的条件验证(RequiredIf))
                  Is it possible to serve static files from outside the wwwroot folder?(是否可以从 wwwroot 文件夹外部提供静态文件?)
                  Working with multiple resultset in .net core(在 .net 核心中使用多个结果集)
                  Where all types for http headers gone in ASP.NET 5?(ASP.NET 5 中所有类型的 http 标头都去了哪里?)

                  <tfoot id='BPZG9'></tfoot>

                    • <i id='BPZG9'><tr id='BPZG9'><dt id='BPZG9'><q id='BPZG9'><span id='BPZG9'><b id='BPZG9'><form id='BPZG9'><ins id='BPZG9'></ins><ul id='BPZG9'></ul><sub id='BPZG9'></sub></form><legend id='BPZG9'></legend><bdo id='BPZG9'><pre id='BPZG9'><center id='BPZG9'></center></pre></bdo></b><th id='BPZG9'></th></span></q></dt></tr></i><div id='BPZG9'><tfoot id='BPZG9'></tfoot><dl id='BPZG9'><fieldset id='BPZG9'></fieldset></dl></div>
                        <bdo id='BPZG9'></bdo><ul id='BPZG9'></ul>

                        <small id='BPZG9'></small><noframes id='BPZG9'>

                        <legend id='BPZG9'><style id='BPZG9'><dir id='BPZG9'><q id='BPZG9'></q></dir></style></legend>

                          <tbody id='BPZG9'></tbody>