VS2017 RC - The following error occurred when trying to configure IIS Express

江枫思渺然 提交于 2021-01-27 14:43:20

问题


Installed VS2017 RC - Started New Project ASP.NET Core Web Aplication(.Net CORE), selected Individual User Accounts as Authentication type. Try to run code generated with no changes and got the following error: Error occurred when trying to configure IIS Express for project... Error: ../.vs/config/applicationhost.config Error: cannot write configuration file

Looked at that file and it appears that it should have been writable.

FYI using VS2015 Update 3 everything builds and runs as expected including IIS Express.


回答1:


I was having this issue, but only after the recent updated to Visual Studio 2017 RC (12/12/16).

I searched for a good hour and really didn't find anything, so I simply downloaded the latest IIS Express (v10) and it seems to have corrected the issues for 2017, but also for 2015 that started after the update as well.

IIS Express Download




回答2:


I have encountered the same issue but deleting .vs folder worked for me.




回答3:


EFS (Encryption File System) is known to cause file access problems. Ensure that EFS is turned off in your project directory.

More information: https://blog.danielsmon.com/2017/04/03/cant-write-to-applicationhost-config/



来源:https://stackoverflow.com/questions/40685105/vs2017-rc-the-following-error-occurred-when-trying-to-configure-iis-express

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!