在 MVC3 项目中配置 Active Directory

发布于 2024-12-27 12:25:51 字数 534 浏览 2 评论 0原文

我在部署 MVC3 项目 IIS 服务器时遇到问题,该项目在我的本地计算机中运行良好,但在服务器中运行不佳,错误是这样的

Parser Error Message: The supplied credential is invalid.

这是我的 merbership Provider 的配置行

<add name="MembershipADProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="AtentoCNEHoraExtra" connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" />

可能出了什么问题???

I have a problem deploying a MVC3 project IIS server, the project runs well in my local machine, but not in the server the errors say's this

Parser Error Message: The supplied credential is invalid.

This is the line of configuration of my merbership Provider

<add name="MembershipADProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="AtentoCNEHoraExtra" connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" />

What could be wrong???

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

念﹏祤嫣 2025-01-03 12:25:51

我找到了问题的解决方案,我必须在 IIS 的配置中修改与池 .NET 4 关联的进程模型的标识,

默认情况下的值为 ApplicationPoolIdentity,我必须改为NetworkService

这个配置可以在ISS -->中进行应用程序池----> .Net 4--->高级设置-->流程模型

在此处输入图像描述

我希望对其他人有帮助

I found the solution to my problem, I have to modify the identity of the process model associated with the pool .NET 4 in the configuration on my IIS

The value that has by default was ApplicationPoolIdentity and I have to changed to NetworkService

This configuration can be made in ISS --> Application Pool ----> .Net 4---> Advanced Settings --> Process Model

enter image description here

I hope that helps to others

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文