Anjali
Anjali

Reputation: 2708

HTTP failure response for my web site unauthorized -401 error

I just deployed my web site to our internal production server. I enabled the windows authentication for my web site. below is the screen shot:

After doing that, I tried to run my application and I got below error in developers tool:

This web site runs fine on our internal staging server with the same authentication.

Any help will be greatly appreciated.

Upvotes: 0

Views: 622

Answers (1)

Wahaj A Khan
Wahaj A Khan

Reputation: 111

Check the below link in case you missed the IIS Settings same as your localhost. https://www.c-sharpcorner.com/UploadFile/84c85b/understanding-windows-authentication-in-detail/

Also, Your Server does not know the users of your local windows until you are connected via active directory. Production and your PC should share the same domain.

Make sure to read the Microsoft official guide for Windows Authentication.

https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/authentication/windowsauthentication/

Windows Authentication critera

Upvotes: 2

Related Questions