2016-07-26 18 views
0

Ich habe einen Ordner "qc", der nur für die Rolle "Warehouse" erlaubt ist. In diesem Ordner Ich habe eine Seite, die ich jemand ohne Anmeldung zugreifen möchtenErlaube Zugriff auf alle Benutzer auf bestimmte Seite innerhalb des eingeschränkten Ordners

Hier ist, was ich mit web.config gemacht habe, aber es leitet mich immer noch auf der Login-Seite.

<location path="QC/MyPage.aspx"> 
    <system.web> 
     <authorization> 
     <allow users="?" /> 
     <allow roles="*"/> 
     </authorization> 
    </system.web> 
    </location> 
    <location path="QC"> 
    <system.web> 
     <authorization> 
     <deny users="?" /> 
     <allow roles="warehouse" /> 
     </authorization> 
    </system.web> 
    </location> 

Antwort

0

Wie assered her müssen Sie es ohne die aspx-Erweiterung wiederholen.

<location path="test/webform1"> 
<system.web> 
    <authorization> 
    <allow users="*"/> 
    </authorization> 
</system.web> 
<location path="test/webform1.aspx"> 
<system.web> 
    <authorization> 
    <allow users="*"/> 
    </authorization> 
</system.web>