0
我使用Asp.net MVC 5.1.0.0
和我有Admin
我想在这方面使用Authentication form
名称的区域,所以我加了这个Asp.net MVC 5.1.0.0和形式的认证
<system.web>
<authentication mode="Forms">
<forms loginUrl="/Admin/Account/Login" defaultUrl="/Admin/General/Index" slidingExpiration="true" timeout="20"></forms>
</authentication>
该地区的Web.config文件,但它给了我错误
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
所以我觉得这不是办法,有什么办法来为做authentication
dmin区域?