| Forum: ASP.NET |
Thema:
Re: Web.Config und Authentication |
Von:
Rene Paschold (
07.10.2003 13:07) |
Deine web.config ist falsch:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="RemoteOnly" />
<authentication mode="Forms">
<forms name=".AUTHCOOKIE" protection="All" timeout="60" loginUrl="/login.aspx">
<credentials passwordFormat="Clear">
<user name="Utest" password="Ptest"></user>
</credentials>
</forms>
</authentication>
</system.web>
<location path="lookatme">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
Wenn du im Location Element eine eigene authentication einbaust dann brauchst du dort auch eine eigene application.
Mit dem Location Element vergibst du nur die Rechte, nicht aber den entsprechenden Login Pfad und die User Credentials!
Viele Grüße
René Paschold
ppedv AG
Business Development Manager
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!