barrykellett
Programmer
Below is my web.config file.
I have set it up to try and let a user access ANY page in my application except for the one named guestbook.aspx
It is giving me the following configuration error however - "Parser Error Message: 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."
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<location path="guestbook.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
<authentication mode="Forms">
<forms name=".ASPXFORUM" loginUrl="login.aspx" protection="All" timeout="30" path="/" />
</authentication>
</system.web>
</location>
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</configuration>
I have set it up to try and let a user access ANY page in my application except for the one named guestbook.aspx
It is giving me the following configuration error however - "Parser Error Message: 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."
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<location path="guestbook.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
<authentication mode="Forms">
<forms name=".ASPXFORUM" loginUrl="login.aspx" protection="All" timeout="30" path="/" />
</authentication>
</system.web>
</location>
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</configuration>