IIS Express server is not starting and throwing the following error.
The following error occurred when trying to configure IIS Express for project <project_name>.
Filename : redirection.config
Error: cannot read configuration file
I have reinstalled IIS Express server, removed and installed all the packages and even repaired visual studio. But nothing worked.
I removed .VS
folder, even this didn't worked :-(.
I got the fix, I don't know how my %userprofile% directory has two Documents named folder. Really Strange. I have no idea why there were two folders with exact name "Documents".I copied IISExpress and Mysites folders from Second Documents Folder to First Documents folder, And it worked.
Edit: Those Documents folders were actually not in same folder there were in
C:\Users\<username>\Documents
C:\Users\<username>\OneDrive\Documents