Reputation: 211
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.
Upvotes: 21
Views: 19192
Reputation: 21
As suggested by @silas my issue was with OneDrive as well. after disabling OneDrive sync on "Documents Folder" problem gets resolved. To be precise system was trying to access "C:\Users[user name]\Documents\IISExpress\config"
Upvotes: 2
Reputation: 31
In my case with VS2019 works:
Upvotes: 3
Reputation: 113
Here is another suggestion which seems a bit easier.
It should open ok after these steps.
Upvotes: 7
Reputation: 176
In my case, the OneDrive application is removing by default the content of "C:\Users\username\Documents\IISExpress\config" folder, so Visual Studio cannot copy the .config files into .vs folder on the solution directory.
I resolved it by ensuring the files are on this path, and disabled the backup option on Documents directory in the OneDrive settings.
Upvotes: 1
Reputation: 388
I solved the problem with help of Drave answer. But I put that 3 files into below address:
[my project]\.vs\config\
when I put that files into confing folder and I reloaded the project, problem solved.
tnx again from Drave answer
Upvotes: 3
Reputation: 901
Upvotes: 90