Okay,
I have a website. I can configure the whole site to be protected with forms security. My problem is that I want a sub directory of that site, to be protected but I would like another login .aspx file to show up instead of the parent one.
First of all, I was getting this error when I try to access the subdirectory:
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.
I went to IIS and configured the subdirectoy as a virtual directory (application) and that still doesn;t work.
my web.config file looks like this in the subdirectory:
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="Rom" loginUrl="Intralogin.aspx"
path="/"></forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</configuration>
Any help?
I have a website. I can configure the whole site to be protected with forms security. My problem is that I want a sub directory of that site, to be protected but I would like another login .aspx file to show up instead of the parent one.
First of all, I was getting this error when I try to access the subdirectory:
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.
I went to IIS and configured the subdirectoy as a virtual directory (application) and that still doesn;t work.
my web.config file looks like this in the subdirectory:
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="Rom" loginUrl="Intralogin.aspx"
path="/"></forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</configuration>
Any help?