更新时间:2022-12-01 08:59:38
以下似乎适用于从命令行启动IIS Express:
The following seems to work for IIS Express launching from the command line:
打开网站的Properties
选择Start Options
在开始操作"下,选择"Start External Program
",然后将路径放入iisexpress.exe
(C:\Program Files (x86)\IIS Express\iisexpress.exe
)
Under Start Action select Start External Program
, put the path to iisexpress.exe
(C:\Program Files (x86)\IIS Express\iisexpress.exe
)
命令行参数:/path:{项目解决方案的路径}/clr:3.5
Command Line Arguments: /path:{path to the project solution} /clr:3.5
在Server
下,选择Use Custom Server
基本网址:http://localhost:8080/
(IIS Express的默认设置)
Base Url: http://localhost:8080/
(the default for IIS Express)
重要!.取消选中Debuggers
下的所有内容,否则将收到错误消息无法在Web服务器上开始调试.
Important! Uncheck everything under Debuggers
otherwise you'll get an error "Unable to start debugging on the web server.
Information on launching using a config file can be found at this site: Debug Your .NET Web Project With IIS Express [Tips & Tricks]. This is VS2010 specific but I suspect the same will work for 2008.