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
Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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