hi!

ich meine, dass der <authentication> part ins "root" geh�rt und in den location teil der anwendung nur der <authorization> part. web.config selbst ins root der anwendung.

weiters ins "root":
<authorization>
    <allow users="?"/>
 </authorization>

und in location:
<authorization>
    <deny users="?"/>
    <allow users="*" />
 </authorization>


lg o



Ich m�chte ein bestimmtes Verzeichnis (admin) meines Webs mit folgendem Code in der web.config sch�tzen:

<location path="admin">
    <system.web>
                <authentication mode="Forms">
            <forms loginUrl="/login.aspx/">
                <credentials passwordFormat="Clear">
                    <user name="Test" password="test"/>
                </credentials>

            </forms>

        </authentication>

        <authorization>
            <deny users="?" />

        </authorization>




</system.web>

</location>


Leider erhalte ich jedoch folgende Fehlermeldung:

"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."

Muss das zu sch�tzende Verzeichnis etwa als virtuelles Verzeichnis im IIS angelegt sein ?!

Wenn ich das location-Tag weglasse, funktioniert alles wunderbar - nur halt f�r die ganze Website.


Wer weiss Rat ?


Thorsten

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

_________________________________________________________________
Diskutieren Sie mit Gleichgesinnten �ber Ihre ganz pers�nlichen Leidenschaften! http://groups.msn.com/people?pgmarket=de-at


_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an