1.连接Sql Server
System.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)
解决方法:修改Dockerfile
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base 改成:
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-bionic AS base
本文介绍如何通过修改Dockerfile中基础镜像,从mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim更改为mcr.microsoft.com/dotnet/core/aspnet:3.1-bionic,来解决在连接SQL Server时出现的pre-login握手错误,提供了解决方案。
1387

被折叠的 条评论
为什么被折叠?



