久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <tfoot id='FCtQ9'></tfoot>

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

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

      2. ODP.Net 驅動程序在 .NET Core 5.0 上拋出異常

        ODP.Net Driver Throwing Exception on .NET Core 5.0(ODP.Net 驅動程序在 .NET Core 5.0 上拋出異常)
          <bdo id='Kw9Ya'></bdo><ul id='Kw9Ya'></ul>
        • <tfoot id='Kw9Ya'></tfoot>
                <tbody id='Kw9Ya'></tbody>

            • <i id='Kw9Ya'><tr id='Kw9Ya'><dt id='Kw9Ya'><q id='Kw9Ya'><span id='Kw9Ya'><b id='Kw9Ya'><form id='Kw9Ya'><ins id='Kw9Ya'></ins><ul id='Kw9Ya'></ul><sub id='Kw9Ya'></sub></form><legend id='Kw9Ya'></legend><bdo id='Kw9Ya'><pre id='Kw9Ya'><center id='Kw9Ya'></center></pre></bdo></b><th id='Kw9Ya'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Kw9Ya'><tfoot id='Kw9Ya'></tfoot><dl id='Kw9Ya'><fieldset id='Kw9Ya'></fieldset></dl></div>
            • <small id='Kw9Ya'></small><noframes id='Kw9Ya'>

                  <legend id='Kw9Ya'><style id='Kw9Ya'><dir id='Kw9Ya'><q id='Kw9Ya'></q></dir></style></legend>
                  本文介紹了ODP.Net 驅動程序在 .NET Core 5.0 上拋出異常的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在嘗試將我的數據庫應用程序從 .NET Core 3.1 移植到 .NET Core 5.0.

                  I am trying to port my database application from .NET Core 3.1 to .NET Core 5.0.

                  運行以下代碼時,

                          public async Task<List<T>> LoadDataFromSQL<T, U>(string sql, U parameters, string connectionStringName)
                          {
                              using (IDbConnection connection = new OracleConnection(await GetConnectionString()))
                              {
                                  var rows = await connection.QueryAsync<T>(sql,
                                                                            parameters,
                                                                            commandType: CommandType.Text);
                                  return rows.ToList();
                              }
                          } 
                  

                  我收到此異常:

                  "System.Reflection.TargetInvocationException: 調用的目標已拋出異常.\r\n --->System.TypeInitializationException: 'OracleInternal.ServiceObjects.OracleConnectionImpl' 的類型初始值設定項引發異常.\r\n --->System.TypeInitializationException: 'Oracle.ManagedDataAccess.Types.TimeStamp' 的類型初始值設定項引發異常.\r\n --->System.NotSupportedException:此應用程序中禁用了 BinaryFormatter 序列化和反序列化.有關詳細信息,請參閱 https://aka.ms/binaryformatter.\r\n 在 OracleInternal.Common.OracleTimeZone.GetInstance()\r\n 在 Oracle.ManagedDataAccess.Types.TimeStamp..cctor()\r\n --- 內部異常堆棧跟蹤結束 ---\r\n 在 Oracle.ManagedDataAccess.Types.TimeStamp.InitializelatestTZversion()\r\n 在 OracleInternal.ServiceObjects.OracleConnectionImpl..cctor()\r\n --- 內部異常堆棧跟蹤結束 ---\r\n 在 OracleInternal.ServiceObjects.OracleConnectionImpl..ctor()\r\n --- 內部結束,除了離子堆棧跟蹤 ---\r\n"

                  "System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.\r\n ---> System.TypeInitializationException: The type initializer for 'OracleInternal.ServiceObjects.OracleConnectionImpl' threw an exception.\r\n ---> System.TypeInitializationException: The type initializer for 'Oracle.ManagedDataAccess.Types.TimeStamp' threw an exception.\r\n ---> System.NotSupportedException: BinaryFormatter serialization and deserialization are disabled within this application. See https://aka.ms/binaryformatter for more information.\r\n at OracleInternal.Common.OracleTimeZone.GetInstance()\r\n at Oracle.ManagedDataAccess.Types.TimeStamp..cctor()\r\n --- End of inner exception stack trace ---\r\n at Oracle.ManagedDataAccess.Types.TimeStamp.InitializelatestTZversion()\r\n at OracleInternal.ServiceObjects.OracleConnectionImpl..cctor()\r\n --- End of inner exception stack trace ---\r\n at OracleInternal.ServiceObjects.OracleConnectionImpl..ctor()\r\n --- End of inner except ion stack trace ---\r\n"

                  是否可以通過我的應用程序解決此問題?

                  Is is possible to work around this from my application?

                  我使用的是最新版本的 Oracle.ManagedDataAccess.Core 2.19.91,發布于 2020 年 10 月 22 日.另外,我使用的是 Dapper 2.0.35.

                  I am using the latest version of Oracle.ManagedDataAccess.Core 2.19.91, release on 10/22/2020. Also, I am using Dapper 2.0.35.

                  推薦答案

                  我發現 Oracle 正在為此進行修復,該修復應該很快就會推出.

                  I discovered that Oracle is working on a fix for this which should be available soon.

                  與此同時,如果有人遇到此問題,有一個解決方法.

                  In the meantime, in case anyone runs into this issue there is a workaround.

                  在您的項目文件中,您可以將 XML 語句添加到 EnableUnsafeBinaryFormatterSerialization.

                  In your project file, you can add the XML statement to EnableUnsafeBinaryFormatterSerialization.

                    <PropertyGroup>
                      <TargetFramework>net5.0</TargetFramework>
                      <EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
                    </PropertyGroup>
                  

                  這篇關于ODP.Net 驅動程序在 .NET Core 5.0 上拋出異常的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Is there a way to get information about a server using SQL(有沒有辦法使用 SQL 獲取有關服務器的信息)
                  How to get first element by XPath in Oracle(如何在 Oracle 中通過 XPath 獲取第一個元素)
                  Oracle XMLTable- fetching column from parent node(Oracle XMLTable-從父節點獲取列)
                  How to extract element-path from XMLType Node?(如何從 XMLType 節點中提取元素路徑?)
                  Add attribute to xmltype with value taken from sequence(使用取自序列的值將屬性添加到 xmltype)
                  How to enforce xmlforest creat elements even if expression value is null?(即使表達式值為空,如何強制執行 xmlforest creat 元素?)

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

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

                    1. <tfoot id='z5ISN'></tfoot>
                    2. <i id='z5ISN'><tr id='z5ISN'><dt id='z5ISN'><q id='z5ISN'><span id='z5ISN'><b id='z5ISN'><form id='z5ISN'><ins id='z5ISN'></ins><ul id='z5ISN'></ul><sub id='z5ISN'></sub></form><legend id='z5ISN'></legend><bdo id='z5ISN'><pre id='z5ISN'><center id='z5ISN'></center></pre></bdo></b><th id='z5ISN'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='z5ISN'><tfoot id='z5ISN'></tfoot><dl id='z5ISN'><fieldset id='z5ISN'></fieldset></dl></div>
                        • <small id='z5ISN'></small><noframes id='z5ISN'>

                              <tbody id='z5ISN'></tbody>
                          1. 主站蜘蛛池模板: 久久av红桃一区二区小说 | 国产精品国产成人国产三级 | 91久久久久久久久 | 夜夜骑天天干 | 国产成人精品一区二区三区在线观看 | 婷婷激情综合网 | 久久福利社 | 日韩午夜在线观看 | 欧美综合一区 | 伊人综合影院 | 免费黄色小网站 | 亚洲激情在线视频 | 91精品一区二区 | 四虎黄色片 | 一区二区在线看 | 日韩一区二区在线视频 | 国产一区二区日韩 | 日本国产在线观看 | 亚洲九九夜夜 | 在线免费av网站 | 日韩免费高清 | 亚洲精品一区二三区不卡 | 国产日韩免费 | 999久久久精品 | 毛片网站在线观看 | 九九热精品在线观看 | 日韩成人精品一区二区 | 国产精品久久久久久中文字 | 欧美成人综合 | 国产色网站| 国产视频h | 九九天堂 | 日韩免费在线 | 99在线视频免费观看 | 在线观看91| 亚洲经典av | 天天色天天 | 欧美日批视频 | 欧美精品入口蜜桃 | 天天操夜夜爽 | 国产九九 |