本文介绍了没有端点在听...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误:

在可以接受该消息的https://xxxxxxxxxxxx/DataCacheSync.svc上没有侦听任何终结点的端点.这通常是由不正确的地址或SOAP操作引起的.有关更多详细信息,请参见InnerException(如果存在).

内部异常:远程服务器返回错误:(404)未找到.

从我阅读的内容来看,这是https的问题.这很有意义,因为在不使用https的localhost上运行时,此同步工作正常.

我在该项目上处于支配地位,需要该应用程序在星期二之前成功同步.我试图使用我在互联网上找到的所有解决方案,但没有任何效果.我真的认为配置文件中可能缺少一些简单的内容.

这是网站的Web配置:

I get this error:

There was no endpoint listening at https://xxxxxxxxxxxx/DataCacheSync.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

Inner Exception: The remote server returned an error: (404) Not Found.

From what I have read this is an issue with https. Which makes sense because this sync works fine when run on localhost which does not use https.

I am under the gun on this project and need the application to be syncing successfully by Tuesday. I have tried to use all the solutions that I found on the internet but nothing has worked. I really think it is probably something simple that I am missing in the config files.

Here is the web config for the website:

<system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="authenticated">
          <serviceCredentials>
            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" membershipProviderName="EcosystemsMembershipProvider" />
          </serviceCredentials>
          <serviceMetadata httpGetEnabled="false" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
        <behavior name="default">
          <serviceMetadata httpGetEnabled="false" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <basicHttpBinding>
        <binding name="secureBasicBinding">
          <security mode="Transport">
            <transport clientCredentialType="None" />
          </security>
        </binding>
      </basicHttpBinding>
      <!-- Setting maxReceivedMessageSize ensures that we do not encounter 404 errors when uploading large amounts of data -->
      <wsHttpBinding>
        <binding maxReceivedMessageSize="2147483647" name="secureWsBinding" receiveTimeout="00:10:00" sendTimeout="00:10:00">
          <security mode="Transport">
            <transport clientCredentialType="None" />
          </security>
        </binding>
        <binding maxReceivedMessageSize="2147483647" name="authenticatedWsBinding" receiveTimeout="00:10:00" sendTimeout="00:10:00">
          <security mode="Transport">
            <transport clientCredentialType="None" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <services>
      <!-- EDT services -->
      <service name="Icfi.Ecosystems.Edt.Services.Services.DataCacheSyncService" behaviorConfiguration="default">
        <endpoint binding="wsHttpBinding" bindingConfiguration="authenticatedWsBinding" contract="Icfi.Ecosystems.Synchronization.Services.Contracts.IDataCacheSyncContract" />
      </service>
      <service name="Icfi.Ecosystems.Edt.Services.Services.ProjectsService" behaviorConfiguration="default">
        <endpoint binding="wsHttpBinding" bindingConfiguration="authenticatedWsBinding" contract="Icfi.Ecosystems.Edt.Services.Contracts.IProjectsContract" />
      </service>
      <!-- Security services -->
      <service name="Icfi.Ecosystems.Security.Services.AuthenticationService" behaviorConfiguration="default">
        <endpoint binding="basicHttpBinding" bindingConfiguration="secureBasicBinding" contract="Icfi.Ecosystems.Security.Services.Contracts.IAuthenticationContract" />
      </service>
      <service name="Icfi.Ecosystems.Security.Synchronization.Services.SecurityCacheDownloadService" behaviorConfiguration="default">
        <endpoint binding="wsHttpBinding" bindingConfiguration="secureWsBinding" contract="Icfi.Ecosystems.Synchronization.Services.Contracts.IDataCacheDownloadContract" />
      </service>
      <!-- Wind services -->
      <service name="Icfi.Ecosystems.Wind.Mortality.Services.DataCacheSyncService" behaviorConfiguration="default">
        <endpoint binding="wsHttpBinding" bindingConfiguration="authenticatedWsBinding" contract="Icfi.Ecosystems.Synchronization.Services.Contracts.IDataCacheSyncContract" />
      </service>
    </services>
    <serviceHostingEnvironment>



这是进行同步的应用程序的应用程序配置:



And here is the app config for the application doing the syncing:

<system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="default"

                 closeTimeout="00:01:00"

                 openTimeout="00:01:00"

                 receiveTimeout="00:10:00"

                 sendTimeout="00:10:00"

                 bypassProxyOnLocal="false"

                 transactionFlow="false"

                 hostNameComparisonMode="StrongWildcard"

                 maxBufferPoolSize="2147483647"

                 maxReceivedMessageSize="2147483647"

                 messageEncoding="Text"

                 textEncoding="utf-8"

                 useDefaultWebProxy="true"

                 allowCookies="false">
          <readerQuotas maxDepth="32"

                        maxStringContentLength="8192"

                        maxArrayLength="16384"

                        maxBytesPerRead="4096"

                        maxNameTableCharCount="16384" />
          <reliableSession ordered="true"

                           inactivityTimeout="00:10:00"

                           enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="None"/>
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <!-- Local security daemon -->
      <endpoint address="net.pipe://localhost/icfi/ecosystems/Authenticate"

                binding="netNamedPipeBinding"

                contract="Icfi.Ecosystems.Security.Services.Contracts.IAuthenticationContract" />
      <endpoint address="net.pipe://localhost/icfi/ecosystems/User"

                binding="netNamedPipeBinding"

                contract="Icfi.Ecosystems.Security.Services.Contracts.IUserContract" />ent>
      <endpoint address="https://ecosystems.icfwebservices.com/Services/WindEnergy/DataCacheSync.svc"

                binding="wsHttpBinding"

                bindingConfiguration="default"

                contract="Icfi.Ecosystems.Synchronization.Services.Contracts.IDataCacheSyncContract" />
    </client>
  </system.serviceModel>

推荐答案

<bindings>
  <basicHttpBinding>
    <binding name="SecurityByTransport">
      <security mode="Transport">
        <transport clientCredentialType="Windows" />
       </security>
     </binding>
  </basicHttpBinding>
</bindings>



Try different ClientCredentialType.Here is the list of different types of settings HttpClientCredentialType[^]

In addition check any security impersonation that you might need in order to access the service.ASP.NET Impersonation[^]



Try different ClientCredentialType.Here is the list of different types of settings HttpClientCredentialType[^]

In addition check any security impersonation that you might need in order to access the service.ASP.NET Impersonation[^]



这篇关于没有端点在听...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:41