FRO
FRO

Reputation: 253

ASP.NET Authentication

Here is my .config

<authentication mode="Forms">
  <forms loginUrl="~/LogOn" path="/"/>
</authentication>
<authorization>
  <deny users="?"/>
</authorization>

When I do that on IIS7 it's ok, but on IIS6...

Under IIS7:

It's OK,

But under IIS6

What is the solution?

Upvotes: 0

Views: 53

Answers (1)

Pleun
Pleun

Reputation: 8920

You are denying anonymous users acces to your login page. Add to your web.config

<location path="login.aspx">
    <system.web>
        <authorization>
            <allow users="?"/>
        </authorization>
    </system.web>
</location>

substitute login.aspx with your login page.

Upvotes: 1

Related Questions