Solved

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

Posted on 2014-02-07
4
1,237 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 74

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

19 Experts available now in Live!

Get 1:1 Help Now