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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:14:21+00:00 2026-06-15T20:14:21+00:00

I have a web application that is using Forms authentication. I have a page

  • 0

I have a web application that is using Forms authentication. I have a page that I DON’T want to redirect to the login form. I have this for that page:

<location path="service1.svc">
  <system.web>
    <authorization>
      <allow users="?"/>
    </authorization>
  </system.web>
</location>

From my understanding if a user is not authenticated (anonymous) and they try to access page1.svc then they would NOT get redirected to the login page, but in my app they still are.

Am I missing something here?

  • 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-15T20:14:22+00:00Added an answer on June 15, 2026 at 8:14 pm

    I figured it out! The way the Forms-authentication module works is that it checks any outgoing responses in the EndRequest method and if the status code is 401 (Unauthorized) then it changes the status code to 320 and redirects it to the Login Page. What happened in my case is I had a separate module that manipulated the response before the forms-auth page got a hold of it and occasionally set the status code to 401 to initiate an ntlm authentication exchange. But the forms-auth intercepted it before the exchange could happen.

    The work around is to use the EndRequest method in the global.aspx file to set the status code back to 401 because the forms-auth had already manipulated it by this point. In my case instead of setting the status code to 401 in the first place I set it to 407 and then caught it in the endRequest method to change it back to 401 and avoid the forms-auth module all together.

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

Sidebar

Related Questions

I have an ASP.NET web application that is using forms authentication. Everything is configured
Today we have a windows application that, using an OCX, creates a web page
I have this existing environment: 1) ASP.NET 3.5 web application 2) forms authentication with
I have a web application built in asp.net mvc using forms authentication. I am
I have an asp.net 4.0 application that is using forms authentication set to a
I have an Asp.Net MVC application using Forms Authentication that is published to the
We're building a web application that is secured using Forms Authentication. On a certain
I have a web application that is using both jQuery 1.2.6 and YUI 2.6.0
I have a web application that adds contextual information to XmlHttpRequest objects using the
I am building a web application and have been told that using object oriented

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.