IIS Express Error 500.19 (0x80070003) cannot read config file

8

I've been working on MVC 5 tutorial on my office machine. Everything work perfectly in that environment.

Recently I pulled the repository to my personal laptop and I get this error.

IIS Express Error 500.19 (0x80070003) cannot read config file

In the error page I see the following path to the config file:

\?\D:\Dev\Personal\MvcMovie\src\MvcMovie\wwwroot\web.config

Which is a correct path for my office machine, but wrong for the home environment.

Additional info:

Here are locations for the Visual Studio solution:

At the office
D:\Dev\Personal\MvcMovie

At home

C:\Dev\Projects\MvcMovie

I'm a newbie to a web development, so hopefully there is an easy way to solve the problem.

Regards,

Michael

asp.net
iis

2 Answers

26

I have resolved the problem deleting the directory ".vs" in the local directory of the project. Note: the directory .vs is hidden from Windows, enables hidden files to be displayed.

answered on Stack Overflow Aug 4, 2017 by Roby Gar
8

Turned out, IIS Express was pulling the old path from .vs/config/applicationhost.config file

Modifying the path to the current one has resolved the issue

answered on Stack Overflow Mar 19, 2016 by Michael Daniloff

User contributions licensed under CC BY-SA 3.0