Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specifying custom membership provider
Message
General information
Forum:
ASP.NET
Category:
MVC
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01553236
Message ID:
01553272
Views:
41
>Hi everybody,
>
>Hopefully this is an easy question while I am doing some research in this area. I'm working on ASP.NET MVC 4 application. In my colleague's application which is written in plain ASP.NET (not MVC) I see the following section in web.config
>
>
><membership defaultProvider="wwdllMembershipProvider" userIsOnlineTimeWindow="15">
>      <providers>
>        <add name="wwdllMembershipProvider" type="wwdllMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" writeExceptionsToEventLog="false"/>
>      </providers>
>    </membership>
>    <profile>
>      <providers>
>        <clear/>
>        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
>      </providers>
>    </profile>
>    <roleManager enabled="false">
>      <providers>
>        <clear/>
>        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
>        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
>      </providers>
>    </roleManager>
>
>
>
>First of all, what
<clear/ >
means here?
>
>Secondly, I see nothing in ASP.NET MVC 4 application in regards to membership provider in the web config. Do I still add it the same way in web config there or there is another way?
>
>Thanks in advance.


I haven't read the rest of the thread yet, but yes - you add it the same way. It doesn't matter whether it is MVC or not, membership works the same way under the hood.

the CLEAR tag simply removes any existing entries.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform