Host WCF on IIs RRS feed

  • Question

  • Hi all

    I have this error when I try to host my WCF serivce

    There was an error downloading 'http://localhost/8900/CRTS'.
    The request failed with HTTP status 404: Not Found.
    Metadata contains a reference that cannot be resolved: 'http://localhost/8900/CRTS'.
    There was no endpoint listening at http://localhost/8900/CRTS that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
    The remote server returned an error: (404) Not Found.
    If the service is defined in the current solution, try building the solution and adding the service reference again.

    and my App.config

    <?xml version="1.0" encoding="utf-8" ?>
       <service behaviorConfiguration="CartBehaviors" name="ShoppingCartService.CartServiceImpl">
        <endpoint address=""
             binding="wsHttpBinding" bindingConfiguration=""
         name="wsHttpBindingCT" contract="ShoppingCartService.IShoppingCart" />
        <endpoint address=""
             contract="IMetadataExchange" />
          <add baseAddress="http://localhost/8900/CRTS" />
        <behavior name="CartBehaviors" >
         <serviceMetadata httpGetEnabled="true" />
      <add name="XYZEVEDSN" connectionString="server=localhost; integrated security = true;database=XYZEveDB"/>
    Sunday, April 18, 2010 6:32 AM


  • I solved it just add the app.config code to the client and host and it will work correctly
    Sunday, April 18, 2010 7:55 AM