錯誤:我創建了一個簡單的WCF Web服務,當我託管在遠程服務我收到以下錯誤:
Could not find default endpoint element that references contract 'ServiceReference1.IService1' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
有人可以幫助我,請與問候到端點配置?
當服務是本地計算機的客戶端在以下指向上運行:
<endpoint name="BasicHttpBinding_IService1"
address="http://localhost:54651/Service1.svc"
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IService1"
contract="ServiceReference1.IService1" />
我們需要什麼寫在該服務的網站託管服務運行?
發佈你的客戶端和服務配置文件 – Tim
你在IIS中託管這個WCF服務,還是你自己託管它? –
當它在本地機器上工作嗎?現在服務在哪裏?請發佈**當前**服務和客戶機配置文件 - 錯誤信息本身是非常具有說服力的,沒有你的進一步信息,這只是一個猜謎遊戲。 – Tim