一、服務器
二、
N、疑難解答
1 不能在此路徑中使用此配置節。如果在父級別上鎖定了該節,便會出現 這種情況。鎖定是默認設置的(overrideModeDefault="Deny"),或者是通過包含 overrideMode="Deny" 或舊有的 allowOverride="false" 的位置標記明確設置的。
HTTP 錯誤 500.19 - Internal Server Error 無法訪問請求的頁面,因為該頁的相關配置數據無效。 詳細錯誤信息: 模塊 IIS Web Core 通知 BeginRequest 處理程序 尚未確定 錯誤代碼 0x80070021 配置錯誤 不能在此路徑中使用此配置節。如果在父級別上鎖定了該節,便會出現 這種情況。鎖定是默認設置的(overrideModeDefault="Deny"),或者是通過包含 overrideMode="Deny" 或舊有的 allowOverride="false" 的位置標記明確設置的。 配置文件 \xx\web.config 配置源: 66: <modules runAllManagedModulesForAllRequests="true" /> 67: <handlers> 68: <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
解決方案:控制面板—>添加Asp.Net相關項
2 Web.config 文件的 <compilation> 元素中的“targetFramework”特性僅用於目標 .NET Framework 版本 4.0 或更高版本(例如“<compilation targetFramework="4.0">”)。“targetFramework”特性當前引用的版本高於已安裝的 .NET Framework 版本。請指定 .NET Framework 的有效目標版本,或安裝所需的 .NET Framework 版本
3 HTTP Error 404.3 - Not Found
HTTP Error 404.3 - Not Found Description: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and is not allowed. Error Code: 0x80070032 Notification: ExecuteRequestHandler Module: StaticFileModule Requested URL: http://localhost:80/DotNetNuke_IWeb/DesktopModules/IWebCF/CoreService.svc Physical Path: C:\Users\Documents\Visual Studio 2005\Projects\IWeb\Website\DesktopModules\IWebCF\CoreService.svc Logon User: Anonymous Logon Method: Anonymous Handler: StaticFile
解決方案:
Most likely causes:
- It is possible that a handler mapping is missing. By default, the static file handler processes all content.
- The feature you are trying to use may not be installed.
- The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.
To resolve this(使得IIS支持WCF):
1) Select "run" from the Start menu
2) Enter "cmd" and click OK
3) enter "cd c:\windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\" and press Enter.
4) Enter "ServiceModelReg -i" and press Enter.
5) WCF will now be installed:
Also see:
http://blogs.msdn.com/davidwaddleton/archive/2007/11/02/wcf-and-404-3-errors.aspx
4 未能從程序集“System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加載類型“
由IIS管理員找到站台的「模組」項目:

開啟「模組」可發現ServiceModel及ServiceModel-4.0,第一筆為3.0版,第二筆為4.0版。

將ServiceModel(3.0版)移除,天下太平~

【後記】
本次禍首:IIS不認得SVC,手動執行ServiceModelReg.exe才惹出麻煩,在Windows 8/IIS8,要設定WCF請愛用「開啟及關閉Windows功能」。
