久久久久久久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ì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

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

                我將我的應(yīng)用程序從 .NET Core 3.1 更新到 .NET 5,但現(xiàn)在我無法打開到我的 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ò)誤沒有任何改變.一樣.也許有一個(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 建議的操作是通過升級(jí)您的 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 支持

                但是,如果您無法升級(jí)您的 SQL Server 以支持 TLS v1.2,您可以影響可用的密碼套件,以通過編輯 /etc/ssl/openssl 來實(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 以將以下行放在文件的開頭:

                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)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(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?(我可以在不編寫 SQL 查詢的情況下找出數(shù)據(jù)庫(kù)列表和 SQL Server 實(shí)例使用的空間嗎?) - IT屋-程序員軟件開發(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(如何通過注冊(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'>

                        • 主站蜘蛛池模板: 91精品国产91久久久久久 | 欧美国产日韩一区二区三区 | 观看av | 午夜影院普通用户体验区 | 先锋资源站| 中文字幕日韩av | 黄色大片在线 | 国产在线不卡 | com.国产 | 欧美视频一区二区三区 | 天天久| 国产精品日韩欧美一区二区三区 | 日本一卡精品视频免费 | 亚洲一区二区三区免费观看 | 日日夜夜天天 | 国产剧情一区 | 欧美一区二区在线 | 日韩欧美一区二区三区免费观看 | 国产精品一区2区 | 成人高清网站 | 欧美专区在线 | 国产亚洲第一页 | 中文字幕视频在线免费 | 亚洲一区二区三区在线免费 | 欧美午夜在线 | 国产精品国产三级国产aⅴ无密码 | 精品国产乱码久久久久久蜜柚 | 亚洲成人午夜电影 | 国产精品久久久久久久一区探花 | 欧美午夜精品久久久久免费视 | 久久国产精品亚洲 | 久久三级av | 亚洲欧洲激情 | 国产精品一区二区av | 日本中文字幕日韩精品免费 | 免费一区二区 | 国产精品成人av | 9999国产精品欧美久久久久久 | 亚洲一二三区免费 | 欧美13videosex性极品 | 欧美一级黄带 |