I have several aspx pages in a folder under my and now i want to disable that people can enter one page by typing it directly in the browser. Therefore i read some posts on forums and tutorials and made a loginpage with following line if the password is true
FormsAuthentication.RedirectFromLoginPage (TextLogin.Text, False)
And made a web.config file with the following content
But now i get the following error on every page that i open in this directory.
'MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
But if this is really the problem how do i change this. If i open the IIS directory (inetmgr in commandpromt) and look at the properties of my folder, i see a tab ASP.net but nothing where i could change it to an application directory.
Already thanks
Borracho
FormsAuthentication.RedirectFromLoginPage (TextLogin.Text, False)
And made a web.config file with the following content
Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="login.aspx"
protection="Encryption"
timeout="20"
path="/"
</forms>
</authentication>
</system.web>
<location path="reservatie.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
But now i get the following error on every page that i open in this directory.
'MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
But if this is really the problem how do i change this. If i open the IIS directory (inetmgr in commandpromt) and look at the properties of my folder, i see a tab ASP.net but nothing where i could change it to an application directory.
Already thanks
Borracho