I have ASP.NET 4.0 WCF service and Web application as a client for WCF service. Everything is working fine with the below configuration in the visual studio.
Development Environment: I have hosted the WCF service in server A and Seb application in Server B, IIS 6 and selected the framework 4.0.
I am having problem only in specific to staging server. When I point the from the development web application to staging WCF service, Then it is working fine.
The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[WebException: The remote server returned an error: (404) Not Found.]
System.Net.HttpWebRequest.GetResponse() +6114899
System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +48
[EndpointNotFoundException: There was no endpoint listening at http://XXX-ws.XXXXX.com:8080/p1Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +9440287
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +345
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
bkrishnaelis...
0 Points
1 Post
EndpointNotFoundException: There was no endpoint listening at .svc that could accept the message.
Nov 20, 2012 09:04 PM|LINK
I have ASP.NET 4.0 WCF service and Web application as a client for WCF service. Everything is working fine with the below configuration in the visual studio.
Development Environment: I have hosted the WCF service in server A and Seb application in Server B, IIS 6 and selected the framework 4.0.
I am having problem only in specific to staging server. When I point the from the development web application to staging WCF service, Then it is working fine.
WCF Configuration
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" >
<baseAddressPrefixFilters>
<add prefix="http://XXX-ws.XXXXX.com:8080"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
<services>
<service behaviorConfiguration="X1Behavior"
name="X1Service">
<endpoint address="" binding="wsHttpBinding" contract="X1.Ip1Service" bindingConfiguration="NoSecurityConfig">
</endpoint>
</service>
<service behaviorConfiguration="X2Behavior"
name="X2Service">
<endpoint address="" binding="wsHttpBinding" contract="X2.Ip2Service" bindingConfiguration="NoSecurityConfig">
</endpoint>
</service>
<service behaviorConfiguration="X3Behavior"
name="X3Service">
<endpoint address="" binding="wsHttpBinding" contract="X3.Ip3Service" bindingConfiguration="NoSecurityConfig">
</endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="X1Behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="X2Behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="X3Behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="NoSecurityConfig">
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
Website Config File
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_ISecurityRoleService" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="20000000" maxReceivedMessageSize="20000000"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="20000000" maxArrayLength="20000000"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:20:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
<binding name="WSHttpBinding_IPartnerCareerProfileService" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:20:00" sendTimeout="00:10:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="20000000" maxReceivedMessageSize="20000000" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="20000000" maxArrayLength="20000000"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:20:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
<binding name="WSHttpBinding_IUserService" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="20000000" maxReceivedMessageSize="20000000" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="20000000" maxArrayLength="20000000"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:20:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://XXX-ws.XXXXX.com:8080/p1Service.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_Ip1Service"
contract="p1Service.Ip1Service"
name="WSHttpBinding_Ip1Service" />
<endpoint address="http://XXX-ws.XXXXX.com:8080/p2Service.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_Ip2Service"
contract="p2Service.Ip2Service"
name="WSHttpBinding_Ip2Service" />
<endpoint address="http://XXX-ws.XXXXX.com:8080/p3Service.svc" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_Ip3" contract="p3Service.Ip3Service"
name="WSHttpBinding_Ip3Service" />
</client>
</system.serviceModel>
Error:
Server Error in '/xxxx' Application.
The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found.
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Haixia Xie -...
Contributor
3077 Points
297 Posts
Microsoft
Re: EndpointNotFoundException: There was no endpoint listening at .svc that could accept the mess...
Nov 22, 2012 05:08 AM|LINK
Hi bkrishnaelisetti,
Please enable tracing for the wcf service that help you diagnose what the exact issue is.
Best Regards.
Feedback to us
Develop and promote your apps in Windows Store