如何将角色提供程序添加到mvc 5项目

时间:2018-11-27 10:39:56

标签: asp.net-mvc web-config role-manager

enter image description here

<system.web>
<authentication mode="Forms">
  <forms name="myBusiness" defaultUrl="/" loginUrl="/Login" timeout="43200"/>
</authentication>
<roleManager enabled="true" defaultProvider="BusinessRoleProvider">
  <providers>
    <clear/>
    <add name="BusinessRoleProvider" type="MyBusiness.Utility.BusinessRoleProvider"/>
  </providers>
</roleManager>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
<pages>

这是我的web.config作为运行我的项目时显示的错误。有人可以帮忙吗?

0 个答案:

没有答案