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 7753479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:04:25+00:00 2026-06-01T12:04:25+00:00

I am working on an ASP.NET web forms application that is using Forms Authentication.

  • 0

I am working on an ASP.NET web forms application that is using Forms Authentication. The problem is, it ignores my route and redirects to the login.aspx page.

I have the following route setup:

routes.MapPageRoute("/locale", "{locale}", "~/shorturl/transfer.aspx", 
            false, 
            new RouteValueDictionary { { "locale", "[a-z]{2}" } });

If I use the following url: http://server/minneapolis it goes to the login page. If I add the following to the Web.Config, then it “works” and goes to the transfer.aspx page.

<location path="minneapolis"> 
    <system.web> 
      <authorization> 
        <allow users="*"/> 
      </authorization> 
    </system.web> 
 </location>

I don’t want to have to add all of the locales to the web.config, seems to defeat the purpose.

I can also change the route to (notice I added “/loc/”):

    routes.MapPageRoute("/locale", "/loc/{locale}", "~/shorturl/transfer.aspx", 
            false, 
            new RouteValueDictionary { { "locale", "[a-z]{2}" } });

After that I can change the Web.Config location path to loc (location path=”loc”) and it works, but I’d really prefer to have it at the root. Is there any way to do this?

It’s .NET v4 and I have to support IIS 7 and IIS 7.5

  • 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-06-01T12:04:25+00:00Added an answer on June 1, 2026 at 12:04 pm

    I don’t think there’s a way to do it. Authorization is url based and the authorization module seems to check the source url rather than the destination url when it determines how to authorize the request.

    Like 6 months just failed exactly the same way as you did in one of my projects. I ended up with the solution you propose – my routed requests were put in a “subfolder” and I created a local web.config with authorization allow users=*.

    If there’s a way around this, I would also like to hear how it should be done.

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

Sidebar

Related Questions

I am a developer working on an ASP.Net Web Application that uses forms authentication.
I'm working on a web application that is using Forms authentication. <authentication mode=Forms> <forms
In my asp.net web application, I'm using asp.net forms authentication with following configuration. <authentication
I've built an ASP.NET application that's using Forms Authentication. In our hosting account control
I am working on a ASP.Net web forms application which I inherited from a
I've been working a lot with asp.net web forms and one think that I
I'm working on a asp.net web application and one of the requirements is that
I have a pretty big web application that I created last year using ASP.NET
In my asp.net webforms application I am using plain and simple forms authentication hooked
I have an ASP.NET web forms application that requires that requires that a user

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.