Vista Home: Use of NET.TCP terminates w3wp.exe and listener

Posted on 2009-12-21
Last Modified: 2013-11-26
For more than a week, i am trying to set up a IIS hosted wcf service project with net.tcp endpoint.
I am using Visual Studio 2008 on a Vista Home Premium OS.
I have succeeded in adding a net.tcp binding and enabling net.tcp protocol for the site and am using the project web option to host in local IIS webserver.
now, whenever i try to access the service or get metadata over mextcpbinding, after approx. 1 minute i get an error, w3wp.exe terminates (and restarts) and the listener seems to be terminated, too (i have no more listening port when checking with netstat, does not recover unless i restart the computer or change net.tcp binding info or similar).
This is the message i get when trying to get metadata from a client project in visual studio 2008:
Metadaten enthalten einen Verweis, der nicht aufgelöst werden kann: "net.tcp://lm-vi-nb-01:8080/WcfService1/Service1.svc/mextcp".
Der Server hat keine sinnvolle Antwort gegeben; dies kann durch einen nicht übereinstimmenden Vertrag, ein vorzeitiges Herunterfahren der Sitzung oder durch einen internen Serverfehler verursacht sein.
Wenn der Dienst in der aktuellen Projektmappe definiert ist, erstellen Sie die Projektmappe, und fügen Sie den Dienstverweis erneut hinzu.
If you are not familiar with the german, it says, that the server response does not make sense, the reason might be a service contract problem, an early session termination or an internal server error.
i do not find any event log entries or logfiles that refer to the error.
Here the latest web.config servicemodel section i tried, http working well, mextcp leading to the situation explained above:
                  <service name="WcfService1.Service1" behaviorConfiguration="WcfService1.Service1Behavior">
                        <endpoint address="" binding="wsHttpBinding" contract="WcfService1.IService1">
          <!--Bei der Bereitstellung muss das folgende Identitätselement entfernt oder ersetzt werden, um die Identität
              wiederzugeben, unter der der bereitgestellte Dienst ausgeführt wird. Wenn es entfernt wird, leitet WCF eine geeignete Identität
              automatisch ab. -->
                                    <dns value="localhost"/>
                        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <endpoint address="mextcp" binding="mexTcpBinding" contract="IMetadataExchange"/>
                        <behavior name="WcfService1.Service1Behavior">
          <!--Legen Sie den Wert unten auf "false" fest, um die Veröffentlichung von Metadateninformationen zu vermeiden, und entfernen Sie den Metadatenendpunkt oben vor der Bereitstellung.-->
                              <serviceMetadata httpGetEnabled="true"/>
          <!--Damit in Fehlern Ausnahmedetails zum Debuggen angezeigt werden, legen Sie den Wert unten auf "true" fest. Legen Sie ihn vor der Bereitstellung auf "false" fest, um die Veröffentlichung von Ausnahmeinformationen zu vermeiden.-->
                              <serviceDebug includeExceptionDetailInFaults="true"/>

I'd really be glad, if somebody could help me here!
Question by:LMalluche
    LVL 5

    Expert Comment

    the main problem is with the end point binding you are not using nettcp binding
    the endpoint should be configured like this
      <service name="Microsoft.ServiceModel.Samples.CalculatorService"
        <endpoint address=""
                  contract="Microsoft.ServiceModel.Samples.ICalculator" />
        <binding name="Binding1" 
          <readerQuotas maxDepth="32" 
                        maxNameTableCharCount="16384" />
          <reliableSession ordered="true" 
                           enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />

    Open in new window

    LVL 5

    Expert Comment

    the main problem with your configuration is the you are using wsHttpBinding

    see this line

    LVL 5

    Expert Comment

    this should be


    Author Comment

    sorry, perhaps i did not express myself clearly.
    Of cource, i tried to use a net.tcp endpoint, too. i then can get the metadata using http, if there is a standard mex endpoint, too.
    but whenever i actually use a mextcp or net.tcp endpoint, the worker process (exit code -15) and the net.tcp listener terminate.

    Accepted Solution

    ok, finally i found a solution, though i still don't understand what happened.
    i installed win 7 ultimate 64bit and did the very same setup and everything just works fine!
    i thought, up to 3 connections were fine with vista home, maybe i was wrong.
    thanks gemailj for your efforts trying to help me! btw, the mextcp endpoint is ok on its own, too, though not very useful... ;-)

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
    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…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    746 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

    17 Experts available now in Live!

    Get 1:1 Help Now