hey Jensen,
try this and replace the user credentials with your user credentials
<authentication mode="Forms" > <!-- Set authentication mode -->
<forms loginUrl="LogIn.aspx" > <!-- Specify a log on form -->
<credentials passwordFormat="Clear"> <!-- Create a user list -->
<user name="Jensen" password="JensenPassword"/>
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" /> <!—Deny all unauthenticated users -->
</authorization>
Note :- dont forget too add this tag or else it wont be redirected to the
login page
<forms loginUrl="LogIn.aspx" > <!-- Specify a log on form -->
********************************
Hope this helps,
Shaun
http://blogs.wwwcoder.com/shaunakp
********************************
"Jensen bredal" wrote:
Sorry i found the bug.
<allow users="?" /> <!-- Allow all users -->
deny users="?" instead of allow users="?"
</authorization>
But when i attempt to view any page in my virtual directory,
i'm not redirected to the login page. What i'm i doing wrong?
Many thanks in advance
JB