在 Asp.net core 6 中连接到 SQL Server 的问题

问题描述 投票:0回答:0

我创建了一个 Asp.net 核心 mvc 应用程序,并在我的笔记本电脑上使用 SQL Server 2016 对其进行了测试,一切正常。发布项目并在服务器上移动发布的文件后,该页面没有出现。在服务器上安装了 SQL Server 2014。 IIS 上的错误是:“页面无法加载资源”。我的连接字符串是:“Server=server IP;Database=Archive;User Id=sa;Password=123;Integrated Security=False;MultipleActiveResultSets=true;Trust server certificate=True;”。 这个问题是因为 SQL Server 版本之间的差异吗? 谢谢。

任何建议将不胜感激。

sql-server asp.net-core asp.net-core-mvc database-connection
© www.soinside.com 2019 - 2024. All rights reserved.