0

I've a strange issue with a .NET 4.0 website published on IIS6.

It implements the Forms Authentication, and in my Web.Config I've something like:

<authentication mode="Forms">
  <forms loginUrl="~/login.aspx" timeout="2880" name="AUTH_TOKEN" />
</authentication>
<authorization>
    <allow roles="__AUTHUSER__" />
    <deny users="*" />
</authorization>

And I've the Default.aspx setted as default document in the website.

If I try to access the www.site/default.aspx it redirects me to the www.site/login.aspx?ReturnUrl=%2fDefault.aspx

And it is fine.

The problem is that if I try to access www.site/default.aspx?ReturnUrl= it gave me a 401.2 error page: not authorized.

It's happening that this is a rebuild of an intranet application and many users actually (for some reason) have the www.site/default.aspx?ReturnUrl= url saved in the bookmarks... so I need to get it work.

Any ideas?

3
  • Are you adding asp.net login controls or custom control like textboxes and button and all.. Commented Jul 11, 2013 at 12:57
  • The login.aspx page is composed by standard asp.net controls, as the default.aspx...
    – tanathos
    Commented Jul 11, 2013 at 13:00
  • Can you just post your aspx code here which shows login control.. Commented Jul 11, 2013 at 13:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.