我有一個簡單的WCF服務,我會嘗試添加服務引用爲我的控制檯應用程序,它工作正常,並自動生成Web配置配置。WCF服務未生成web配置配置
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IService1" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:50765/Service1.svc" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IService1" contract="MyFirstService.IService1"
name="BasicHttpBinding_IService1" />
</client>
</system.serviceModel>
在同樣的服務我嘗試添加我的MVC項目的服務引用。服務引用已成功添加,但未生成web-config配置。 我該如何解決這個問題?
是它給人的錯誤,而將基準?是否描述了在MVC項目中調用服務時面臨的錯誤? –
我沒有任何錯誤 – user2384352
您是否能夠在您的MVC應用程序中創建代理客戶端? –