Enabling System.Net Logging

You can enable logging for the System.Net and System.Net.Sockets.NET Framework namespace for the BTSNtSvc.exe service. This will cause a detailed log file to be created containing information that may help you identify issues with your BizTalk Server installation.


This is a feature of the Microsoft .NET Framework and will work in BizTalk Server 2006 or later.

Tracing is enabled by modifying the application configuration file for BTSNtSvc.exe, BTSNtSvc.exe.config. It can be found in the BizTalk Server installation path; if you installed BizTalk Server to the default location, BtsNtSvc.exe will be in the directory \Program Files\Microsoft BizTalk Server.

To modify BTSNtSvc.exe.config, open the configuration file and paste the code below into the <configuration> element using Notepad or your favorite text editor.

    <source name="System.Net" switchValue="Verbose">  
        <add name="System.Net"/>  
    <source name="System.Net.Sockets" switchValue="Verbose">  
        <add name="System.Net"/>  
    <add name="System.Net"  
          type="System Diagnostics.TextWriterTraceListener"  
  <trace autoflush="true" />  

The log file will be written to the same directory that contains BTSNtSvc.exe. If you installed to the default location, it will be written to \Program Files\Microsoft BizTalk Server.

See Also

Interpreting Network Tracing