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

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

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

      .NET 5 + Microsoft.Data.SqlClient - 從傳輸流中收到意外

      .NET 5 + Microsoft.Data.SqlClient - Received an unexpected EOF or 0 bytes from the transport stream(.NET 5 + Microsoft.Data.SqlClient - 從傳輸流中收到意外的 EOF 或 0 字節)

        <bdo id='IVc5G'></bdo><ul id='IVc5G'></ul>
          <tbody id='IVc5G'></tbody>

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

                <tfoot id='IVc5G'></tfoot>
                本文介紹了.NET 5 + Microsoft.Data.SqlClient - 從傳輸流中收到意外的 EOF 或 0 字節的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我將我的應用程序從 .NET Core 3.1 更新到 .NET 5,但現在我無法打開到我的 SQL Server 數據庫的連接.最里面的異常錯誤信息是

                I updated my app from .NET Core 3.1 to .NET 5 and now I cant open a connection to my SQL Server database. The innermost exception error message is

                從傳輸流中收到意外的 EOF 或 0 字節.

                Received an unexpected EOF or 0 bytes from the transport stream.

                頂級錯誤信息是

                已成功與服務器建立連接,但在登錄前握手期間發生錯誤.(提供者:SSL 提供者,錯誤:31 - 加密(ssl/tls)握手失敗)

                A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 - Encryption(ssl/tls) handshake failed)

                除了 .NET 5 的版本,我只更新了基礎鏡像,從 3.1-bionic5.0.3-focal-amd64

                Other than the version of the .NET 5, I only updated the base image, from 3.1-bionic to 5.0.3-focal-amd64

                還有什么我應該做的嗎?

                Is there anything I'm also supposed to do?

                編輯 1:
                我發現 這篇文章 似乎與我正在經歷的事情密切相關.但是在將我的 CipherString 更改為建議的值后,我對錯誤沒有任何改變.一樣.也許有一個 CipherString = ANY?

                EDIT 1:
                I found this article that seems closely related to what im going by. But after altering my CipherString to the values suggested, I got no change on the error. Same thing. Perhaps there's a CipherString = ANY?

                推薦答案

                注意

                Microsoft 建議的操作是通過升級您的 SQL Server 以支持 TLS v1.2 來提高安全性

                The Microsoft-recommended action is to improve security by upgrading your SQL Servers to support TLS v1.2

                參考資料:

                • SqlClient 故障排除指南
                • 如何啟用 TLS 1.2
                • KB3135244 - Microsoft SQL Server 的 TLS 1.2 支持

                但是,如果您無法升級您的 SQL Server 以支持 TLS v1.2,您可以影響可用的密碼套件,以通過編輯 /etc/ssl/openssl 來實現協商的客戶端協議的降級.cnf 文件.

                If, however, you are unable to upgrade your SQL Server to support TLS v1.2 you are able to influence the available ciphersuites to effect a downgrade of the client protocols negotiated by editing the /etc/ssl/openssl.cnf file.

                因為 Alpine 容器是裸機,請先安裝您最喜歡的編輯器,例如:

                Because Alpine containers are bare bones, start by installing your favorite editor, e.g.:

                apt-get update
                apt-get install nano
                

                編輯您的 /etc/ssl/openssl.cnf 以將以下行放在文件的開頭:

                Edit your /etc/ssl/openssl.cnf to place the following line at the beginning of the file:

                openssl_conf = default_conf
                

                文件末尾的以下幾行:

                ########## Override default settings to enable TLS v1.0 and 1.1 ##########
                
                [ default_conf ]
                ssl_conf = ssl_sect
                
                [ssl_sect]
                system_default = system_default_sect
                
                [system_default_sect]
                CipherString = DEFAULT:@SECLEVEL=1
                #It really should be:
                #CipherString = DEFAULT:@SECLEVEL=2
                

                這將影響容器中所有啟用 openssl 的進程.您可以使用以下命令在更改前后測試連接性:

                This will affect all openssl-enabled processes in the container. You can test connectivity before and after changes using the commands:

                # Test TLS v1.0 connectivity
                openssl s_client -host google.com -port 443 -tls1
                
                # Test TLS v1.1 connectivity
                openssl s_client -host google.com -port 443 -tls1_1
                

                這篇關于.NET 5 + Microsoft.Data.SqlClient - 從傳輸流中收到意外的 EOF 或 0 字節的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數據庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發
                How to create a login to a SQL Server instance?(如何創建對 SQL Server 實例的登錄?)
                How to know the version and edition of SQL Server through registry search(如何通過注冊表搜索知道SQL Server的版本和版本)
                Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會出現“數據類型轉換錯誤?使用 ExecuteNonQuery()?)
                How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)
                WinForms application design - moving documents from SQL Server to file storage(WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲)
                  <bdo id='FzVXQ'></bdo><ul id='FzVXQ'></ul>
                    <tfoot id='FzVXQ'></tfoot>

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

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

                        • 主站蜘蛛池模板: 国产色婷婷精品综合在线手机播放 | 日韩理论电影在线观看 | 成人福利网站 | 久久精品亚洲精品国产欧美 | 紧缚调教一区二区三区视频 | 97国产精品 | 美女视频h| 亚洲视频一区在线播放 | 国产精品久久7777777 | 国产精品欧美一区二区三区 | 亚洲夜射| 91www在线观看 | 亚洲天堂av在线 | 中文字幕av亚洲精品一部二部 | 亚洲人久久 | 自拍偷拍亚洲欧美 | www日本在线播放 | 亚洲va国产日韩欧美精品色婷婷 | 亚洲成人精品 | 天堂va在线| 亚洲欧美在线一区 | 成人免费大片黄在线播放 | 日韩视频一区二区三区 | 亚洲毛片在线观看 | 麻豆久久久 | 手机av免费在线 | 国产精品视频网 | 久久av一区二区三区 | 一区二区三区国产在线观看 | 毛片免费看| 久久精品久久久久久 | 欧美激情一区二区三区 | 99视频免费在线观看 | 高清不卡毛片 | 夜夜草 | 一二三四在线视频观看社区 | 一区二区三区精品 | 四虎影视一区二区 | 亚洲一区二区三区四区五区午夜 | 亚洲电影免费 | 老外几下就让我高潮了 |