Solved

WCF adding a service reference ,error Metadata contains a reference that cannot be resolved

Posted on 2014-02-07
4
1,406 Views
Last Modified: 2014-02-24
Metadata contains a reference that cannot be resolved: 'net.tcp://server:port/DataService'.

I am trying to add a service reference to my console application, to an exitsing WCF service.
I get the following error

Metadata contains a reference that cannot be resolved: 'net.tcp://server:port/DataService'
The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:04:59.5163969'.
An existing connection was forcibly closed by the remote host
If the service is defined in the current solution, try building the solution and adding the service reference again.

The server configuration is

 <services>
      <service name="DataService" behaviorConfiguration="DataServiceBehavior">
        <endpoint address="net.tcp://server:port/DataService" binding="netTcpBinding" bindingConfiguration="XYZNetTcp" behaviorConfiguration="XYZConfig" name="NetTcpBindingEndpoint" contract="IDataService">
        </endpoint>
        <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" bindingConfiguration="" name="MexTcpBindingEndpoint" />
        <host>
          <baseAddresses>
            <add baseAddress="net.tcp://server:port/DataService" />
          </baseAddresses>
        </host>
      </service>
    </services>
0
Comment
Question by:countrymeister
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 39843701
Was this working before?  Do you have net.tcp binding configured correctly?

HowTo: netTcpBinding on IIS and things to remember
http://blogs.msdn.com/b/santhoshonline/archive/2010/07/01/howto-nettcpbinding-on-iis-and-things-to-remember.aspx
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39844101
How are you hosting:  IIS, or self-hosted?
0
 
LVL 1

Accepted Solution

by:
countrymeister earned 0 total points
ID: 39856766
no IIS. Its a windows service hosting a WCF service
0
 
LVL 1

Author Closing Comment

by:countrymeister
ID: 39882044
I figured out the issue, please close this
0

Featured Post

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visual Studio 2015 auto inserted code 12 88
Import a excel sheet in a grid 2 45
Data Analysis 7 59
Difference between Leaflet and MapBox? 5 45
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question