Monday 26 May 2014

Windows Server 2012 IIS 401 Error

Well thats my server upgraded to Windows 2012 IIS 8.

So I thought anyway, all was working fine, website migrated over and working fine. All clients happy, 

But

I went onto one of my own websites and started getting a 401 access denied due to credential error. So I thought I know what is causing this and set about doing the normal things, checking the user my website was using in IIS for the anonymous user under the IIS authentication tab, and this was set to be using a specific user.

"Thats it" I thought, so I made sure the user had the right access to the directory for my website. Yet it was still giving me a Windows Security popup box, mainly for sub folders, the root of the website was perfectly fine.

Weird I thought!!

I checked the providers and made sure that NTLM was at the top of the list so this was not the problem.

So what was the problem?

How to fix it

In  my case the problem was that the site is a Wordpress site running PHP, everytime you do something additional in IIS it creates a web.config file to store this information. So if you delete this file from your website, just find all occurrences and delete them. It resets everything and hay presto it works.

Thanks Sean J Connolly FaceBook Me - Visit AJAX Web Development Store BuzzProperties.co.uk - Online Property Sales and Letting

4 comments:

UI UX Designers Delhi said...

Hey keep posting such good and meaningful articles.

Samsun cilingir said...

Siteniz cok guzel basarilarinizin devamini bekleriz admin tanks

Samsunda escort said...

saygi deger ilan veren veren arkadaslar samsun escort bayan sitemize ucretsiz ilan verebilirsiniz siz degerli arkadaşlara icretsiz balcklink sagliyoz seo blacklink

Anonymous said...

Hello. If you want crytocurrencies you should check this blog about bitcoin

Online Cashback