Click here to Skip to main content
11,411,494 members (65,352 online)
Click here to Skip to main content

Tagged as

TFS Project creation error

, 24 Oct 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
Error while creating a TFS project.

Introduction

While creating a project in TFS some times people get the below error.

"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."

TFS ERROR

TFS ERROR

Background

This error occurs because of insufficient cache size, you can add below code snippets in webconfig file to avoid this error. Basically using this code you can increase the cache size, e,g., maxdatasize="1024".

Code snippet:

<system.diagnostics>
    <sources>
      <source name="System.Net" tracemode="includehex" maxdatasize="1024">
        <listeners>
          <add name="System.Net"/>
        </listeners>
      </source>
      <source name="System.Net.Sockets">
        <listeners>
          <add name="System.Net"/>
        </listeners>
      </source>
      <source name="System.Net.Cache">
        <listeners>
          <add name="System.Net"/>
        </listeners>
      </source>
    </sources>
    <switches>
      <add name="System.Net" value="Verbose"/>
      <add name="System.Net.Sockets" value="Verbose"/>
      <add name="System.Net.Cache" value="Verbose"/>
    </switches>
    <sharedListeners>
      <add name="System.Net"
        type="System.Diagnostics.TextWriterTraceListener"
        initializeData="network.log"
      />
    </sharedListeners>
    <trace autoflush="true"/>
</system.diagnostics>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Amol Sagvekar
Software Developer (Senior)
India India
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150414.5 | Last Updated 24 Oct 2012
Article Copyright 2012 by Amol Sagvekar
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid