<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
............
<authentication mode="Forms"><forms name="AUTHCOOKIE" loginURL="register.aspx" protection= "ALL" /></authentication
<location path="newsadmin.aspx">
<authorization><deny user="?"></deny></authorization
</location
.............. </system.web></configuration
when I compile it, error:"Unrecognized configuration section "location" " comes out, can anyone help, do I need to declare the tag <location> somewhere?
thanks<location> must be declared outside the <system.web> element. That is, inside <configuration> but outside <system.web> which specifies settings for the current folder (kind of defaults).
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<location path="newsadmin.aspx">
...
</location>
<system.web>
...
</system.web></configuration
0 comments:
Post a Comment