简体   繁体   English

将我的asp.net MVC Web应用程序部署到IIS7后,无法将其连接到SQL Server

[英]Unable to connect my asp.net mvc web application to the sql server after deploying it to IIS7

I have an asp.net mvc web application, and it used to connect well to the sql server when running it from Visual studio (on debug mode) . 我有一个asp.net mvc Web应用程序,当从Visual Studio(在调试模式下)运行它时,它可以很好地连接到sql服务器。 but after i have deployed it to IIS 7 using windows authntication, i am getting the following error:- 但是使用Windows身份验证将其部署到IIS 7之后,出现以下错误:-

 Login failed for user '<ourDomainName>\<ourServerName>$'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user '<ourDomainName>\<ourServerName>$'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Can anyone adive , what is causing this error ? 谁能接受,这是什么原因导致此错误?

Thnaks 恶作剧

检查应用程序池标识。如果是这种情况,则应用程序池用户需要在Sql Server中具有适当的权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 IIS7 在 Web 服务器上部署 ASP.NET Webhooks - Deploying ASP.NET Webhooks on web server with IIS7 部署 asp.net web 应用程序 IIS7 后链接断开 - Broken link after deploying asp.net web application IIS7 ASP.NET 5 MVC:无法连接到 Web 服务器“IIS Express” - ASP.NET 5 MVC: unable to connect to web server 'IIS Express' 在IIS7中发布asp.net Web应用程序后无法登录 - Cannot login after I publish my asp.net web application in IIS7 在IIS服务器上部署ASP.NET MVC应用程序时出现问题 - Issue in deploying ASP.NET MVC Application on the IIS Server 在IIS7服务器中部署时的asp.net应用程序错误-找不到表0 - asp.net application while deploying in IIS7 server error - cannot find table 0 将ASP MVC应用程序部署到IIS7时出现问题 - Problem deploying an ASP MVC application to IIS7 无法从IIS7中托管的ASP.Net Web应用使用Win Auth连接到数据库 - Unable to connect to database using Win Auth on from ASP.Net web app hosted in IIS7 ASP.NET Web服务无法与IIS7中的数据库连接 - ASP.NET web service does not connect with database in IIS7 无法连接到 web 服务器 IIS Express - ASP.NET CORE - Unable to connect to web server IIS Express - ASP.NET CORE
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM