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
The location of the file is currently in the %windir%\system32\inetsrv\config directory.
Go to the parent folder, right-click and select Properties. Select the Security tab, edit the permissions and Add. Click on Advanced and the Find Now. Select IIS_IUSRS and click OK and OK again.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With