【发布时间】:2014-01-20 17:01:58
【问题描述】:
我正在编写简单的成员资格和角色提供者。 我正在尝试从帖子http://www.brianlegg.com/post/2011/05/09/Implementing-your-own-RoleProvider-and-MembershipProvider-in-MVC-3.aspx 运行代码,但在运行 IIS 时显示错误:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Line 39: <providers>
Line 40: <clear />
Line 41: <add name="LocalBankMembershipProvider" type="LocalBank.Helpers.LocalBankMembershipProvider, LocalBank" connectionStringName="LocalBankEntities" />
Line 42: </providers>
Line 43: </membership>
Message Parser Error: Target call threw an exception.
Line: 41
我在项目开始时犯了哪些错误? 使用 Nuget 包将项目从 mvc3 转换为 mvc4
我该如何解决这个错误?
【问题讨论】:
标签: c# asp.net-mvc-3 asp.net-mvc-4 membership-provider roleprovider