Solved

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

Posted on 2014-02-07
4
1,276 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
  • 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

914 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now