How to configure Visual Studio 2008 to use IIS Express?

被刻印的时光 ゝ 提交于 2019-12-17 16:10:36

问题


The IIS Express FAQ notes that:

You can also manually launch IIS Express from the command line and use it with Visual Studio 2008, using the custom web server option

How do I configure the Start Options to get this working?


回答1:


The following seems to work for IIS Express launching from the command line:

  1. Open the Properties for the web site

  2. Select Start Options

  3. Under Start Action select Start External Program, put the path to iisexpress.exe (C:\Program Files (x86)\IIS Express\iisexpress.exe)

  4. Command Line Arguments: /path:{path to the project solution} /clr:3.5

  5. Under Server, select Use Custom Server

  6. Base Url: http://localhost:8080/ (the default for IIS Express)

  7. 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.



来源:https://stackoverflow.com/questions/4682727/how-to-configure-visual-studio-2008-to-use-iis-express

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!