Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 将WCF服务部署到共享主机环境_.net_Wcf - Fatal编程技术网

.net 将WCF服务部署到共享主机环境

.net 将WCF服务部署到共享主机环境,.net,wcf,.net,Wcf,我创建了一个非常简单的WCF类库,并将该项目添加到具有web项目的解决方案中。我从web项目中添加了对服务的引用。在当地,一切正常 当我将网站复制到我的主机提供商时,我会遇到各种各样的错误。目前我有以下错误: Parser Error Message: The binding at system.serviceModel/bindings/wsHttpBinding does not have a configured binding named 'WSHttpBinding_IService1

我创建了一个非常简单的WCF类库,并将该项目添加到具有web项目的解决方案中。我从web项目中添加了对服务的引用。在当地,一切正常

当我将网站复制到我的主机提供商时,我会遇到各种各样的错误。目前我有以下错误:

Parser Error Message: The binding at system.serviceModel/bindings/wsHttpBinding does not have a configured binding named 'WSHttpBinding_IService1'. This is an invalid value for bindingConfiguration.

Line 146:    </bindings>
Line 147:  <client>
Line 148:   <endpoint address="http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/"
Line 149:    binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1"
Line 150:    contract="ServiceReference1.IService1" name="WSHttpBinding_IService1">
Parser错误消息:system.serviceModel/bindings/wsHttpBinding处的绑定未配置名为“wsHttpBinding_IService1”的绑定。这是bindingConfiguration的无效值。
第146行:
第147行:
第148行:
将WCF服务部署到共享主机的正确方法是什么


非常感谢您的配置-正如您的错误所说:

分析器错误消息:位于的绑定 system.serviceModel/bindings/wsHttpBinding 没有配置的绑定 命名为“WSHttpBinding_IService1”。这 是的无效值 绑定配置

它正在查找名为“WSHttpBinding_IService1”的绑定配置,但未找到该配置


检查您的配置文件(web.config用于IIS托管,app.config用于自托管)-它是否包含所需的所有设置?很可能不是……

我不知道从哪里开始找。我在WCF里完全是个笨蛋。我应该发布web.config文件的哪些部分,让人们了解可能的错误?WCF配置是
部分的全部内容