我正在尝试使用此命令从 cmd 在 IIS Express 上启动 ASP.NET MVC 项目
iisexpress/site:MySiteName
但我收到了这条消息
The following site was not found in the configuration file
我在这里缺少什么!?
最佳答案
来自documentation :
/config:config-file The full path to the applicationhost.config file. The default value is the IISExpress8\config\applicationhost.config file that is located in the user's Documents folder.
因此您需要添加配置键 /config:
并写入配置的路径。
关于asp.net-mvc - 从cmd启动站点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32067047/