G
Guest
Can someone tell me what is wrong with this web.config file? Whenever I try
to open a file in the protected directory "Administration" I get an error
message indicating that the <system.web> Element is not recognized or
something to that effect. Any suggestions or help would be greatly
appreciated. I have attached the web.config file below. Thank you.
************************************************************
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation
defaultLanguage="c#"
debug="true"
/>
<customErrors
mode="RemoteOnly"
/>
<authentication mode="Forms" />
<authorization>
<allow users="*" />
</authorization>
<trace
enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
/>
</system.web>
<location path="Administration">
<system.web>
<authentication mode="Forms">
<forms
name="tqAdmin"
loginUrl="/Login.aspx"
protection="All"
/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
to open a file in the protected directory "Administration" I get an error
message indicating that the <system.web> Element is not recognized or
something to that effect. Any suggestions or help would be greatly
appreciated. I have attached the web.config file below. Thank you.
************************************************************
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation
defaultLanguage="c#"
debug="true"
/>
<customErrors
mode="RemoteOnly"
/>
<authentication mode="Forms" />
<authorization>
<allow users="*" />
</authorization>
<trace
enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
/>
</system.web>
<location path="Administration">
<system.web>
<authentication mode="Forms">
<forms
name="tqAdmin"
loginUrl="/Login.aspx"
protection="All"
/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>