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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:24:31+00:00 2026-06-09T04:24:31+00:00

I’ building a website in visual studio. At the beginning everything was OK and

  • 0

I’ building a website in visual studio.
At the beginning everything was OK and I managed to navigate between all my web pages.
I followed this tutorial (http://csharpdotnetfreak.blogspot.com/2011/12/createuserwizard-email-verification.html) in order to create a login page.

I managed to get the verification email to my email address but the link never worked, I always get error 400- bad request.

My problem is that now, I can’t access any of the webpages. It always takes me to the login.aspx page, even that I set a different page on the web.config file (under authentication). I tried to set other pages as a start page (via right click on project explorer).

Every time when I try to open a web page I’m getting an error 404 and the address in the address bar changes to localhost49171/login.aspx?Returnur%2fdefault.aspx%3f

Anyone has a solution?

Thanks in advance,

Liron

  • 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-09T04:24:32+00:00Added an answer on June 9, 2026 at 4:24 am

    After checking you web.config, the behavior you are describing I would expect, as long as after logging you can navigate and access all the pages in your web site. If after logging in, you are still being redirected to the login page, you have something else setup wrong.

    The configuration/web.config/authorization element in the web.config is used to specify site wide authorization rules.

    <configuration>
      <web.config>
        <authorization>
          <deny users="?"  /> <!-- deny un-authenticated access, everyone not logged in that is -->
          <allow users="*"   /> <!-- allow everyone else -->
        </authorization>
      </web.config>
    </configuration>
    

    If you have resources that you may need to have accessible by anyone you can modify the authorization rules to that resource by using the configuration/location/system.web/authorization element

    <configuration>
      <location path="SomeUnprotectedResource.aspx">
        <authorization>
          <allow users="*" /> <!-- anyone can view this page -->
        </authorization>
      </location>
    </configuration>
    

    You may even have resources that you need to further restrict access to the pages than what the site wide rules have.

    <configuration>
      <location path="OnlyForMe.aspx">
        <authorization>
          <allow users="Me" /> <!-- only the user Me can view this page -->
          <deny users="*" /> <!-- deny everyone else -->
        </authorization>
      </location>
    </configuration>
    

    As a side note, if you have IIS setup to protect all web site resources (i.e. *.css, *.js) and not just the ASP.NET resources you will need to add rules to allow access to them as well. For example, you may have your JavaScript and styling external to the login page, as such they will likely need the styling and scripts to work.

    <configuration>
      <location path="styles/login.css">
        <authorization>
          <allow users="*" />
        </authorization>
      </location>
      <location path="scripts/login.js">
        <authorization>
          <allow users="*" />
        </authorization>
      </location>
    </configuration>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.