0

After moving my MVC 4 applicaiton on production the IIS is using

domain/machinename$ 

to access the SQL database on a different server. The SQL server is configured to accept connection from

mydomain/myuser

I'm wondering how to fix this and make it pass the correct credentials, in my connection string I have

Integrated Security=SSPI

and I deployed as my user

4

2 回答 2

3

IIS 使用应用程序池的身份登录到 SQL 服务器,因为您具有集成安全设置。将应用程序池的身份更改为以域/用户身份运行,或在 SQL 的连接字符串中指定登录凭据。

具有指定凭据的 SQL 连接字符串

Server=myServerName\myInstanceName;Database=myDataBase;User Id=myUsername;
Password=myPassword;
于 2013-09-05T15:35:54.137 回答
1

我使用自定义帐户作为身份并且它有效

于 2013-09-05T15:55:00.747 回答