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