asp.net mvc 2 自定义服务帐户

发布于 2024-09-14 11:18:34 字数 573 浏览 2 评论 0原文

我正在尝试使用自定义服务帐户部署 ASP.NET MVC 2 Silverlight 应用程序。我执行了以下操作:

1)创建了域用户帐户(myAppUser)。域控制器与我尝试部署应用程序的 Web 服务器不同。

2)在网络服务器上我运行以下命令: aspnet_iisreg -ga myDomain\myAppUser 将 myAppUser 分配给 IIS_WPG 组

3) 在 IIS 管理器中,我创建了应用程序池并将该池配置为在 myAppUser 帐户下运行。

4) 我使用 VS 2010 的发布方法部署了我的 Web 应用程序并进行了配置,以便它使用上述应用程序池。

5)在 web.config 中,

identity impersonate="false"
authentication mode="Windows"

当我请求默认页面时,它显示登录页面;我想要的是使用客户端计算机的凭据进行静默登录。我怎样才能做到这一点?

PS:实际上它并没有询问默认网络服务帐户下的凭据。当我将该帐户更改为 myAppUser 时,它开始询问凭据。

I'm trying to deploy ASP.NET MVC 2 Silverlight application with custom service account. I did the following:

1) Domain user account (myAppUser) was created. Domain controller is different from the web server to which I'm trying to deploy my app.

2) On the web server I run the following command:
aspnet_iisreg -ga myDomain\myAppUser
which assigned myAppUser to IIS_WPG group

3) In IIS manager I created application pool and configured that pool to run under myAppUser account.

4) I deployed my web app using VS 2010's publish method and configured so that it uses the above application pool.

5) in web.config I have

identity impersonate="false"
authentication mode="Windows"

When I requested the default page it displays login page; what I want is silent login using the credentials of the client machine. How can I do that?

PS: actually it didn't ask credentials under default Network Service Account. When I changed that account to myAppUser it started asking credentials.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文