Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my app.config

XML
<system.serviceModel>
     <services>
       <!-- This section is optional with the new configuration model
            introduced in .NET Framework 4. -->
       <service name="UpdateManager.Communication.ProductManager" behaviorConfiguration="ProductManagerServiceBehavior">
         <host>
           <baseAddresses>
             <add baseAddress="http://localhost:8002/UpdateManager/ProductManager/service"/>
           </baseAddresses>
         </host>
         <!-- this endpoint is exposed at the base address provided by host: http://localhost:8000/UpdateManager/service  -->
         <endpoint address="" binding="wsHttpBinding" contract="UpdateManager.Communication.Interfaces.IProductManager" />
         <!-- the mex endpoint is exposed at http://localhost:8000/UpdateManager/ProductManager/service/mex -->
         <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
       </service>
     </services>
     <behaviors>
       <serviceBehaviors>
         <behavior name="ProductManagerServiceBehavior">
           <serviceMetadata httpGetEnabled="true"/>
           <serviceDebug includeExceptionDetailInFaults="true"/>
         </behavior>
       </serviceBehaviors>
     </behaviors>
   </system.serviceModel>


And I have this error why

CSS
There was an error downloading 'http://localhost:8002/UpdateManager/ProductManager/service/_vti_bin/ListData.svc/$metadata'.
Unable to connect to the remote server
Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 127.0.0.1:8002
Metadata contains a reference that cannot be resolved: 'http://localhost:8002/UpdateManager/ProductManager/service'.
There was no endpoint listening at http://localhost:8002/UpdateManager/ProductManager/service that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Unable to connect to the remote server
Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 127.0.0.1:8002
If the service is defined in the current solution, try building the solution and adding the service reference again.
Posted

1 solution

Look at your error message:
There was no endpoint listening at http://localhost:8002/UpdateManager/ProductManager/service that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

So start by looking at the inner exception, as it suggests, and make sure that the address and service are correct and running.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900