IIS8中部署WCF服務出錯:HTTP 錯誤 404.3 - Not Found

來源:互聯網
上載者:User

標籤:rpo   需要   3.0   ack   命令列   display   work   ati   dism   

解決方案,以管理員身份進入命令列模式,運行:

"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y

==============================================================

-r         - 重新安裝此版本的 Windows Communication Foundation,

              並更新 IIS 中繼資料庫根處的指令碼映射和根以下的所有

              指令碼映射。無論原始版本是什麼,都將現有的指令碼映射

              升級到此版本。

-y         - 在卸載或重新安裝組件之前不要求確認。

==============================================================不過這是3.0的,我根據路徑尋找只能看到4.0,而且還報錯:==============================================================

C:\Windows\system32>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\ServiceModelReg.exe" -r

Microsoft(R) WCF/WF 註冊工具版本 4.5.0.0

著作權(C) Microsoft Corporation。著作權所有,並保留一切權利。

用於管理一台電腦上 WCF 和 WF 組件的安裝和卸載的管理工具 + 生產力。

[錯誤]此 Windows 版本不支援此工具。管理員應改為使用“開啟或關閉 Windows 功能”對話框或 dism 命令列工具來安裝/卸載 Windows Communication Foundation 功能。

==============================================================

根據提示,去控制台->程式->啟用或關閉Windows功能,如所示,將需要的WCF服務勾選上就好了。

如果之前不小心嘗試了3.0的命令(我就是。。。),再用:

"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" –ua

卸載一下就好了。

IIS8中部署WCF服務出錯:HTTP 錯誤 404.3 - Not Found

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.