更新时间:2022-03-20 23:33:26
我遇到了完全相同的问题。
原因 - 糟糕的IIS配置文件。
I had the exact same problem.
The reason - bad IIS config file.
尝试删除自动创建的 IISExpress
文件夹,该文件夹通常位于%userprofile%/ Documents
,例如 C:\ Users \ [you] \Documents\IISExpress
。
Try deleting the automatically-created IISExpress
folder, which is usually located at %userprofile%/Documents
, e.g. C:\Users\[you]\Documents\IISExpress
.
别担心, VS应该再次创建 - 正确,这次 - 再次运行解决方案。
Don't worry, VS should create it again - correctly, this time - once you run your solution again.
编辑:删除命令行文件夹:
Command line for deleting the folder:
rmdir /s /q "%userprofile%\Documents\IISExpress"