problem with the <authenication loginurl=.....

J

Jeff

Hey

asp.net 2.0

I created a simple helloworld website so I could tryout athentication in
asp.net 2.0

Start page is Default.aspx. The problem is that when I start this web
application I'm not directed to Login.aspx
I thought asp.net knew that I wasn't a authenticated user and automatically
redirected me to the page specified in the loginUrl property...

There are no registrered users on this system

part of web.config:
<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" />
</authentication>

Any ideas what I'm doing wrong here??

Best Regards!

jeff
 
J

Jeff

I just had to add this to web.config:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top