狀況
假設您有 Microsoft Visual Studio 2010 Service Pack 1 (SP1) 與 Microsoft.NET Framework 安裝的 4.5.3 的電腦。當您建立或開啟網站專案或 Windows Azure 專案時,會意外地出現下列對話方塊︰Microsoft Visual Studio
---------------------------
Configuring Web http://localhost:64886/ for ASP.NET 4.5 failed. You must manually configure this site for
ASP.NET 4.5 in order for the site to run correctly. ASP.NET 4.0 has not been registered on the Web server.
You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly.
---------------------------
OK Help
解決方案
Windows Update
Windows Update 提供此更新程式
下載資訊
可從「Microsoft 下載中心」下載下列檔案:
立即下載套件。
如需有關如何下載 Microsoft 支援檔案的詳細資訊,請按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件:
119591如何從線上服務取得 Microsoft 的支援檔案Microsoft 會掃描這個檔案有無病毒。Microsoft 會使用張貼檔案當日可使用的最新病毒偵測軟體。檔案會儲存在加強安全性的伺服器,以避免受到任何未經授權的更改。
更多的資訊
先決條件
若要套用此 hotfix,您必須使用 Microsoft Visual Studio 2010 安裝 SP1。
重新啟動需求
您不必重新啟動電腦,如果受影響的檔案不在使用一次的安裝,安裝 hotfix 之後。我們建議您安裝此 hotfix 之前,關閉所有 Visual Studio 2010 SP1 相關的元件。
檔案資訊
檔案名稱 |
版本 |
大小 |
日期時間上次修改 |
日期時間建立 |
---|---|---|---|---|
webdirprj.dll |
10.0.40219.466 |
450,192 |
10/21/2014年上午 10:57 |
10/21/2014年上午 11:23 |
WebAppUpgrade.dll |
10.0.40219.466 |
274,592 |
10/21/2014年上午 10:57 |
10/21/2014年上午 11:23 |
mswebprj.dll |
10.0.40219.466 |
1,759,384 |
10/18/2014年 03:58 PM |
10/21/2014年上午 11:23 |
Microsoft.VisualStudio.Web.Application.dll |
10.0.40219.466 |
1,177,808 |
10/21/2014年上午 10:57 |
10/21/2014年上午 11:23 |
Microsoft.WebApplication.targets |
10.0.40219.466 |
18,592 |
10/13/2014年 09:33 PM |
10/21/2014年上午 11:23 |
因應措施
若要解決這個問題,請按一下[確定] ,當您建立新的專案,或開啟現有的網站專案或 Windows Azure 專案後,對話方塊隨即出現。執行這項操作之後,專案如預期般運作。
狀態
Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。