我在网站的后台admin文件夹中加入WEB.CONFIG配制如下:
<configuration>
    <appSettings/>
    <connectionStrings/>
    <system.web>
<authentication mode="Forms" ><forms name="AUTHOR" defaultUrl="menu.aspx" loginUrl="index.aspx"></forms>
</authentication>
<authorization><deny users="?" />
</authorization>
    </system.web>
</configuration>
并已将admin文件夹设为应用程序,但运行的时候出现以下错误:
错误
E:\明大伟业\admin\left.aspx: ASP.NET 运行时错误: 在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。 (E:\明大伟业\admin\web.config line 12)E:\明大伟业\admin\left.aspx11E:\明大伟业\