2022年3月4日 星期五

[研究][ASP.NET]provider: SSL Provider, error: 32 - SSL 加密或解密作業的封包太大

[研究][ASP.NET]provider: SSL Provider, error: 32 - SSL 加密或解密作業的封包太大

2022-03-04

環境:Visual Studio 2022 + ASP.NET + C# + WebForm + Web Application + Microsoft SQL Server 2019 Standard

System.ComponentModel.Win32Exception: 不支援這個要求。

System.Web.HttpUnhandledException (0x80004005): 已發生類型 'System.Web.HttpUnhandledException' 的例外狀況。 ---> System.Data.SqlClient.SqlException (0x80131904): 與伺服器的連接已成功建立,但在登入程序時發生錯誤。 (provider: SSL Provider, error: 32 - SSL 加密或解密作業的封包太大) ---> System.ComponentModel.Win32Exception (0x80004005): 不支援這個要求。

解決:

Web.Config 中資料庫連線字串的 Persist Security Info=True; 拿掉。

(完)

沒有留言:

張貼留言