Hi Andreas,

die Richtung scheint zu stimmen, aber genau hab ichs noch nich.
Den "*.aspx" mag er nich:

Parser-Fehlermeldung: <location> Pfadattribut muss ein relativer virtueller Pfad sein und darf folgende Zeichen nicht enthalten: ';' '?' ':' '@' '&' '=' '+' '$' ',' '\' '*' '"' '<' '>' '|'.

Wenn ich dafür jetzt eine konkrete Datei angebe, macht ers eigentlich genau wie erwartet:
Die Main.aspx ist frei, beim Aufruf der Article.aspx (die dann als deny users="*" steht) leitet
auf die Login.aspx, bloß dann komm ich nicht mehr rein und der macht den RedirectFromLoginPage
nicht mehr, sondern ruft einfach wieder die Login.aspx auf .


Hab ich da noch irgendwas falsch geschachtelt?

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<location path="main.aspx">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location>
<location path="login.aspx">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location>
<location path="article.aspx">
<system.web>
<authorization>
<deny users="*" />
</authorization>
</system.web>
</location>
<appSettings>
<add key="XXXDB" value="server=localhost;Trusted_Connection=true;database=XXXDB" />
</appSettings>
<system.web>
<compilation
defaultLanguage="c#"
debug="true"
/>
<customErrors
mode="RemoteOnly"
/>
<authentication mode="Forms">
<forms name=".ASPXAUTH1" loginUrl="Login.aspx" timeout="30" />
</authentication>
<trace
enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
/>
</system.web>
</configuration>


Danke und LG Dirk


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

Reply via email to