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

  • Home
  • SEARCH
  • 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 1116121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:15:21+00:00 2026-05-17T03:15:21+00:00

I have an asp.net web application that use FormsAuthentication. Now, the application has a

  • 0

I have an asp.net web application that use FormsAuthentication. Now, the application has a WCF Service that need to use Basic Authentication.

So, I need to return the 401 status code, but everytime it’s picked up by asp.net and redirecting me to the login page.

How could I disable this feature and finally being able to throw a 401 without intervention from the FormsAuthentication module?

  • 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-17T03:15:22+00:00Added an answer on May 17, 2026 at 3:15 am

    you can’t mix modes in a single directory.

    your app uses formsauth configured in the root, which is where your users access the site.

    your service needs basic auth, place it in a subdirectory and configure basic auth in a web.config for that directory.

    add a <location> tag to your root web.config to allow all users to access the service directory.

    that should work for you.

    if any of this is not clear, let me know.

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

Sidebar

Related Questions

Suppose you have two seperate ASP.NET Web Application projects that both need to use
I have an ASP.NET web application that is using forms authentication. Everything is configured
I have an ASP.net web service that I'm using for a web application which
We have an ASP.NET web application that we offer as a Service (it's hosted
I have a ASP.NET web application that use the same DataContextType to access several
I have an ASP .NET Web Forms application that makes use of the 'WebMethod'
I have an existing ASP.NET web application that is for public use and any
I have an ASP.NET MVC web application that makes REST style web service calls
I have an asp.net mvc application that uses web service. I have various controllers
I have an ASP.NET web application that calls a web service on a remote

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.