2011年5月16日 星期一

在VS2010 SP1專案中使用IIS 7.5 Express

Visual Studio 2010中使用File System方式建立Web Site或透過專案方式建立Web Application預設都會使用ASP.NET Development Server來執行網站程式,它相當於IIS 6.0的精簡版。若要使用到IIS 7.5的新功能,現在除了將網站建立在真正IIS 7.5上,還有另一個選擇,便是使用IIS 7.5 Express版。
首先你需要先到http://www.microsoft.com/web/gallery/install.aspx?appid=iisexpress下載IIS 7.5 Express,然後安裝:
image
安裝畫面;
image
完成後可以選擇安裝其它額外的功能。
image
以後在Visual Studio 2010 建立Web Site或Web Application時就可以選取要使用IIS 7.5 Express來執行;
image
Visual Studio會詢問是否要使用IIS 7.5 Express;
image
然後轉換
image
以後在工作列下方就可以看到IIS Express的小圖示,
image
在Visual Studio 2010專案屬性視窗下方也可以進階去設定驗證方式,要不要使用SSL等等功能
image
你也可以在Visual Studio 2010 的Tools->Options中設定未來的網站程式,會優先使用IIS 7.5 Express來執行
image

沒有留言:

總網頁瀏覽量