5

I am developing a web api. When I ran web api in local workstation by Visual Studio and used Fiddler or IE to consume it, all things were fine.
But if I deployed it into a remote IIS server, I get 401 error code in IE, Fiddler or client application. Even I enable Anonymous Authentication in IIS, 401 still occurs.
Could anyone give me some suggestions?
Thanks.

5
  • DO you have disabled all other authentication? Try disabling all other authentication except Anonymous for the Website/WebApplication in IIS. Commented Jan 7, 2014 at 6:25
  • 401 still occurs even all other authentication disabled. Commented Jan 7, 2014 at 7:07
  • What authentication(s) is the server's WWW-Authenticate response header actually asking for? Commented Jan 7, 2014 at 7:49
  • I don't set WWW-Authenticate anything. Commented Jan 7, 2014 at 8:19
  • Your webApp has Application User(pass through authentication) or Specific User? Make your IIS is able to access physical location & that is never shared to anybody, this sometimes causes problems... Commented Jan 7, 2014 at 10:06

1 Answer 1

1

You can right click in the Authentification the "Anonymous Authentification" and select Edit. From there, you can assign on which credential you run the Anonymous authentification. If you set your own account, it should work (or any account that can run the web api).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.