asp.net-mvc - 从cmd启动站点

标签 asp.net-mvc debugging visual-studio-2015 iis-express

我正在尝试使用此命令从 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/

相关文章:

c# - Asp.net单元测试模型数据注解DataType.EmailAddress?

javascript - 如何在 ASP MVC 中隐藏表列

c# - 为什么 AutogenerateBindingRedirects 不适用于 Visual Studio 2017 中的 Web.config

debugging - 如何在 IntelliJ Idea 中调试 scalatra 应用程序?

visual-studio - Visual Studio 2015 从 SQL Server 2012 LocalDB 迁移数据库 - 登录时出错

c++ - 来自 Microsoft MSDN 的 WinUSB 教程

javascript - 如何将此表中的数据作为列表提交到 asp.net mvc 中的操作?

eclipse - 如何在 eclipse 中调试 Node.js 程序(使用 node-eclipse)?

c++ - 我可以将 Visual Studio 2005 设置为在调试时忽略特定代码区域中的断言吗

VS2015下的C++/CLI调试支持