更新 好吧,在对付了这个之后,我终于重新开始了这项服务。虽然我现在还不确定实际的根本原因,但我做的一个改变是使用标准的System.ServiceModel.Activation.WebServiceHostFactory而不是我们通常使用的自定义,现在一切都按预期工作。
我花了2天的大部分时间试图解决这个问题但仍然迷失了所以希望有人可以帮助我。我有一个宁静的服务,也有一个肥皂终点,直到这个星期二过去像一个冠军。现在,突然在VS 2013中构建时生成的wsdl完全没有问题,并且根本没有任何端点正在工作。我已经完成了所有工作,在周二(5月10日)之前恢复了代码和配置设置,仍然无法使其正常工作。我已经清除了我的临时ASP网络文件,我已经重置了IIS,破坏了代码,让它变得新鲜,我能想到的一切。
每当我尝试通过REST路径访问服务时,我收到的消息是没有找到终点,当我尝试通过基本路由时,我收到一条消息,指出HTTP 415错误。我将我的SERVICE配置的各个部分包括在内以供参考,但自从星期二以来这一直没有改变。我们还尝试部署到其他机器并在其他开发盒上测试具有相同的结果。我故意删除了一些名字。任何帮助将不胜感激。
<system.serviceModel>
<bindings>
<customBinding>
<binding name="FdrBinding" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:05:00" sendTimeout="00:05:00">
<textMessageEncoding messageVersion="Soap11">
<readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxStringContentLength="5242880"/>
</textMessageEncoding>
<security includeTimestamp="true" authenticationMode="MutualCertificate" defaultAlgorithmSuite="Basic128Sha256Rsa15" securityHeaderLayout="LaxTimestampLast" enableUnsecuredResponse="true" messageSecurityVersion="WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10" />
<httpsTransport maxReceivedMessageSize="5242880" maxBufferPoolSize="5242880" maxBufferSize="5242880" proxyAddress="http://10.10.1.54:80" bypassProxyOnLocal="false" useDefaultWebProxy="false" />
</binding>
</customBinding>
<netTcpBinding>
<binding name="DASBDI_NetTcpBinding" closeTimeout="00:59:00" openTimeout="00:59:00" receiveTimeout="00:59:00" sendTimeout="00:59:00" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="5242880" maxArrayLength="16384" maxBytesPerRead="4096" />
</binding>
<binding name="DASFDR_NetTcpBinding" closeTimeout="00:59:00" openTimeout="00:59:00" receiveTimeout="00:59:00" sendTimeout="00:59:00" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="5242880" maxArrayLength="16384" maxBytesPerRead="4096" />
</binding>
<binding name="TMGTokenService_NetTcpBinding" closeTimeout="00:59:00" openTimeout="00:59:00" receiveTimeout="00:59:00" sendTimeout="00:59:00" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="5242880" maxArrayLength="16384" maxBytesPerRead="4096" />
</binding>
<binding name="DASSymConnect_NetTcpBinding" closeTimeout="00:59:00" openTimeout="00:59:00" receiveTimeout="00:59:00" sendTimeout="00:59:00" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="5242880" maxArrayLength="16384" maxBytesPerRead="4096" />
</binding>
</netTcpBinding>
<basicHttpBinding>
<binding name="AccountViewsSoap" maxReceivedMessageSize="2147483647">
<security mode="Transport" />
</binding>
<binding name="AccountViewsSoap1" />
<binding name="AccountMaintenanceSoap" maxReceivedMessageSize="2147483647">
<security mode="Transport" />
</binding>
<binding name="AccountMaintenanceSoap1" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://openservices.beta.themembersgroup.com/accountviews.asmx"
binding="basicHttpBinding" bindingConfiguration="AccountViewsSoap"
contract="AccountViewsService.AccountViewsSoap" name="AccountViewsSoap" />
<endpoint address="https://openservices.beta.themembersgroup.com/accountmaintenance.asmx"
binding="basicHttpBinding" bindingConfiguration="AccountMaintenanceSoap"
contract="AccountMaintenanceService.AccountMaintenanceSoap"
name="AccountMaintenanceSoap" />
</client>
<services>
<service behaviorConfiguration="MemberDocuments.ServiceBehavior"
name="Kinecta.BusinessServices.MemberDocuments.BLSMemberDocuments">
<endpoint address="BLSMemberDocumentsREST"
binding="webHttpBinding"
behaviorConfiguration="restBehavior"
contract="Kinecta.PublicServiceContracts.IBLSMemberDocuments">
</endpoint>
<endpoint address="BLSMemberDocumentsSOAP"
binding="basicHttpBinding"
behaviorConfiguration="soapBehavior"
contract="Kinecta.PublicServiceContracts.IBLSMemberDocuments">
</endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MemberDocuments.ServiceBehavior">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="restBehavior">
<webHttp faultExceptionEnabled="true" />
</behavior>
<behavior name="soapBehavior">
</behavior>
</endpointBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpBinding" scheme="http" />
<add binding="webHttpBinding" scheme="http"/>
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</modules>
<handlers>
<add name="UrlRoutingHandler"
preCondition="integratedMode"
verb="*" path="UrlRouting.axd"
type="System.Web.HttpForbiddenHandler,
System.Web, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</handlers>
<directoryBrowse enabled="true"/>
</system.webServer>