繁体   English   中英

我正在尝试将 ASP.NET CORE API 版本 3.1 部署到本地 IIS 托管但无法连接到 Z970BCACB288 的服务器

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM