Web.Config getting authentication error

chriscrankshaw

New Member
I have the following code:My goal is that only when the user tries to go to the Register.aspx page they need to be authenticated with the Admin.aspx page. I get the following message;It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused ty a virtual directory not being configured as an application in IIS.Am I doing something wrong? \[code\] <location path="Report.aspx"> <system.web> <authentication mode="Forms"> <forms loginUrl="Admin.aspx" > <credentials passwordFormat="Clear"> <user name="John" password="pass@432"/> </credentials> </forms> </authentication> <authorization> <deny users="*" /> </authorization> </system.web> </location>\[/code\]
 
Top