Sunday, 4 September 2011

How to Enable Tracing in CRM 2011 (Diag Tool)

Sometimes error message from Microsoft CRM is not detailed enough to find the exact root cause. Diagnostic tool is used to write trace log of CRM into files.

Download Diag tool from http://cid-57142f3d072ab525.office.live.com/self.aspx/CRM%202011%20Tools/CrmDiagTool2011.zip

Click on enable tracing.

if tracing is not working after you enabled the tracing, the follow following steps

To enable tracing update registry details

Regedit - take backup of registry before making any changes, just in case...


Computer->HKEY_LOCAL_MACHINE->SOFTWARE->MICROSOFT->MSCRM

Add registry entries if not already exists

Value name = TraceDirctory, Value data =  C:\CRMTrace, Type -- String
Value name = TraceEnabled , Value data 0 ,  Type--DWord (32-bit)
(0:disable, 1: enable)
Value name = TraceRefresh, Value data = 6, Type -- DWord (32-bit)

After updating registry entries, restart IIS.

Here even when specifing tracing info the trace will be written at C:\CRMTrace it been written at
C:\Program Files\Microsoft Dynamics CRM\Trace

Turn off tracing by chaning TraceEnabled registry value to 0

To read the trace log file

http://www.stunnware.com/crm2/topic.aspx?id=tracelogviewer

Thanks


No comments:

Post a Comment