Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/280.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
WCF C#Windows应用商店应用程序我遇到了此异常“;[URL]上没有可以接受消息的端点侦听…”;_C#_Wcf_Windows Store Apps_Wcf Endpoint - Fatal编程技术网

WCF C#Windows应用商店应用程序我遇到了此异常“;[URL]上没有可以接受消息的端点侦听…”;

WCF C#Windows应用商店应用程序我遇到了此异常“;[URL]上没有可以接受消息的端点侦听…”;,c#,wcf,windows-store-apps,wcf-endpoint,C#,Wcf,Windows Store Apps,Wcf Endpoint,我制作了一个连接SQL DB并将数据获取到Windows应用商店应用程序的WCF。。。昨天很顺利。我可以从数据库获取数据到客户端应用程序。今天我再次打开解决方案,让我惊讶的是,它就这样停止工作了 我一直在寻找一些想法,但没有得到任何积极的结果 我没有修改一行代码,我真的不知道发生了什么。我试着做一个新的解决方案,一个新的项目,一点功能都没有,就是不起作用。 我试图更改wcf app.config,但没有成功。 有人能给我一些想法来解决这个问题吗 这是my WCF app.congif文件: &l

我制作了一个连接SQL DB并将数据获取到Windows应用商店应用程序的WCF。。。昨天很顺利。我可以从数据库获取数据到客户端应用程序。今天我再次打开解决方案,让我惊讶的是,它就这样停止工作了

我一直在寻找一些想法,但没有得到任何积极的结果

我没有修改一行代码,我真的不知道发生了什么。我试着做一个新的解决方案,一个新的项目,一点功能都没有,就是不起作用。 我试图更改wcf app.config,但没有成功。 有人能给我一些想法来解决这个问题吗

这是my WCF app.congif文件:

<?xml version="1.0" encoding="utf-8" ?> 
<configuration>
  <configSections>
  </configSections>
  <connectionStrings>
<add name="WcfBD.Properties.Settings.ProjetoFinalConnectionString"
  connectionString="Data Source=Asus;Initial Catalog=ProjetoFinal;Integrated Security=True"
  providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  </appSettings>
  <system.web>
<compilation debug="true" />
</system.web>
  <system.serviceModel>
<services>
<service name="WcfBD.BaseDadosWCF">
<endpoint address="" binding="basicHttpBinding" contract="WcfBD.IBaseDadosWCF">
 <identity>
        <dns value="localhost" />
      </identity>
    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    <host>
      <baseAddresses>
        <add baseAddress="http://localhost:8733/Design_Time_Addresses/WcfBD/Service1/" />
      </baseAddresses>
    </host>
  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior>
 <serviceDebug includeExceptionDetailInFaults="False" />
 </behavior>
 </serviceBehaviors>
</behaviors>
  </system.serviceModel>
</configuration>

我正在分享我的WCF服务配置,供您参考。你检查你的服务合同

<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="false"/>
<services>
  <service behaviorConfiguration="ServiceBehaviour" name="DataService.DataService">
    <endpoint address="web" behaviorConfiguration="jsonBehavior" binding="webHttpBinding" bindingConfiguration="webHttpBindingWithJsonP" contract="DataService.IDataService"/>
     <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="DataService.IDataService"  />
    <endpoint address="soap" binding="basicHttpBinding" contract="DataService.IDataService"/>
  </service>
</services>
<behaviors>
  <endpointBehaviors>
    <behavior name="jsonBehavior">
      <webHttp helpEnabled="true"  faultExceptionEnabled="True" defaultBodyStyle="Bare" defaultOutgoingResponseFormat="Xml"/>
    </behavior>
  </endpointBehaviors>
  <serviceBehaviors>
    <behavior name="ServiceBehaviour">
      <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
      <serviceMetadata httpGetEnabled="true" />
      <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
      <serviceDebug includeExceptionDetailInFaults="true" httpHelpPageEnabled="True"/>
      <dataContractSerializer maxItemsInObjectGraph="2147483647" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<bindings>
  <webHttpBinding>
    <binding name="webHttpBindingWithJsonP" crossDomainScriptAccessEnabled="true" allowCookies="true">
      <security mode="None"></security>
      <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
    </binding>
  </webHttpBinding>
 <wsHttpBinding>
    <binding name="wsHttpBinding" allowCookies="true">
      <security mode="None"></security>
      <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
          maxArrayLength="2147483647" maxBytesPerRead="2147483647"
          maxNameTableCharCount="2147483647" />
    </binding>
  </wsHttpBinding>
</bindings>


也许您的Web服务器工作不正常?我想如果你不碰任何东西,那可能是Web服务器的问题。首先,查看您的IIS,可能会尝试重新启动它。

检查您的project web.config文件端点地址是否与您在应用程序中提到的相同。config@DhavalPatel我的客户端referece.scvmap文件具有以下终结点地址:`“/>`我认为webserver不是问题所在,因为我可以使用其他WCF。。那是唯一一个停下来工作的人:(这可能是一个奇怪的问题,但您是否尝试ping到您的端点?localhost:8733/Design_Time_Addresses/WcfBD/Service1,如果您没有更改web服务中的任何代码行,请将注意力集中在可能会更改的环境上?网络?客户端?防火墙?安全性?端口?…此时我接受所有问题=)…我没有ideias..WCF在客户端应用程序的同一个解决方案中…同一个解决方案,但不同的项目。我在本地工作,我甚至禁用了我的防病毒功能来尝试它…尝试使用SOAPUI调用您的web服务,以确保这不是客户端调用或配置问题。此外,SOAPUI是一个非常好的应用程序来测试您的WCF web服务:)不客气,您是否可以尝试将“http://”添加到您的客户端地址中?您还可以检查您的IE或firefox浏览器是否提供合同“.wsdl”。谢谢,我会试试它=)