Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-02-07
4
Medium Priority
?
1,589 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

Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

670 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