在 MVC3 项目中配置 Active Directory
我在部署 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了问题的解决方案,我必须在 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 toNetworkService
This configuration can be made in
ISS --> Application Pool ----> .Net 4---> Advanced Settings --> Process Model
I hope that helps to others