I implemented forms-based authentication that uses AD in an ASP MVC 3 application, following the guidelines I found here ASP.NET MVC - authenticate users in Active Directory but requires a username and password to enter
I work fine when I start using ASP.NET Development Server, but I canβt go beyond the login page after entering my credentials and gives the following error:
Configuration error
Description: An error occurred while processing the configuration file needed to service this request. Review the specific error information below and modify your configuration file accordingly.
Parser Error Message: An operational error has occurred.
Source Error:
Line 37: <membership defaultProvider="MY_ADMembershipProvider"> Line 38: <providers> Line 39: <add name="MY_ADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider" connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" /> Line 40: </providers> Line 41: </membership>
Any help would be greatly appreciated, thanks in advance.
UPDATE: Until now, after several debugs, I think that the error can occur from System.Web.Security.ActiveDirectoryMembershipProvider in the Web.xml configuration, I added System.Web (in which this class is found) as a reference, and also to create a local copies, but still, zip ... :(
source share