FineUI 官方论坛
标题:
FINEUI 在启用Forms认证后,只有在根目录添加的aspx文件才有效
[打印本页]
作者:
嵌入式应用开发
时间:
2013-9-16 00:06
标题:
FINEUI 在启用Forms认证后,只有在根目录添加的aspx文件才有效
大家长,我在使用FINEUI时,在启用Forms认证后,发现在根目录下,新建一个目录,在新建的目录中建立的ASPX网页文件,在浏览器中,打开后,不能启用FINEUI的图形效果,而是变成了这样
我的web.config如下:
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="FineUI" type="FineUI.ConfigSection, FineUI" requirePermission="false"/>
</configSections>
<!-- 可用的配置项(这里列的都是默认值): Language="zh_CN" AjaxTimeout="60" EnableAjax="true" Theme="blue" FormMessageTarget="qtip" FormOffsetRight="20" FormLabelWidth="100" FormLabelSeparator=":" IconBasePath="~/icon" EnableAjaxLoading="true" AjaxLoadingType="default" CustomTheme="" CustomThemeBasePath="~/theme" -->
<FineUI EnableBigFont="true" DebugMode="false" CustomTheme="first" CustomThemeBasePath="theme" />
<appSettings/>
<connectionStrings>
</connectionStrings>
<system.web>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add assembly="FineUI" namespace="FineUI" tagPrefix="x"/>
</controls>
</pages>
<httpRuntime maxRequestLength="102400 "/>
<customErrors mode="Off"/>
<compilation debug="true" targetFramework="4.0"/>
<authentication mode="Forms">
<forms loginUrl="login/LoginMain.aspx" protection="All" timeout="120" name=".ASPXAUTH" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="/Default.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<webServices>
<protocols>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="HttpSoap"/>
<add name="Documentation"/>
</protocols>
</webServices>
<sessionState mode="InProc" cookieless="false" timeout="1">
</sessionState>
</system.web>
<location path="res.axd">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<!--<system.webServer>
<modules>
<add name="FineUIScriptModule" type="FineUI.ScriptModule, FineUI"/>
</modules>
<handlers>
<add name="FineUIResourceHandler" verb="GET" path="res.axd" type="FineUI.ResourceHandler, FineUI"/>
</handlers>
<httpErrors errorMode="Detailed"/>
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>-->
<location path="teacher">
<system.web>
<authorization>
<allow roles="teacher,admin,teachman"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="teachman">
<system.web>
<authorization>
<allow roles="teachman,admin,schoolmaster"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="schoolmaster">
<system.web>
<authorization>
<allow roles="schoolmaster,admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="admin">
<system.web>
<authorization>
<allow roles="admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="StuGuraPhoto">
<system.web>
<authorization>
<allow roles="admin,teacher"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
</configuration>
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4