IIS Express 8 – Cannot write configuration file

Reading Time: 1 minute

Issue

I am trying to use IIS Express 8 for a Web site in VS2013. I am getting the following error whenever I attempt to create the website site.

Filename:
\?\C:\Users\xxxxxx\Documents\IISExpress\config\applicationHost.config
Error: Cannot write configuration file

Solution

Go to the IISExpress directory

C:\Users\xxxxxx\Documents\IISExpress\

Remove encryption from the directory.

ie. Right click on the directory, click Properties, Click Advanced, deselect Encrypt contents to secure data, click OK, Click OK again, Click OK again. Ignore any errors.

iisexpress