我的网站有2个登录。 1在前端为常规用户,一个在管理部分,为管理员(我需要2登录,因为每个人要求不同的登录标准)。为了验证admin目录,我安装在我的主网站的web.config“位置”元素是这样的:web.config中的错误“位置”
<location path="Admin">
<system.web>
<authentication mode="Forms" >
<forms loginUrl="/Accounts/adminLogin.aspx"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
如果我试图从我的“管理”目录中输入任何页面,进入我的浏览器,我收到以下错误:
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.
如何设置我的位置元素以正确重定向?
感谢
第一个问题 - 您是否将虚拟目录设置为IIS中的应用程序? – Tim 2013-02-22 06:22:16