1
我已經創建了asp.net web應用程序,並在服務器中託管了serivce參考。當我在Visual Studio上運行asp.net應用程序時,它運行時沒有任何錯誤。但是當我在雲服務器上託管它時,出現錯誤 「URl上沒有可以接受消息的端點」 聽到是在WCF Web服務託管後的WCF錯誤在雲服務器
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="NewBinding0" />
</basicHttpBinding>
</bindings>
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint name="NewStandardEndpoint0" defaultOutgoingResponseFormat="Json" />
</webHttpEndpoint>
</standardEndpoints>
<services>
<service name="WcfService3.Service1">
<endpoint address="Service1.svc"
binding="basicHttpBinding" bindingConfiguration="NewBinding0"
name="sample" contract="WcfService3.IService1" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="NewBehavior0">
<webHttp />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="True" />
</system.serviceModel>
和聽到的端點配置是它的客戶端應用程序
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IService1" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://teamaaa-001-site1.smarterasp.net/Service1.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1" contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" />
</client>
</system.serviceModel>
我改變protocole映射ØHTTP。但問題仍然相同。做我需要做的客戶端應用程序的Web配置一些變化。我可以在客戶端應用程序運行在Visual Studio上時提供服務。 – kokila550
你的整個配置部分看起來像我的上面添加? – Stalzer