从ws将凭据传递给IIS

时间:2016-10-03 20:09:04

标签: sql-server web-services iis

在我们的应用程序中,我们使用在IIS 7上部署的WS。要连接到数据库,我们将conn.string添加到Web Config:

Client.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation
Client.ChannelFactory.Credentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredential

我需要使用Integrated Sec。能够看到谁在DB中进行了更新。因此,我必须传递用于连接到数据库的Windows用户凭据IIS。我尝试在ServiceModel.Client中修改我的方法:

login failed for IIS/AppPOOL/mysite

我玩过IIS属性 - 但它给了我错误:{"type":"RoutingError","message":"String \u0027system/versions/old-versions\u0027 does not match any of mapped routes","file":"/home/time/public_html/activecollab/5.11.0/angie/classes/router/Router.class.php","line":563,"trace":null,"previous":null,"request_string":"system/versions/old-versions"}

0 个答案:

没有答案