Case by Case..

Wang Ting's Tech Blog
随笔 - 40, 评论 - 250, 引用 - 12

导航

关于

勿发广告,谢谢配合

标签

每月存档

最新留言

广告

 

System.Net and related.

Summary: Useful logging option to track problems on Sockets, Remoting Channel, Web Requests and HttpListener.

Platform: .Net 2.0

Details:

How to: Configure Network Tracing
http://msdn2.microsoft.com/en-us/library/ty48b824.aspx

Enabling Network Tracing
http://msdn2.microsoft.com/en-us/library/a6sbz1dx.aspx


ADO.Net Managed Provider ETW Tracing

Summary: Very powerful tracing with details on API invocations, 1st chance exceptions. Next generation of high performance tracing.

Platform: .Net 2.0 with Windows 2003 SP1 or Windows XP SP2

Details:

Tracing Data Access
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadonet/html/tracingdataaccess.asp


System.Xml Serialization.

Summary: Leave the temporary auto-generarted XML serialization code behind for easier debugging XML serialization problems.

Platform: .Net 1.0 above

Details:

PRB: You Receive a "System.IO.FileNotFoundException" Error When the Client Application Calls a Web Service
http://support.microsoft.com/?id=823196

Troubleshooting Common Problems with the XmlSerializer
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp


Visual Studio 2005 IDE Activity Log

Summary: Provide additional information for IDE crash issues.

Platform: Visual Studio 2005

Details:

/Log (devenv.exe)
http://msdn2.microsoft.com/en-us/library/ms241272.aspx


VSTS related


Team Foundation Server Component Trace

Summary: File based trace for TFS components.

Platform: Team Foundation Server

Details:

Global Web.Config File Settings in Team Foundation Server Components
http://msdn2.microsoft.com/en-us/library/ms400784.aspx

Enabling Trace for Team Foundation Server Components
http://msdn2.microsoft.com/en-us/library/ms400788.aspx


Team Build Service Log

Summary: Detailed log for troubleshooting Team Build Service problems.

Platform: Team Foundation Server

Details:

Please refer to the comment in the following file where Team Build Service is installed:

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\tfsbuildservice.exe.config


Team Foundation Client Log

Summary: This log is useful for tracking problem, espcially performance problem with Team Explorer.

Platform: Team Foundation Server Client Components

Details:

There seems to be no formal document on this. Buck's blog has mentioned it:

How to measure performance using the web service performance dialog
http://blogs.msdn.com/buckh/archive/2006/09/25/performance_dialog.aspx

Apart from Buck's blog, the setting for the .Config file can also use a file based trace listener:

  <system.diagnostics>

    <switches>

      <add name="General" value="4" />

    </switches>

    <trace autoflush="true" indentsize="3">

      <listeners>

        <add name="myListener"

        type="Microsoft.TeamFoundation.TeamFoundationTextWriterTraceListener,Microsoft.TeamFoundation.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

        initializeData="c:\devenv.log" />

      </listeners>

    </trace>

  </system.diagnostics>

 


WinForm related


IEHost Log

Summary: Trace for troubleshooting .Net WinForm component download hosted in IE.

Platform: .Net 1.0 above

Details:

HOW TO: Use the IEHost Log to Debug .NET Object Hosting in Internet Explorer
http://support.microsoft.com/?id=313892


System.Transactions related


System.Transactions

Summary: Useful for tracing internal Transaction code paths..

Platform: .Net 2.0

Details:

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

  <system.diagnostics>

    <switches>

      <add name="System.Transactions" value="Verbose"/>

    </switches>

    <sources>

      <source name="System.Transactions">

        <listeners>

          <add name="System.Transactions"/>

        </listeners>

      </source>

    </sources>

    <sharedListeners>

      <add name="System.Transactions" type="System.Diagnostics.XmlWriterTraceListener" initializeData="mylog.xml"/>

    </sharedListeners>

    <trace autoflush="true"/>

  </system.diagnostics>

</configuration>

 

 


打印 | 张贴于 2006-08-16 00:17:00 | Tag:暂无标签

留言反馈

#Enable logging to troubleshooting Team System issues 编辑
Here&rsquo;s a list of how to enable logging for the various client and server components of VIsual Studio
2007-08-24 23:09:00 | [匿名:Visual Studio Team System (VSTS)]
#.net 中各种各样的Trace 以及log 方法 编辑
.net Trace log
2007-06-27 14:52:00 | [匿名:陈锋]
#回复: Useful Logging Options in .Net 编辑
JPIIDKDDUEKIDEDN;DIDKJKD8IEEKEIKOEOKN;YSDMFUGI8
2007-02-06 00:58:00 | [匿名:HAOHAO]
#回复: Useful Logging Options in .Net 编辑
解决了,怎样能把自己发的帖子删掉```
2007-01-29 15:04:00 | [匿名:Dec]
#回复: Useful Logging Options in .Net 编辑
为什么把web service 部署到另外一台机器上后unmanaged c++写的dll就调用不到了,web page 可以运行。这个dll无法加为reference,msi中depedence都是有的,路径一样。不知为何,谢谢指点!
2007-01-29 13:10:00 | [匿名:Dec]
#回复: Useful Logging Options in .Net 编辑
大哥,既然最有用的东西,那你能用中文写不?明白着不让俺看嘛
2006-12-05 16:18:00 | [匿名:roydu]
对不起,目前本随笔不允许发表新评论.

Powered by: Joycode.MVC引擎 0.5.2.0