win10 wcf 部署 未能從程序集“System.ServiceModel, Version=3.0.0.0,

https://www.codeproject.com/Articles/613812/Solve-IIS-Error-Could-not-load-type-System-Servi

未能從程序集“System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加載類型“System.ServiceModel.Activation.HttpModule”。

The final solution was to delete the 3.x module and handler from IIS manager. You could delete them at the application or site level if you want to keep them in applicationHost.config. But I wanted to delete them from applicationHost.config. So I did the following steps:

  1. In IIS manager, click the machine name node.
  2. In “Features View”, double-click “Modules”.
  3. Find “ServiceModel” and remove it. 
  4. Go back to the machine name node’s “Features View”, double-click “Handler Mappings”.
  5. Find “svc-Integrated” and remove it.

按照上面https://www.codeproject.com/Articles/613812/Solve-IIS-Error-Could-not-load-type-System-Servi的處理,還是不行

 

後面的處理方法:

刪除之後再加上這些就好了,莫名其妙。。。

映射:

*.svc

System.ServiceModel.Activation.HttpHandler

svc-Integrated

模塊:

ServiceModel

System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

ServiceModel-4.0

System.ServiceModel.Activation.ServiceHttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

 

 

概念[編輯]

WCF由於集合了幾乎由.NET Framework所提供的通信方法,因此學習曲線比較陡峭,開發人員必須要針對各個部分的內涵做深入的瞭解,才能夠操控WCF來開發應用程序。

  • 通信雙方的溝通方式,由合約 (Contract)來訂定。
  • 通信雙方所遵循的通信方法 (communication protocol),由協議綁定 (Binding)來訂定。
  • 通信期間的安全性,由雙方約定的安全性層次來訂定。

 

合約(Contract)[編輯]====》Contract

WCF的基本概念是以合約(Contract)來定義雙方溝通的協議,合約必須要以接口的方式來呈現,而實際的服務代碼必須要由這些合約接口派生並實現。合約分成了四種:

  1. 數據合約(Data Contract),訂定雙方溝通時的數據格式。
  2. 服務合約(Service Contract),訂定服務的定義。
  3. 營運合約(Operation Contract),訂定服務提供的方法。
  4. 消息合約(Message Contract),訂定在通信期間改寫消息內容的規範。

 

協議綁定(Binding)[編輯]===》config

由於WCF支持了HTTPTCPNamed PipeMSMQ,Peer-To-Peer TCP等協議,而HTTP又分爲基本HTTP支持(BasicHttpBinding)以及WS-HTTP支持(WsHttpBinding),而TCP亦支持NetTcpBinding,NetPeerTcpBinding等通信方式,因此,雙方必須要統一通信的協議,並且也要在編碼以及格式上要有所一致。

雖然WCF也可以使用SOAP做通信格式,但它和以往的ASP.NET XML Web Services不同,因此有部分技術文章中,會將ASP.NET的XML Web Services稱爲ASMX Service

WCF的服務可以掛載於Console Application,Windows Application,IIS(ASP.NET)Application,Windows Service以及Windows Activation Services中,但大多都會掛在Windows Service。

 

 

https://blog.csdn.net/yl2isoft/article/details/53841478


 

wcf服務寄宿時,如何指定終結點三要素纔不會出錯


https://www.cnblogs.com/zzj-suxiao/articles/3797191.html

WCF Service Configuration Editor的使用(轉)

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章