JetBrains Rider运行.Net Framework Web项目提示applicationhost.config不存在解决方法

今天在公司改了一个.Net Framework的Web项目,由于Visual Studio的License还没有收到,所以就用Rider来修改,改完之后点击Debug,运行报错提示

An error occurred while reading configuration information. 
Make sure that the configuration file xxxxxxxxx\.idea\config\applicationhost.config exists, 
it is accessible, and contains valid configuration information.

经过一番问题查找解决方法如下:
右键Web项目选择Properties


Properties.png

选择Web页面,之后选择Server type为IIS Express,并且勾选Generate applicationhost.config,这个非常重要,必须勾选。
然后再次运行可以正常访问。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容