Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The IIS Express applicationHost.config file contains invalid entries and must be corrected before you can open project

I have installed Visual studio developer community version to practice coding. When I tried to create a new web project, I am facing issue like configuring IIS express failed, can not read the configuration file. I have tried all possible solutions like renaming the host file and closing and opening the visual studio. Nothing worked out. And I have tried to clone the project from git here also I am facing the same issue. Can someone please help me here.

Here is my error message.

enter image description here

like image 847
Sudhakar B.V. Avatar asked Jan 12 '20 06:01

Sudhakar B.V.


1 Answers

  1. Go: C:\Program Files (x86)\IIS Express\config\templates\PersonalWebServer
  2. Copy 3 files: applicationhost.config, aspnet.config và redirection.config
  3. Go to: Documents\IISExpress\config
  4. Paste and replace all 3 files
  5. Reload
like image 115
Drave Avatar answered Jun 10 '23 08:06

Drave