My Technical Notes

Thursday, 2 October 2014

Error message 401.2.: Unauthorized: Logon failed due to server configuration

If you are using Windows authentication within your `web.config`:


<authentication mode="Windows"/>

then you must also enable Windows Authentication within the project properties. Strangely enough there are two windows for this. The first one is when you right click the Project and go to `Properties` (or `Alt-Enter`):

The other one is the `Properties Window` which can be opened by clicking on `VIEW` → `Properties Window` or alternatively press `F4`. Here is how that looks:

Change `Windows Authentication` to `Enabled`.

This blog post was based on Saravanan's blog post.

1 comment:

Riyadh Hassan said...

hmmm this sounds very good! kwatish!