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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:52:33+00:00 2026-06-07T22:52:33+00:00

I am using RedirectFromLoginPage in my vb.net web app(.net 4). It works fine in

  • 0

I am using RedirectFromLoginPage in my vb.net web app(.net 4). It works fine in my dev environment, but fails in my production environment.

When I login through dev, I get this URL:

http://localhost:63509/Account/Login.aspx?ReturnUrl=%2fDefault.aspx

However, when I push it to production, and login, I get this URL:

http://aaa.aaa.edu/Account/Login.aspx?ReturnUrl=%2f

My web.config looks like this:

    <authentication mode="Forms">
        <forms loginUrl="Account/Login.aspx" timeout="300" defaultUrl="yourView.aspx" />
    </authentication>

I’ve verified that my default document on my IIS 7 web server is Default.aspx. I even set it in web.config to make sure.

Is there anything I could do to fix this?
The authorization section of web.config looks like this:

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

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-06-07T22:52:34+00:00Added an answer on June 7, 2026 at 10:52 pm

    In the web.config, what does the section look like? It should read as follows:

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

    Or, it may be a cookie issue. Are you explicitly setting FormsAuthentication.CookieDomain anywhere? Since you’re using a subdomain that could cause an issue. Also, try clearing the cookies in your cache or trying to login via a different browser to see if it’s a cookie issue.

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

Sidebar

Related Questions

Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
Using Xcode4.2.1, with a basic PhoneGap template based app. (I say template, but I
I am using ASP.NET MVC, on my login action I am doing: [AcceptVerbs(POST)] public
Using the Redis info command, I am able to get all the stats of
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
In asp.net we specify the redirect url when using forms authentications like this: <authentication
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
Using WPF/PRISM I want to log my messages through ILoggerFacade to my GUI (A
I'm using FormsAuthentication in my C#.net application and am appending to a database table
Using WebViewBrush I can render web page content (it's screen shot) to e.g. Rectangle

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.