Authentification-None for one folder(page) when the project is under FormsAuthentifications
- by Sirius Lampochkin
I have a WebApplication on asp.net 2.0 with namespace Admin. I have Form Authentification mode for the project.
<authentication mode="Forms">
<forms name="ASP_XML_Form" loginUrl="Login.aspx" protection="All" timeout="30"
path="/" requireSSL="false" slidingExpiration="true"
cookieless="AutoDetect">
</forms>
</authentication>
Now, I try to share one folder (one inside page) for not Authentificatied users:
<location path="Recovery">
<system.web>
<roleManager enabled="false" >
</roleManager>
<authentication mode="None">
</authentication>
<authorization>
<allow users="*" />
</authorization>
<httpHandlers>
<remove verb="GET" path="image.aspx" />
<remove verb="GET" path="css.aspx" />
</httpHandlers>
</system.web>
</location>
But when I create the page inside the shared folder, it can't get access to the assembly.
And I see the error like this:
Could not load file or assembly
'Admin' or one of its dependencies.
The system cannot find the file
specified.
It also shows me the error:
ASP.NET runtime error: 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.
Does anybody know how to share (Authentification None) one folder(page) when the project is under FormsAuthentifications?