<bdo id='b49yQ'></bdo><ul id='b49yQ'></ul>

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

    <tfoot id='b49yQ'></tfoot>

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

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

      IBM.Data.DB2.Core 在 azure 函数应用程序中引发异常

      IBM.Data.DB2.Core throws exception in azure function app(IBM.Data.DB2.Core 在 azure 函数应用程序中引发异常)
      <legend id='PQgBF'><style id='PQgBF'><dir id='PQgBF'><q id='PQgBF'></q></dir></style></legend>
          <i id='PQgBF'><tr id='PQgBF'><dt id='PQgBF'><q id='PQgBF'><span id='PQgBF'><b id='PQgBF'><form id='PQgBF'><ins id='PQgBF'></ins><ul id='PQgBF'></ul><sub id='PQgBF'></sub></form><legend id='PQgBF'></legend><bdo id='PQgBF'><pre id='PQgBF'><center id='PQgBF'></center></pre></bdo></b><th id='PQgBF'></th></span></q></dt></tr></i><div id='PQgBF'><tfoot id='PQgBF'></tfoot><dl id='PQgBF'><fieldset id='PQgBF'></fieldset></dl></div>
          1. <small id='PQgBF'></small><noframes id='PQgBF'>

            <tfoot id='PQgBF'></tfoot>
              <tbody id='PQgBF'></tbody>
              <bdo id='PQgBF'></bdo><ul id='PQgBF'></ul>
              • 本文介绍了IBM.Data.DB2.Core 在 azure 函数应用程序中引发异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用 nuget 包 IBM.Data.DB2.Core 版本 1.3.0.100 dll 将来自 Azure 函数的 DB2 数据库与 AzureFunctionsVersion V2 连接起来.应用程序构建成功.

                I'm using nuget package IBM.Data.DB2.Core version 1.3.0.100 dll to connect DB2 database from Azure functions with AzureFunctionsVersion V2. Application builds successfully.

                当我运行应用程序并使用 Postman 访问它时,我得到了异常:

                When I run the application and hit it with Postman I get the exception:

                System.Private.CoreLib:执行功能时出现异常:Personal-GetAgencyDownload.AgencyDownload:无法加载文件或程序集IBM.Data.DB2.Core,版本=1.2.2.201,文化=中性,PublicKeyToken=7c307b91aa13d208".无法找到或加载特定文件.(来自 HRESULT 的异常:0x80131621).System.Private.CoreLib:无法加载文件或程序集IBM.Data.DB2.Core, Version=1.2.2.201, Culture=neutral, PublicKeyToken=7c307b91aa13d208".

                System.Private.CoreLib: Exception while executing function: Personal-GetAgencyDownload. AgencyDownload: Could not load file or assembly 'IBM.Data.DB2.Core, Version=1.2.2.201, Culture=neutral, PublicKeyToken=7c307b91aa13d208'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621). System.Private.CoreLib: Could not load file or assembly 'IBM.Data.DB2.Core, Version=1.2.2.201, Culture=neutral, PublicKeyToken=7c307b91aa13d208'.

                我看到 1.3.0.100 包,没有其他包.为什么它在运行时寻找1.1.1.201?

                I see the 1.3.0.100 package, there isn't any other package. Why is it looking for 1.1.1.201 in runtime?

                推荐答案

                知道这有点晚了,但以防万一其他人在使用最新版本的 IBM.Data.DB2.Core(版本 3.1.0.300 在写作时间)对我来说,这是由于 Azure 功能平台默认为 32 位,而 IBM dll(或其依赖项之一)需要 64 位.将平台设置更改为 64 位可解决此错误.您可以在配置下找到设置>azure 门户中的常规设置.

                Know this is a little late, but just in case others have this issue with the latest version of IBM.Data.DB2.Core (version 3.1.0.300 at time of writing) for me it was due to the Azure function platform defaulting to 32bit, and the IBM dll (or one of its dependencies) required 64bit. Changing the platform setting to 64 bit resolved this error. You can find the setting under configuration > general settings in the azure portal.

                这篇关于IBM.Data.DB2.Core 在 azure 函数应用程序中引发异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                C# namespace alias - what#39;s the point?(C# 命名空间别名 - 有什么意义?)
                Using Xpath With Default Namespace in C#(在 C# 中使用具有默认命名空间的 Xpath)
                IBM.Data.DB2.Core connection problems(IBM.Data.DB2.Core 连接问题)
                Generating an EDMX from a DB2 Database(从 DB2 数据库生成 EDMX)
                Datetime field overflow with IBM Data Server Client v9.7fp5(IBM Data Server Client v9.7fp5 的日期时间字段溢出)
                Using entity Framework with .NET Core and DB2(将实体框架与 .NET Core 和 DB2 结合使用)
                  <tbody id='Wuroy'></tbody>
                <tfoot id='Wuroy'></tfoot>

                1. <small id='Wuroy'></small><noframes id='Wuroy'>

                  1. <legend id='Wuroy'><style id='Wuroy'><dir id='Wuroy'><q id='Wuroy'></q></dir></style></legend>
                    <i id='Wuroy'><tr id='Wuroy'><dt id='Wuroy'><q id='Wuroy'><span id='Wuroy'><b id='Wuroy'><form id='Wuroy'><ins id='Wuroy'></ins><ul id='Wuroy'></ul><sub id='Wuroy'></sub></form><legend id='Wuroy'></legend><bdo id='Wuroy'><pre id='Wuroy'><center id='Wuroy'></center></pre></bdo></b><th id='Wuroy'></th></span></q></dt></tr></i><div id='Wuroy'><tfoot id='Wuroy'></tfoot><dl id='Wuroy'><fieldset id='Wuroy'></fieldset></dl></div>
                        <bdo id='Wuroy'></bdo><ul id='Wuroy'></ul>