Virtual Directory Not Created - Azure Bot

时间:2018-02-01 18:13:16

标签: c# azure visual-studio-2017 botframework

I am developing a bot in Azure using the Bot Framework (C#). After spinning it up on Azure I downloaded the source code and tried to open the provided Visual Studio solution file but got an error

Creation of virtual directory http://localhost:3894/ failed with the error: Filename: redirection.config Error cannot read configuration file 

Google points towards an issue with IIS or IISExpress but the recommended solutions (forcing IIS to recreate config files by renaming them) didn't work. I don't know if the issue is with Visual Studio, my system, or something else entirely but anything that could shine light on the situation would be appreciated.

EDIT: Deleted and Re-downloaded both VS and IISExpress, did not fix the problem

1 个答案:

答案 0 :(得分:0)

尝试在解决方案资源管理器中右键单击您的项目,然后选择属性。左侧的选择网站。单击“创建虚拟目录”按钮。看看它是否适合你。

enter image description here