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?