我已将网络项目从mvc4升级到mvc5。升级后,下面使用的提供程序为null。与mvc4相比,我应该在mvc5中以不同的方式注册我的提供商吗?
<membership defaultProvider="MyMembershipProvider" userIsOnlineTimeWindow="10">
<providers>
<clear />
<add name="MyMembershipProvider" type="MyMembershipProvider, MyWebAssembly" />
</providers>
</membership>
<roleManager enabled="true" defaultProvider="MyRoleProvider" cacheRolesInCookie="true">
<providers>
<clear />
<add name="MyRoleProvider" applicationName="MyAppName" type="MyRoleProvider, MyWebAssembly" />
</providers>
</roleManager>