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

本文解决在连接SqlServer时遇到的System.Data.SqlClient.SqlException错误,详细介绍了如何通过修改Dockerfile中的基础镜像来修复pre-login handshake期间出现的问题。
1273

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



