![](/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.