2

See below error Message

I have created new project and run, it was build successfully after that through an error.

Pradip Talaviya
  • 399
  • 2
  • 8
  • 22

3 Answers3

5

I had same issue occured and i fixed this issue by just remove the "applicationhost.config" file from your Project directory -> .vs folder -> config folder -> remove the applicationhost.config and clean & build project and run your project. It will successfully run your project

nativegrip
  • 892
  • 10
  • 20
1

I solved the same issue by creating virtual directory (Solution Explorer > Right Click on Project > Web > Create Virtual Directory and ticking 'Override application root URL'

Sukhi
  • 13,261
  • 7
  • 36
  • 53
1

I faced similar issue and was able to fix it by updating the port number. In Solution Explorer --> Right Click and select Properties --> Web tab update the port number. I.e. My previous port was 57860 and I changed it to 57862. It fixed my issue.

enter image description here

You can also fix this by closing IISExpress.exe in Task Manager --> Details tab simple.

enter image description here

Raship Saiyed
  • 426
  • 5
  • 10