Creation of the virtual directory failed issue whle opening the older version projects in VS2017[solved]

I attempted to load the new VS2015 project in VS2017, but it immediately failed to load.and i am getting below error popup

Creation of the virtual directory http://localhost:32999/
failed with the error: Filename: redirection.config
Error: Cannot read configuration file

there are two solution for this issue

1) Renaming applicationhost.config :


  1.     Close VS2017
  2.     Go into folder %userprofile%\Documents\IISExpress\config
  3.     Rename applicationhost.config
  4.     Restart VS and load the solution/project
  5.     VS should have recreated applicationhost.config, and project should load


2) Copy config files to IISExpress directory

copy all files from

    C:\Program Files\IIS Express\config\templates\PersonalWebServer

to

    %userprofile%\Documents\IISExpress\config


any of above solution will resolve your problem..

Comments

Popular posts from this blog

Angular User Session Timeout example step by step

Implement Nlog in .Net core MVC application part 1

Implement Logging in CSV file using Nlog in .net core MVC application- part 2

I have created an application to extract text from image using AI

Restore the lost focus of Auto post back controls in asp.net update Panel control