воскресенье, марта 31, 2013

The role manager feature has not been enabled.

Используете MVC4 и столкнулись с "the role manager feature has not been enabled"? Очень просто. Добавьте в web.config следующее:

  
<system .web="">
   <compilation debug="true" targetframework="4.0">
    <assemblies>
     <add assembly="WebMatrix.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
     <add assembly="WebMatrix.WebData, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   </assemblies>
   </compilation></system>

Комментариев нет: