久久久久久久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 字節(jié))

        <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 字節(jié)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                限時(shí)送ChatGPT賬號(hào)..

                我將我的應(yīng)用程序從 .NET Core 3.1 更新到 .NET 5,但現(xiàn)在我無(wú)法打開(kāi)到我的 SQL Server 數(shù)據(jù)庫(kù)的連接.最里面的異常錯(cuò)誤信息是

                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 字節(jié).

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

                頂級(jí)錯(cuò)誤信息是

                已成功與服務(wù)器建立連接,但在登錄前握手期間發(fā)生錯(cuò)誤.(提供者:SSL 提供者,錯(cuò)誤: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 的版本,我只更新了基礎(chǔ)鏡像,從 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

                還有什么我應(yīng)該做的嗎?

                Is there anything I'm also supposed to do?

                編輯 1:
                我發(fā)現(xiàn) 這篇文章 似乎與我正在經(jīng)歷的事情密切相關(guān).但是在將我的 CipherString 更改為建議的值后,我對(duì)錯(cuò)誤沒(méi)有任何改變.一樣.也許有一個(gè) 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 建議的操作是通過(guò)升級(jí)您的 SQL Server 以支持 TLS v1.2 來(lái)提高安全性

                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 支持

                但是,如果您無(wú)法升級(jí)您的 SQL Server 以支持 TLS v1.2,您可以影響可用的密碼套件,以通過(guò)編輯 /etc/ssl/openssl 來(lái)實(shí)現(xiàn)協(xié)商的客戶端協(xié)議的降級(jí).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.

                因?yàn)?Alpine 容器是裸機(jī),請(qǐng)先安裝您最喜歡的編輯器,例如:

                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 以將以下行放在文件的開(kāi)頭:

                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 的進(jìn)程.您可以使用以下命令在更改前后測(cè)試連接性:

                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
                

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

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

                相關(guān)文檔推薦

                Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫(xiě) SQL 查詢的情況下找出數(shù)據(jù)庫(kù)列表和 SQL Server 實(shí)例使用的空間嗎?) - IT屋-程序員軟件開(kāi)發(fā)
                How to create a login to a SQL Server instance?(如何創(chuàng)建對(duì) SQL Server 實(shí)例的登錄?)
                How to know the version and edition of SQL Server through registry search(如何通過(guò)注冊(cè)表搜索知道SQL Server的版本和版本)
                Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會(huì)出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯(cuò)誤?使用 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 應(yīng)用程序設(shè)計(jì)——將文檔從 SQL Server 移動(dòng)到文件存儲(chǔ))
                  <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'>

                        • 主站蜘蛛池模板: 精品国产一区二区在线 | www.久久久久久久久久久 | 亚洲人成在线播放 | www.国产精| a级免费视频 | 国产毛片av | 成人一区av偷拍 | 国产午夜精品一区二区三区嫩草 | 国产精品一区久久久 | 国产日韩欧美激情 | 免费高潮视频95在线观看网站 | 欧美男人天堂 | 毛片一级片 | 欧美日韩在线视频一区二区 | 91精品国产高清一区二区三区 | 青青草原综合久久大伊人精品 | 免费人成激情视频在线观看冫 | 国产成人精品一区二区三区四区 | 久久久久九九九女人毛片 | 成人在线视频免费看 | 免费视频99 | 国产在线精品免费 | 欧美1—12sexvideos | 91福利网| 国产99视频精品免费播放照片 | 欧洲精品在线观看 | 久久久噜噜噜久久中文字幕色伊伊 | 亚洲成av人片在线观看无码 | 91一区二区 | 国产精品日韩在线观看 | 日韩欧美三级电影 | 999久久久| 人人九九精 | 成人免费视频一区二区 | 一区二区三区四区日韩 | 午夜精品久久久久久不卡欧美一级 | 欧美在线a | 在线日韩欧美 | 天天插天天操 | 国产精品色一区二区三区 | 亚洲国产精品自拍 |