Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web.Config Help

Status
Not open for further replies.

barrykellett

Programmer
Mar 4, 2003
29
GB
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=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?>
<configuration>
<location path=&quot;guestbook.aspx&quot;>
<system.web>
<authorization>
<deny users=&quot;?&quot; />
</authorization>

<authentication mode=&quot;Forms&quot;>
<forms name=&quot;.ASPXFORUM&quot; loginUrl=&quot;login.aspx&quot; protection=&quot;All&quot; timeout=&quot;30&quot; path=&quot;/&quot; />
</authentication>
</system.web>
</location>

<system.web>
<authorization>
<allow users=&quot;?&quot; />
</authorization>
</system.web>

</configuration>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top