TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
Adam Conkle - MSFT
(Microsoft)
When:
15 Jun 2011 1:53 PM
Last revision by
Payman Biukaghazadeh
(eMicrosoft Community Contributo)
When:
26 May 2013 7:25 AM
Revisions:
3
Comments:
0
Options
Subscribe to Article (RSS)
Share this
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
CRM 2011: How to Enable Verbose Windows Identity Foundation (WIF) Tracing for Claims-Based Authentication
CRM 2011: How to Enable Verbose Windows Identity Foundation (WIF) Tracing for Claims-Based Authentication
Article
History
CRM 2011: How to Enable Verbose Windows Identity Foundation (WIF) Tracing for Claims-Based Authentication
Overview
When CRM 2011 is configured for claims-based authentication (CBA), Windows Identity Foundation (WIF) is utilized. When troubleshooting CBA, it may be necessary to gather tracing data from the CRM 2011 server. This article details the steps needed in order to create verbose WIF traces from CRM 2011, and how to view those traces in a tool named SvcTraceViewer.
Steps
*Note: These steps should be performed after hours due to the temporary service outage that will result.
Download
SvcTraceViewer.exe
from the .NET SDK
Create a directory to house the log files. In this example, we will be using
C:\logs
.
In
Windows Explorer
, open
"%ProgramFiles%\Microsoft Dynamics CRM\CRMWeb"
Edit
web.config
in
Notepad
Find the
<system.diagnostics>
section
Scroll winthin <system.diagnostics> and find
<source name="Microsoft.IdentityModel"
Change
switchValue="Error"
to
switchValue="Verbose"
*Note: The V on Verbose must be capitalized!
Copy the following lines of text from here to your clipboard:
<listeners>
<add name="xml" type="System.Diagnostics.XmlWriterTraceListener"
initializeData="C:\logs\WIF.svclog" />
</listeners>
Remove the following lines from under
<source name="Microsoft.IdentityModel" switchValue="Verbose">
:
<listeners>
<add name="ServiceModelRedirect" />
</listeners>
Paste the text from your clipboard directly under
<source name="Microsoft.IdentityModel" switchValue="Verbose">
Your diagnostics source and listener for Microsoft.IdentityModel should now look like this:
<source name="Microsoft.IdentityModel" switchValue="Verbose">
<listeners>
<add name="xml" type="System.Diagnostics.XmlWriterTraceListener"
initializeData="C:\logs\WIF.svclog" />
</listeners>
</source>
Save
and
Close
web.config
Reproduce your issue
Stop IIS (or stop the CRM website and application pool). This is required so the handle to the WIF.svclog file is released and we can gather the trace data.
Copy the
WIF.svclog
file to an alternate location for review.
Start IIS (or start the CRM website and application pool).
Open
SvcTraceViewer.exe
From the
File > Open
menu, open
WIF.svclog
The data in the log is broken out by
Activity
ID. Each Activity ID can contain multiple events. Work your way down through each Activity ID and each event contained. In this view, you will be able to walk the flow of CBA conversation for the CRM 2011 application.
Steps to revert these changes
In
Windows Explorer
, open
"%ProgramFiles%\Microsoft Dynamics CRM\CRMWeb"
Edit
web.config
in
Notepad
Find the
<system.diagnostics>
section
Scroll winthin <system.diagnostics> and find
<source name="Microsoft.IdentityModel"
Change
switchValue="Verbose"
to
switchValue="Error"
Copy the default listener from the lines of text below:
<listeners>
<add name="ServiceModelRedirect" />
</listeners>
Remove the following lines from under
<source name="Microsoft.IdentityModel" switchValue="Error">
:
<listeners>
<add name="xml" type="System.Diagnostics.XmlWriterTraceListener"
initializeData="C:\logs\WIF.svclog" />
</listeners>
Paste the text from your clipboard directly under
<source name="Microsoft.IdentityModel" switchValue="Error">
Your diagnostics source and listener for Microsoft.IdentityModel should now look like this:
<source name="Microsoft.IdentityModel" switchValue="Error">
<listeners>
<add name="ServiceModelRedirect" />
</listeners>
</source>
Save
and
Close
web.config
AD FS
,
AD FS 2.0
,
AD FS v2
,
adfs
,
ADFS 2.0
,
ADFS v2
,
claims
,
Claims Based Authentication
,
crm 2011
,
en-US
,
federation
,
has code
,
has Images
,
tracing
,
troubleshooting
,
WIF
,
Windows Identity Foundation
[Edit tags]
Leave a Comment
Please add 7 and 8 and type the answer here:
Post
Wiki - Revision Comment List(Revision Comment)
Wikis - Comment List