Authentification-None for one folder (page) when the project is in the FormsAuthenification section

I have WebApplication on asp.net 2.0 with an Admin namespace. I have an Authentification mode for a 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'm trying to use one folder (one inner page) for non-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 public folder, it cannot access the assembly. And I see an error like this:

Failed to load the file or assembly "Administrator" or one of its dependencies. The system cannot find the file indicated.

It also shows me an error:

ASP.NET: , allowDefinition = 'MachineToApplication' . IIS.

- , (Authentification None) (), FormsAuthenifications?

+3
2

<location> :

<location path="Recovery">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>

( , ).

RoleManager web-, , <location>.

, - <authentication> <roleManager> (/Recovery IIS) , , , , .

" " ""? "" IIS? , /bin /​​ IIS.

, " " , " " - , .

, IIS - - .

IIS - , , :

  • , .

, , , , , root/bin (/app_code) .

IIS , .

+4

- , ( , ). location , , .

                      

-1

Source: https://habr.com/ru/post/1735077/


All Articles