There was no endpoint listening at http://localhost/MyWCFService/ServiceSrv.svc that could accept the message. This is often caused by an incorrect address or SOAP action.
RSS
The remote server returned an error: (404) Not Found.
There was no endpoint listening at http://localhost/MyWCFService/ServiceSrv.svc that could accept the message. This is often caused by an incorrect address or SOAP action.
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above 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="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDocumentSrv" scheme="http" />
</protocolMapping>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
reason is that earlier it was working with Web service.
now it should work with WCF also.
so both WCF and WS service will run now its up to client which service we want to use either WS or WCF.
so reference is taken in Service.dll
I do not understand this. I think this is not possible like in asmx service you have wcf service or other way round and your client can access any one of them.
Shailendra S...
Member
551 Points
145 Posts
There was no endpoint listening at http://localhost/MyWCFService/ServiceSrv.svc that could accept...
Jan 03, 2013 02:34 PM|LINK
Hi
I am facing this issue as
The remote server returned an error: (404) Not Found.
There was no endpoint listening at http://localhost/MyWCFService/ServiceSrv.svc that could accept the message. This is often caused by an incorrect address or SOAP action.
I am using WShttpbinding.
Any Help
Regards
www.techaray.com
kushalrdalal
Contributor
7130 Points
1273 Posts
Re: There was no endpoint listening at http://localhost/MyWCFService/ServiceSrv.svc that could ac...
Jan 03, 2013 02:40 PM|LINK
could you post your config file of client and if possible service?
Are you using the third party service or you have created the service?
After creating service have you hosted it in IIS?
My Blog
LinkedIn Profile
Shailendra S...
Member
551 Points
145 Posts
Re: There was no endpoint listening at http://localhost/MyWCFService/ServiceSrv.svc that could ac...
Jan 03, 2013 02:57 PM|LINK
Hi Kushal ,
could you post your config file of client and if possible service? :added below
Are you using the third party service or you have created the service? ; my own service
After creating service have you hosted it in IIS? :yes
I have 3 parts.
1. The Client below is the config.
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IDocumentSrv" closeTimeout="00:05:00"
openTimeout="00:05:00" receiveTimeout="00:30:00" sendTimeout="00:10:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="255524288" maxReceivedMessageSize="35565536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="22224096" maxNameTableCharCount="222216384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<!--<security mode="None">
<transport clientCredentialType="None" />
</security>-->
<security mode="None">
<transport clientCredentialType="None" />
<message establishSecurityContext="false" />
</security>
<!--<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>-->
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/InteleScanService/DocumentSrv.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDocumentSrv"
contract="Transputec.Intelefile.Services.IDocumentSrv" name="WSHttpBinding_IDocumentSrv">
<identity>
<servicePrincipalName value="host/panther" />
</identity>
</endpoint>
</client>
</system.serviceModel>
2.
I have created a DLL of my Service Component where I am refering the WCF Service.its config is as below.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IDocumentSrv" closeTimeout="10:01:00"
openTimeout="10:01:00" receiveTimeout="10:10:00" sendTimeout="10:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<wsHttpBinding>
<binding name="WSHttpBinding_IDocumentSrv" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 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="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/InteleScanService/DocumentSrv.svc/basicHttpBinding"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IDocumentSrv"
contract="Transputec.Intelefile.Services.IDocumentSrv" name="BasicHttpBinding_IDocumentSrv" />
<endpoint address="http://localhost/InteleScanService/DocumentSrv.svc/wsHttpBinding"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDocumentSrv"
contract="Transputec.Intelefile.Services.IDocumentSrv" name="WSHttpBinding_IDocumentSrv">
<identity>
<userPrincipalName value="SHAILENDRA\ASPNET" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>
3. the WCF Service which is hosted in IIS its config is as below.
<system.serviceModel>
<services>
<service name="InteleScanService.CoreIntegration">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDocumentSrv"
contract="InteleScanService.ICoreIntegration" />
</service>
<service name="InteleScanService.DocumentSrv">
<endpoint address="wsHttpBinding" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDocumentSrv"
contract="InteleScanService.IDocumentSrv" />
<endpoint address="basicHttpBinding" binding="basicHttpBinding"
bindingConfiguration="basicHttpBinding" contract="InteleScanService.IDocumentSrv" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="basicHttpBinding" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="22365478"/>
</binding>
</basicHttpBinding>
<wsHttpBinding>
<binding name="WSHttpBinding_IDocumentSrv" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="21147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="320" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</wsHttpBinding>
<mexHttpBinding>
<binding name="mexHttpBinding"></binding>
</mexHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above 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="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDocumentSrv" scheme="http" />
</protocolMapping>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
www.techaray.com
kushalrdalal
Contributor
7130 Points
1273 Posts
Re: There was no endpoint listening at http://localhost/MyWCFService/ServiceSrv.svc that could ac...
Jan 03, 2013 03:52 PM|LINK
When you directly put this localhost url in your browser does it work?
Like if you put this url directly on browser - http://localhost/InteleScanService/DocumentSrv.svc
I do not understand why you have created dll.
You have your wcf service and your client that consume it.
Have your wcf service hosted in iis like the same - http://localhost/InteleScanService/DocumentSrv.svc
and then in your client app add service reference and add this url and you should able to consume it.
My Blog
LinkedIn Profile
Shailendra S...
Member
551 Points
145 Posts
Re: There was no endpoint listening at http://localhost/MyWCFService/ServiceSrv.svc that could ac...
Jan 03, 2013 04:08 PM|LINK
1.
When you directly put this localhost url in your browser does it work?
Like if you put this url directly on browser - http://localhost/InteleScanService/DocumentSrv.svc [yes it works well]
2.
I do not understand why you have created dll.
Actually i have created a service.dll
reason is that earlier it was working with Web service.
now it should work with WCF also.
so both WCF and WS service will run now its up to client which service we want to use either WS or WCF.
so reference is taken in Service.dll
3.
You have your wcf service and your client that consume it. [Yes, test App is working fine with out service.dll]
4.
Have your wcf service hosted in iis like the same - http://localhost/InteleScanService/DocumentSrv.svc
[Yes]
5.
and then in your client app add service reference and add this url and you should able to consume it.
I need to work with both WS and WCF that is why I can not take direct reference.
Issue is coming when i am using WCF Service.dll
WS service.dll works well.
www.techaray.com
kushalrdalal
Contributor
7130 Points
1273 Posts
Re: There was no endpoint listening at http://localhost/MyWCFService/ServiceSrv.svc that could ac...
Jan 03, 2013 05:30 PM|LINK
I do not understand this. I think this is not possible like in asmx service you have wcf service or other way round and your client can access any one of them.
My Blog
LinkedIn Profile