![](/img/trans.png)
[英]Can't connect to SQL Server with Windows authentication with my ASP.NET Core application (IIS server)
[英]i am trying to deploy ASP.NET CORE API Version 3.1 to local IIS Hostiing but can not connect to SQL Server
I have deployed asp .net core api app on local IIS Manger when i call action that need to retrieve data from sql database does not work,i opned C:\inetpub\logs\LogFiles\W3SVC3 found 404 not found error, i found another error在我的日志中,用户“IIS APPPOOL\service”的登录失败,但是当我调用另一个返回本地数据的操作时,它工作正常这里是我的连接字符串
"ConnectionStrings": {
"ERPConnection": "server=.; user Id=ssa;password=12345678;database=dbname;trusted_connection=true;MultipleActiveResultSets=true"
},
您的 SQL 服务器实例托管在哪里? 如果它的 localhost 尝试使用完整的本地主机域名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.