Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 706813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:12:28+00:00 2026-05-14T04:12:28+00:00

I am using a asp.net login control with one of my asp.net application to

  • 0

I am using a asp.net login control with one of my asp.net application to authenticate users.
I also have roles defined as well.

Some of the directories are setup so only users with ROLE “MANAGER” are able to access pages under those directories. If the user does not have “MANAGER” role, he will simply be redirect back to the login page.

so my question is that for the out of box login control, is there a way to show the proper login fail error message? for user trying to login but does not have a proper ROLE assigned to them, instead of a generic error message saying “login failed”

thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:12:29+00:00Added an answer on May 14, 2026 at 4:12 am

    What you are experiencing is a long standing bug in asp.net authentication.

    ASP.Net treats all failures as authorization failures and endlessly redirects to login when it should recognize UNDER-authorization and allow redirection to 403.

    There are many kludges and hacks, some of which I have used and/or developed in the past.

    I finally got fed up and fixed ASP.Net.

    http://www.codeproject.com/Articles/39062/Salient-Web-Security-AccessControlModule.aspx

    Note: the verbage of the article is ajax slanted, as this, ultimately, was the motivation, but don’t be put off by all of the talk of headers. It can be used in default state with standard asp.net authentication/membership/roles.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the asp.net login control for user authentication. I also have the userID
In an ASP.net application I'm using a Login control with a custom membership provider
Using the Login control in ASP.NET... The Login.Authenticate event is used to authenticate the
I'm using the ASP.Net Login control to login a web application. When the user
Help! I'm using the ASP.Net Login control on a Login page, but the Login
I'm using ASP.NET MVC 2 and have a login page that is secured via
I have a pretty big web application that I created last year using ASP.NET
Using the standard ASP.NET login control, I'm trying to get it to deny me
i am using one tree view control in asp.net, in this tree view i
I have an ASP.Net site using Forms authentication. One of the aspx pages loads

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.