<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Team blog of MCS @ Middle East and Africa</title><link>http://blogs.technet.com/b/meamcs/</link><description>This blog is created by Microsoft MEA HQ near shoring team, and it aims to share knowledge with the IT community.With its infrastructure and development sides,It brings to you the proven best practices and real world experiences from Subject Matter Experts</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>FAST Search for SharePoint 2010 -  FQL and its Impact on Relevancy Ranking (Using Full Text Index Mapping)</title><link>http://blogs.technet.com/b/meamcs/archive/2013/05/24/fast-search-for-sharepoint-2010-fql-and-its-impact-on-relevancy-ranking-using-full-text-index-mapping.aspx</link><pubDate>Fri, 24 May 2013 16:48:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3574725</guid><dc:creator>Ahmad Shahin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3574725</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3574725</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/05/24/fast-search-for-sharepoint-2010-fql-and-its-impact-on-relevancy-ranking-using-full-text-index-mapping.aspx#comments</comments><description>&lt;p&gt;&lt;em&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;&lt;span style="font-size: large;"&gt;Introduction&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In this post I will describe a common mistake that occurs when you write your own FQL&amp;nbsp;that impacts the search results that depends on Relevancy Ranking (Using Full Text Index Mapping).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;&lt;span style="font-size: large;"&gt;Scenario&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Lets consider that we have a list of products that we would like to search through that have a custom&amp;nbsp;managed property weights defined to control Relevancy;&amp;nbsp;The Full Text Index Mapping is configured as following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ProductName: Level 7 (High Importance)&lt;/li&gt;
&lt;li&gt;ProductDesc: Level 1 (Low Importance)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;and lets say that other Dynamic Ranking options are disabled (such as Freshness, Boosts, Authority Weight ... etc.) in this scenario to make things easier. So what happens if I searched for the product "XBox" using the following FQL:&lt;/p&gt;
&lt;p&gt;(&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductName:string(&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "XBox",&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode="simpleany"&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/p&gt;
&lt;p&gt;) or (&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductDesc:string(&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "XBox",&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode="simpleany"&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I expect to see is that the search results will bring the result items that has the word "Xbox" in the ProductName first due to my relevancy configuration, but that doesn't happen, &lt;strong&gt;why&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="font-size: large;"&gt;The Problem:&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To understand the problem lets check the official definition of FQL from Microsoft MSDN&amp;nbsp;Site:&lt;/p&gt;
&lt;p&gt;The FAST Query Language (FQL) is a powerful query language that enables developers to perform &lt;em&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;exact searches&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt; and to narrow the scope of your search to values that belong to a specific managed property &lt;em&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;or&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt; a &lt;em&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;full-text index&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;.&lt;span style="text-decoration: underline;"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So what happened here is that the Exact Managed Property Search kicked in and disabled the Dynamic Ranking (using Full Text Index Mapping).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-size: large;"&gt;Solution&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;To solve this issue you need to remove the managed properly names from your query and rephrase it as following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string(&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "XBox",&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode="simpleany"&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will enable the Full Text Index Mapping on your reach results and brings in the results that are ordered in the ProductName first.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;For the sake of this scenario I disregarded the number of occurrence of the word "Xbox" in the search results to make it easier to understand, please note that this issue will also affect the order of the search results.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="font-size: large;"&gt;Additional References&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000000; font-size: small;"&gt;More useful information can be found in the below links:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color: #000000; font-size: small;"&gt;&amp;nbsp;Index Schema - &lt;a href="http://msdn.microsoft.com/en-us/library/ff464344(v=office.14).aspx#schema_concepts_full_text"&gt;http://msdn.microsoft.com/en-us/library/ff464344(v=office.14).aspx#schema_concepts_full_text&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #000000; font-size: small;"&gt;Ranking &amp;amp; Sorting - &lt;a href="http://msdn.microsoft.com/en-us/library/ff394654(v=office.14).aspx"&gt;http://msdn.microsoft.com/en-us/library/ff394654(v=office.14).aspx&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;FAST Search for SharePoint Relevancy Post by Eric - &lt;a href="http://fs4sp.blogspot.ae/2012/01/fast-search-for-sharepoint-relevancy.html"&gt;http://fs4sp.blogspot.ae/2012/01/fast-search-for-sharepoint-relevancy.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;FAST Query Language (FQL) Syntax Reference - &lt;a href="http://msdn.microsoft.com/en-us/library/ff394606(v=office.14).aspx"&gt;http://msdn.microsoft.com/en-us/library/ff394606(v=office.14).aspx&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: #000000; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000000; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3574725" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/meamcs/archive/tags/SharePoint/">SharePoint</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/-Net+Framework/">.Net Framework</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/-Net/">.Net</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/ASP-NET/">ASP.NET</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/SharePoint+2010/">SharePoint 2010</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/SharePoint+Foundation/">SharePoint Foundation</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/SharePoint+2010+troubleshooting/">SharePoint 2010 troubleshooting</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/SharePoint+Troubleshooting/">SharePoint Troubleshooting</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/SharePoint+2013/">SharePoint 2013</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/SharePoint+Search/">SharePoint Search</category></item><item><title>Diagnostics of Cloud Services – Custom Trace Listener</title><link>http://blogs.technet.com/b/meamcs/archive/2013/05/23/diagnostics-of-cloud-services-custom-trace-listener.aspx</link><pubDate>Thu, 23 May 2013 20:55:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3574502</guid><dc:creator>Mecit Atmaca</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3574502</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3574502</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/05/23/diagnostics-of-cloud-services-custom-trace-listener.aspx#comments</comments><description>&lt;p&gt;&lt;font size="2"&gt;In this part of the series, I am going to talk about instrumenting diagnostic features for cloud services (web and worker roles) with a custom trace listener implementation in respect to new Windows Azure SDK for .NET (April 2013, version 2.0).&lt;/font&gt;&lt;/p&gt; &lt;font size="2"&gt;&lt;/font&gt;  &lt;p&gt;&lt;font size="2"&gt;Before starting the implementation, I would suggest you to get an overview of the new SDK. A perfect resource for this would be Scott Guthrie’s blog &lt;/font&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2013/04/30/announcing-the-release-of-windows-azure-sdk-2-0-for-net.aspx" target="_blank"&gt;&lt;font size="2"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt;. As you can see, one of the areas improved noticeably since v1.8 is diagnostics and key items of which are:&lt;/font&gt;&lt;/p&gt; &lt;font size="2"&gt;&lt;/font&gt;  &lt;ul&gt;&lt;font size="2"&gt;&lt;/font&gt;    &lt;li&gt;&lt;font size="2"&gt;Built-in diagnostic features for Azure web site enhancements&lt;/font&gt;&lt;/li&gt;   &lt;font size="2"&gt;&lt;/font&gt;    &lt;li&gt;&lt;font size="2"&gt;Being able to diagnose cloud services directly from Visual Studio&lt;/font&gt;&lt;/li&gt;   &lt;font size="2"&gt;&lt;/font&gt;    &lt;li&gt;&lt;font size="2"&gt;Being able to change diagnostic configuration settings while application running.&lt;/font&gt;&lt;/li&gt;   &lt;font size="2"&gt;&lt;/font&gt;&lt;/ul&gt; &lt;font size="2"&gt;&lt;/font&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;font size="2"&gt;&lt;/font&gt;  &lt;p&gt;&lt;font size="2"&gt;In .NET world, to diagnose and monitor an application, you need to implement a listener that listens the source which is the application itself for events (debug, trace, etc.) and a writer that persist the messages that captured through the listener to intended path (file, database table, storage table, etc.).&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;h3&gt;Listener&lt;/h3&gt;  &lt;p&gt;&lt;font size="2"&gt;All (custom or built-in) listeners are derived from &lt;a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.tracelistener.aspx" target="_blank"&gt;System.Diagnostics.TraceListener&lt;/a&gt;. I am going to implement a table storage listener, as name implies, it will outputs the captures to an Azure storage table. Here is the whole class implementation:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);"&gt;   &lt;div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;     &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum1" style="color: rgb(96, 96, 96);"&gt;   1:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum2" style="color: rgb(96, 96, 96);"&gt;   2:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Collections.Generic;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum3" style="color: rgb(96, 96, 96);"&gt;   3:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Data.Services.Client;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum4" style="color: rgb(96, 96, 96);"&gt;   4:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Text;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum5" style="color: rgb(96, 96, 96);"&gt;   5:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Diagnostics;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum6" style="color: rgb(96, 96, 96);"&gt;   6:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; Microsoft.WindowsAzure.Storage;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum7" style="color: rgb(96, 96, 96);"&gt;   7:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; Microsoft.WindowsAzure.Storage.Table;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum8" style="color: rgb(96, 96, 96);"&gt;   8:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum9" style="color: rgb(96, 96, 96);"&gt;   9:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;namespace&lt;/span&gt; ToDoCommon&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum10" style="color: rgb(96, 96, 96);"&gt;  10:&lt;/span&gt; {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum11" style="color: rgb(96, 96, 96);"&gt;  11:&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;class&lt;/span&gt; TableTraceListener : TraceListener&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum12" style="color: rgb(96, 96, 96);"&gt;  12:&lt;/span&gt;     {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum13" style="color: rgb(96, 96, 96);"&gt;  13:&lt;/span&gt;         &lt;span style="color: rgb(204, 102, 51);"&gt;#region&lt;/span&gt; Fields      &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum14" style="color: rgb(96, 96, 96);"&gt;  14:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;readonly&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; _connectionString;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum15" style="color: rgb(96, 96, 96);"&gt;  15:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;readonly&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; _diagnosticsTable = &lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;CustomLogTable&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum16" style="color: rgb(96, 96, 96);"&gt;  16:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum17" style="color: rgb(96, 96, 96);"&gt;  17:&lt;/span&gt;         [ThreadStatic]&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum18" style="color: rgb(96, 96, 96);"&gt;  18:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;static&lt;/span&gt; StringBuilder _messageBuffer;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum19" style="color: rgb(96, 96, 96);"&gt;  19:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum20" style="color: rgb(96, 96, 96);"&gt;  20:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;readonly&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;object&lt;/span&gt; _initializationSection = &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;object&lt;/span&gt;();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum21" style="color: rgb(96, 96, 96);"&gt;  21:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;bool&lt;/span&gt; _isInitialized;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum22" style="color: rgb(96, 96, 96);"&gt;  22:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum23" style="color: rgb(96, 96, 96);"&gt;  23:&lt;/span&gt;         CloudTableClient _tableStorage;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum24" style="color: rgb(96, 96, 96);"&gt;  24:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;readonly&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;object&lt;/span&gt; _traceLogAccess = &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;object&lt;/span&gt;();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum25" style="color: rgb(96, 96, 96);"&gt;  25:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;readonly&lt;/span&gt; List&amp;lt;LogEntry&amp;gt; _traceLog = &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; List&amp;lt;LogEntry&amp;gt;();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum26" style="color: rgb(96, 96, 96);"&gt;  26:&lt;/span&gt;         &lt;span style="color: rgb(204, 102, 51);"&gt;#endregion&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum27" style="color: rgb(96, 96, 96);"&gt;  27:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum28" style="color: rgb(96, 96, 96);"&gt;  28:&lt;/span&gt;         &lt;span style="color: rgb(204, 102, 51);"&gt;#region&lt;/span&gt; Constructors&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum29" style="color: rgb(96, 96, 96);"&gt;  29:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum30" style="color: rgb(96, 96, 96);"&gt;  30:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; TableTraceListener()&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum31" style="color: rgb(96, 96, 96);"&gt;  31:&lt;/span&gt;             : &lt;span style="color: rgb(0, 0, 255);"&gt;this&lt;/span&gt;(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString&amp;quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum32" style="color: rgb(96, 96, 96);"&gt;  32:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum33" style="color: rgb(96, 96, 96);"&gt;  33:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum34" style="color: rgb(96, 96, 96);"&gt;  34:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum35" style="color: rgb(96, 96, 96);"&gt;  35:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; TableTraceListener(&lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; connectionString)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum36" style="color: rgb(96, 96, 96);"&gt;  36:&lt;/span&gt;             : &lt;span style="color: rgb(0, 0, 255);"&gt;base&lt;/span&gt;(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;TableTraceListener&amp;quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum37" style="color: rgb(96, 96, 96);"&gt;  37:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum38" style="color: rgb(96, 96, 96);"&gt;  38:&lt;/span&gt;             _connectionString = connectionString;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum39" style="color: rgb(96, 96, 96);"&gt;  39:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum40" style="color: rgb(96, 96, 96);"&gt;  40:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum41" style="color: rgb(96, 96, 96);"&gt;  41:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; TableTraceListener(&lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; connectionString, &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; tableName)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum42" style="color: rgb(96, 96, 96);"&gt;  42:&lt;/span&gt;             : &lt;span style="color: rgb(0, 0, 255);"&gt;base&lt;/span&gt;(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;TableTraceListener&amp;quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum43" style="color: rgb(96, 96, 96);"&gt;  43:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum44" style="color: rgb(96, 96, 96);"&gt;  44:&lt;/span&gt;             _connectionString = connectionString;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum45" style="color: rgb(96, 96, 96);"&gt;  45:&lt;/span&gt;             _diagnosticsTable = tableName;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum46" style="color: rgb(96, 96, 96);"&gt;  46:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum47" style="color: rgb(96, 96, 96);"&gt;  47:&lt;/span&gt;         &lt;span style="color: rgb(204, 102, 51);"&gt;#endregion&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum48" style="color: rgb(96, 96, 96);"&gt;  48:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum49" style="color: rgb(96, 96, 96);"&gt;  49:&lt;/span&gt;         &lt;span style="color: rgb(204, 102, 51);"&gt;#region&lt;/span&gt; Methods&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum50" style="color: rgb(96, 96, 96);"&gt;  50:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum51" style="color: rgb(96, 96, 96);"&gt;  51:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum52" style="color: rgb(96, 96, 96);"&gt;  52:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// Flushes the entries to the storage table&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum53" style="color: rgb(96, 96, 96);"&gt;  53:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum54" style="color: rgb(96, 96, 96);"&gt;  54:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;override&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; Flush()&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum55" style="color: rgb(96, 96, 96);"&gt;  55:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum56" style="color: rgb(96, 96, 96);"&gt;  56:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt; (!_isInitialized)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum57" style="color: rgb(96, 96, 96);"&gt;  57:&lt;/span&gt;             {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum58" style="color: rgb(96, 96, 96);"&gt;  58:&lt;/span&gt;                 &lt;span style="color: rgb(0, 0, 255);"&gt;lock&lt;/span&gt; (_initializationSection)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum59" style="color: rgb(96, 96, 96);"&gt;  59:&lt;/span&gt;                 {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum60" style="color: rgb(96, 96, 96);"&gt;  60:&lt;/span&gt;                     &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt; (!_isInitialized)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum61" style="color: rgb(96, 96, 96);"&gt;  61:&lt;/span&gt;                     {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum62" style="color: rgb(96, 96, 96);"&gt;  62:&lt;/span&gt;                         Initialize();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum63" style="color: rgb(96, 96, 96);"&gt;  63:&lt;/span&gt;                     }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum64" style="color: rgb(96, 96, 96);"&gt;  64:&lt;/span&gt;                 }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum65" style="color: rgb(96, 96, 96);"&gt;  65:&lt;/span&gt;             }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum66" style="color: rgb(96, 96, 96);"&gt;  66:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum67" style="color: rgb(96, 96, 96);"&gt;  67:&lt;/span&gt;             var context = _tableStorage.GetTableServiceContext();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum68" style="color: rgb(96, 96, 96);"&gt;  68:&lt;/span&gt;             context.MergeOption = MergeOption.AppendOnly;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum69" style="color: rgb(96, 96, 96);"&gt;  69:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;lock&lt;/span&gt; (_traceLogAccess)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum70" style="color: rgb(96, 96, 96);"&gt;  70:&lt;/span&gt;             {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum71" style="color: rgb(96, 96, 96);"&gt;  71:&lt;/span&gt;                 _traceLog.ForEach(entry =&amp;gt; context.AddObject(_diagnosticsTable, entry));&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum72" style="color: rgb(96, 96, 96);"&gt;  72:&lt;/span&gt;                 _traceLog.Clear();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum73" style="color: rgb(96, 96, 96);"&gt;  73:&lt;/span&gt;             }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum74" style="color: rgb(96, 96, 96);"&gt;  74:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum75" style="color: rgb(96, 96, 96);"&gt;  75:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt; (context.Entities.Count &amp;gt; 0)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum76" style="color: rgb(96, 96, 96);"&gt;  76:&lt;/span&gt;             {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum77" style="color: rgb(96, 96, 96);"&gt;  77:&lt;/span&gt;                 context.BeginSaveChangesWithRetries(SaveChangesOptions.None, &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum78" style="color: rgb(96, 96, 96);"&gt;  78:&lt;/span&gt;                     (ar) =&amp;gt; context.EndSaveChangesWithRetries(ar), &lt;span style="color: rgb(0, 0, 255);"&gt;null&lt;/span&gt;);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum79" style="color: rgb(96, 96, 96);"&gt;  79:&lt;/span&gt;             }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum80" style="color: rgb(96, 96, 96);"&gt;  80:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum81" style="color: rgb(96, 96, 96);"&gt;  81:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum82" style="color: rgb(96, 96, 96);"&gt;  82:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// Creates the storage table object&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum83" style="color: rgb(96, 96, 96);"&gt;  83:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum84" style="color: rgb(96, 96, 96);"&gt;  84:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; Initialize()&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum85" style="color: rgb(96, 96, 96);"&gt;  85:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum86" style="color: rgb(96, 96, 96);"&gt;  86:&lt;/span&gt;             var account = CloudStorageAccount.Parse(_connectionString);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum87" style="color: rgb(96, 96, 96);"&gt;  87:&lt;/span&gt;             _tableStorage = account.CreateCloudTableClient();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum88" style="color: rgb(96, 96, 96);"&gt;  88:&lt;/span&gt;             _tableStorage.GetTableReference(_diagnosticsTable).CreateIfNotExists();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum89" style="color: rgb(96, 96, 96);"&gt;  89:&lt;/span&gt;             _isInitialized = &lt;span style="color: rgb(0, 0, 255);"&gt;true&lt;/span&gt;;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum90" style="color: rgb(96, 96, 96);"&gt;  90:&lt;/span&gt;         } &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum91" style="color: rgb(96, 96, 96);"&gt;  91:&lt;/span&gt;         &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum92" style="color: rgb(96, 96, 96);"&gt;  92:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;override&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;bool&lt;/span&gt; IsThreadSafe&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum93" style="color: rgb(96, 96, 96);"&gt;  93:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum94" style="color: rgb(96, 96, 96);"&gt;  94:&lt;/span&gt;             get&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum95" style="color: rgb(96, 96, 96);"&gt;  95:&lt;/span&gt;             {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum96" style="color: rgb(96, 96, 96);"&gt;  96:&lt;/span&gt;                 &lt;span style="color: rgb(0, 0, 255);"&gt;return&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;true&lt;/span&gt;;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum97" style="color: rgb(96, 96, 96);"&gt;  97:&lt;/span&gt;             }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum98" style="color: rgb(96, 96, 96);"&gt;  98:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum99" style="color: rgb(96, 96, 96);"&gt;  99:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum100" style="color: rgb(96, 96, 96);"&gt; 100:&lt;/span&gt;         &lt;span style="color: rgb(204, 102, 51);"&gt;#region&lt;/span&gt; Trace and Write Methods&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum101" style="color: rgb(96, 96, 96);"&gt; 101:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum102" style="color: rgb(96, 96, 96);"&gt; 102:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// Writes the message to a string buffer&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum103" style="color: rgb(96, 96, 96);"&gt; 103:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum104" style="color: rgb(96, 96, 96);"&gt; 104:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;message&amp;quot;&amp;gt;the Message&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum105" style="color: rgb(96, 96, 96);"&gt; 105:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;override&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; Write(&lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; message)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum106" style="color: rgb(96, 96, 96);"&gt; 106:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum107" style="color: rgb(96, 96, 96);"&gt; 107:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt; (_messageBuffer == &lt;span style="color: rgb(0, 0, 255);"&gt;null&lt;/span&gt;)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum108" style="color: rgb(96, 96, 96);"&gt; 108:&lt;/span&gt;                 _messageBuffer = &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; StringBuilder();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum109" style="color: rgb(96, 96, 96);"&gt; 109:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum110" style="color: rgb(96, 96, 96);"&gt; 110:&lt;/span&gt;             _messageBuffer.Append(message);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum111" style="color: rgb(96, 96, 96);"&gt; 111:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum112" style="color: rgb(96, 96, 96);"&gt; 112:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum113" style="color: rgb(96, 96, 96);"&gt; 113:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum114" style="color: rgb(96, 96, 96);"&gt; 114:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// Writes the message with a line breaker to a string buffer&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum115" style="color: rgb(96, 96, 96);"&gt; 115:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum116" style="color: rgb(96, 96, 96);"&gt; 116:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;message&amp;quot;&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum117" style="color: rgb(96, 96, 96);"&gt; 117:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;override&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; WriteLine(&lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; message)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum118" style="color: rgb(96, 96, 96);"&gt; 118:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum119" style="color: rgb(96, 96, 96);"&gt; 119:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt; (_messageBuffer == &lt;span style="color: rgb(0, 0, 255);"&gt;null&lt;/span&gt;)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum120" style="color: rgb(96, 96, 96);"&gt; 120:&lt;/span&gt;                 _messageBuffer = &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; StringBuilder();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum121" style="color: rgb(96, 96, 96);"&gt; 121:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum122" style="color: rgb(96, 96, 96);"&gt; 122:&lt;/span&gt;             _messageBuffer.AppendLine(message);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum123" style="color: rgb(96, 96, 96);"&gt; 123:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum124" style="color: rgb(96, 96, 96);"&gt; 124:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum125" style="color: rgb(96, 96, 96);"&gt; 125:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// Appends the trace information and message&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum126" style="color: rgb(96, 96, 96);"&gt; 126:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum127" style="color: rgb(96, 96, 96);"&gt; 127:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;eventCache&amp;quot;&amp;gt;the Event Cache&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum128" style="color: rgb(96, 96, 96);"&gt; 128:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;source&amp;quot;&amp;gt;the Source&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum129" style="color: rgb(96, 96, 96);"&gt; 129:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;eventType&amp;quot;&amp;gt;the Event Type&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum130" style="color: rgb(96, 96, 96);"&gt; 130:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;id&amp;quot;&amp;gt;the Id&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum131" style="color: rgb(96, 96, 96);"&gt; 131:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;message&amp;quot;&amp;gt;the Message&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum132" style="color: rgb(96, 96, 96);"&gt; 132:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;override&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; TraceEvent(TraceEventCache eventCache, &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; source, TraceEventType eventType, &lt;span style="color: rgb(0, 0, 255);"&gt;int&lt;/span&gt; id, &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; message)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum133" style="color: rgb(96, 96, 96);"&gt; 133:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum134" style="color: rgb(96, 96, 96);"&gt; 134:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;base&lt;/span&gt;.TraceEvent(eventCache, source, eventType, id, message);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum135" style="color: rgb(96, 96, 96);"&gt; 135:&lt;/span&gt;             AppendEntry(id, eventType, eventCache);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum136" style="color: rgb(96, 96, 96);"&gt; 136:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum137" style="color: rgb(96, 96, 96);"&gt; 137:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum138" style="color: rgb(96, 96, 96);"&gt; 138:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum139" style="color: rgb(96, 96, 96);"&gt; 139:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// Adds the trace information to a collection of LogEntry objects&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum140" style="color: rgb(96, 96, 96);"&gt; 140:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum141" style="color: rgb(96, 96, 96);"&gt; 141:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;id&amp;quot;&amp;gt;the Id&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum142" style="color: rgb(96, 96, 96);"&gt; 142:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;eventType&amp;quot;&amp;gt;the Event Type&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum143" style="color: rgb(96, 96, 96);"&gt; 143:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;/// &amp;lt;param name=&amp;quot;eventCache&amp;quot;&amp;gt;the EventCache&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum144" style="color: rgb(96, 96, 96);"&gt; 144:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; AppendEntry(&lt;span style="color: rgb(0, 0, 255);"&gt;int&lt;/span&gt; id, TraceEventType eventType, TraceEventCache eventCache)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum145" style="color: rgb(96, 96, 96);"&gt; 145:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum146" style="color: rgb(96, 96, 96);"&gt; 146:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt; (_messageBuffer == &lt;span style="color: rgb(0, 0, 255);"&gt;null&lt;/span&gt;)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum147" style="color: rgb(96, 96, 96);"&gt; 147:&lt;/span&gt;                 _messageBuffer = &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; StringBuilder();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum148" style="color: rgb(96, 96, 96);"&gt; 148:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum149" style="color: rgb(96, 96, 96);"&gt; 149:&lt;/span&gt;             var message = _messageBuffer.ToString();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum150" style="color: rgb(96, 96, 96);"&gt; 150:&lt;/span&gt;             _messageBuffer.Length = 0;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum151" style="color: rgb(96, 96, 96);"&gt; 151:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum152" style="color: rgb(96, 96, 96);"&gt; 152:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt; (message.EndsWith(Environment.NewLine))&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum153" style="color: rgb(96, 96, 96);"&gt; 153:&lt;/span&gt;                 message = message.Substring(0, message.Length - Environment.NewLine.Length);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum154" style="color: rgb(96, 96, 96);"&gt; 154:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum155" style="color: rgb(96, 96, 96);"&gt; 155:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt; (message.Length == 0)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum156" style="color: rgb(96, 96, 96);"&gt; 156:&lt;/span&gt;                 &lt;span style="color: rgb(0, 0, 255);"&gt;return&lt;/span&gt;;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum157" style="color: rgb(96, 96, 96);"&gt; 157:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum158" style="color: rgb(96, 96, 96);"&gt; 158:&lt;/span&gt;             var entry = &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; LogEntry()&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum159" style="color: rgb(96, 96, 96);"&gt; 159:&lt;/span&gt;             {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum160" style="color: rgb(96, 96, 96);"&gt; 160:&lt;/span&gt;                 PartitionKey = &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt;.Format(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;{0:D10}&amp;quot;&lt;/span&gt;, eventCache.Timestamp &amp;gt;&amp;gt; 30),&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum161" style="color: rgb(96, 96, 96);"&gt; 161:&lt;/span&gt;                 RowKey = &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt;.Format(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;{0:D19}&amp;quot;&lt;/span&gt;, eventCache.Timestamp),&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum162" style="color: rgb(96, 96, 96);"&gt; 162:&lt;/span&gt;                 EventTickCount = eventCache.Timestamp,&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum163" style="color: rgb(96, 96, 96);"&gt; 163:&lt;/span&gt;                 Level = (&lt;span style="color: rgb(0, 0, 255);"&gt;int&lt;/span&gt;)eventType,&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum164" style="color: rgb(96, 96, 96);"&gt; 164:&lt;/span&gt;                 EventId = id,&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum165" style="color: rgb(96, 96, 96);"&gt; 165:&lt;/span&gt;                 Pid = eventCache.ProcessId,&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum166" style="color: rgb(96, 96, 96);"&gt; 166:&lt;/span&gt;                 Tid = eventCache.ThreadId,&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum167" style="color: rgb(96, 96, 96);"&gt; 167:&lt;/span&gt;                 Message = message&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum168" style="color: rgb(96, 96, 96);"&gt; 168:&lt;/span&gt;             };&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum169" style="color: rgb(96, 96, 96);"&gt; 169:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum170" style="color: rgb(96, 96, 96);"&gt; 170:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;lock&lt;/span&gt; (_traceLogAccess)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum171" style="color: rgb(96, 96, 96);"&gt; 171:&lt;/span&gt;                 _traceLog.Add(entry);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum172" style="color: rgb(96, 96, 96);"&gt; 172:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum173" style="color: rgb(96, 96, 96);"&gt; 173:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum174" style="color: rgb(96, 96, 96);"&gt; 174:&lt;/span&gt;         &lt;span style="color: rgb(204, 102, 51);"&gt;#endregion&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum175" style="color: rgb(96, 96, 96);"&gt; 175:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum176" style="color: rgb(96, 96, 96);"&gt; 176:&lt;/span&gt;         &lt;span style="color: rgb(204, 102, 51);"&gt;#endregion&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum177" style="color: rgb(96, 96, 96);"&gt; 177:&lt;/span&gt;     }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum178" style="color: rgb(96, 96, 96);"&gt; 178:&lt;/span&gt; }&lt;/pre&gt;
&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);"&gt;
  &lt;div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;
    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum1" style="color: rgb(96, 96, 96);"&gt;   1:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; Microsoft.WindowsAzure.Storage.Table.DataServices;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum2" style="color: rgb(96, 96, 96);"&gt;   2:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum3" style="color: rgb(96, 96, 96);"&gt;   3:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;namespace&lt;/span&gt; ToDoCommon&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum4" style="color: rgb(96, 96, 96);"&gt;   4:&lt;/span&gt; {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum5" style="color: rgb(96, 96, 96);"&gt;   5:&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;class&lt;/span&gt; LogEntry : TableServiceEntity&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum6" style="color: rgb(96, 96, 96);"&gt;   6:&lt;/span&gt;     {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum7" style="color: rgb(96, 96, 96);"&gt;   7:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;long&lt;/span&gt; EventTickCount { get; set; }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum8" style="color: rgb(96, 96, 96);"&gt;   8:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;int&lt;/span&gt; Level { get; set; }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum9" style="color: rgb(96, 96, 96);"&gt;   9:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;int&lt;/span&gt; EventId { get; set; }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum10" style="color: rgb(96, 96, 96);"&gt;  10:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;int&lt;/span&gt; Pid { get; set; }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum11" style="color: rgb(96, 96, 96);"&gt;  11:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; Tid { get; set; }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum12" style="color: rgb(96, 96, 96);"&gt;  12:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; Message { get; set; }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum13" style="color: rgb(96, 96, 96);"&gt;  13:&lt;/span&gt;     }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum14" style="color: rgb(96, 96, 96);"&gt;  14:&lt;/span&gt; }&lt;/pre&gt;
&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;font size="2"&gt;What we do here, in summary:&lt;/font&gt;&lt;/p&gt;
&lt;font size="2"&gt;&lt;/font&gt;

&lt;ol&gt;&lt;font size="2"&gt;&lt;/font&gt;

  &lt;li&gt;&lt;font size="2"&gt;created a storage table &lt;/font&gt;&lt;/li&gt;
  &lt;font size="2"&gt;&lt;/font&gt;

  &lt;li&gt;&lt;font size="2"&gt;converted captured trace information(trace event cache, type, message, etc.) to a TableServiceEntity object called LogEntry,&lt;/font&gt;&lt;/li&gt;
  &lt;font size="2"&gt;&lt;/font&gt;

  &lt;li&gt;&lt;font size="2"&gt;then overrided Flush functionality that persists the trace information in table service&amp;#160; entity collection to the storage table created in step 1&lt;/font&gt;&lt;/li&gt;
  &lt;font size="2"&gt;&lt;/font&gt;&lt;/ol&gt;
&lt;font size="2"&gt;&lt;/font&gt;

&lt;p&gt;&lt;font size="2"&gt;And now time to add the listener:&lt;/font&gt;&lt;/p&gt;

&lt;div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);"&gt;
  &lt;div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;
    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum1" style="color: rgb(96, 96, 96);"&gt;   1:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;static&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; ConfigureTraceListener(&lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; diagConn, &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; tableName)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum2" style="color: rgb(96, 96, 96);"&gt;   2:&lt;/span&gt; {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum3" style="color: rgb(96, 96, 96);"&gt;   3:&lt;/span&gt;     Trace.Listeners.Clear();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum4" style="color: rgb(96, 96, 96);"&gt;   4:&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; traceName = &lt;span style="color: rgb(0, 0, 255);"&gt;typeof&lt;/span&gt;(TableTraceListener).Name; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum5" style="color: rgb(96, 96, 96);"&gt;   5:&lt;/span&gt;     var listener =&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum6" style="color: rgb(96, 96, 96);"&gt;   6:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; TableTraceListener(diagConn, tableName)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum7" style="color: rgb(96, 96, 96);"&gt;   7:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum8" style="color: rgb(96, 96, 96);"&gt;   8:&lt;/span&gt;             Name = traceName&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum9" style="color: rgb(96, 96, 96);"&gt;   9:&lt;/span&gt;         };&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum10" style="color: rgb(96, 96, 96);"&gt;  10:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum11" style="color: rgb(96, 96, 96);"&gt;  11:&lt;/span&gt;     Trace.Listeners.Add(listener);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum12" style="color: rgb(96, 96, 96);"&gt;  12:&lt;/span&gt;     Trace.AutoFlush = &lt;span style="color: rgb(0, 0, 255);"&gt;true&lt;/span&gt;;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum13" style="color: rgb(96, 96, 96);"&gt;  13:&lt;/span&gt; }&lt;/pre&gt;
&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;font size="2"&gt;In this code block, we do construct the TableTraceListener with 2 strings: &lt;/font&gt;&lt;/p&gt;
&lt;font size="2"&gt;&lt;/font&gt;

&lt;ul&gt;&lt;font size="2"&gt;&lt;/font&gt;

  &lt;li&gt;&lt;font size="2"&gt;connection string: set in the service configuration file pointing to the storage table created step 1 above. This is set to “UseDevelopmentStorage=true” when run locally (pointing to local development storage).&lt;/font&gt;&lt;/li&gt;
  &lt;font size="2"&gt;&lt;/font&gt;

  &lt;li&gt;&lt;font size="2"&gt;table name: the name of the table created in step 1 above.&lt;/font&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;&amp;#160;&lt;/h3&gt;

&lt;h3&gt;Logger&lt;/h3&gt;

&lt;p&gt;&lt;font size="2"&gt;Nothing much to say here.&lt;/font&gt;&lt;/p&gt;

&lt;div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);"&gt;
  &lt;div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;
    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum1" style="color: rgb(96, 96, 96);"&gt;   1:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum2" style="color: rgb(96, 96, 96);"&gt;   2:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Text;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum3" style="color: rgb(96, 96, 96);"&gt;   3:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Diagnostics;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum4" style="color: rgb(96, 96, 96);"&gt;   4:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum5" style="color: rgb(96, 96, 96);"&gt;   5:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;namespace&lt;/span&gt; ToDoCommon&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum6" style="color: rgb(96, 96, 96);"&gt;   6:&lt;/span&gt; {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum7" style="color: rgb(96, 96, 96);"&gt;   7:&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;class&lt;/span&gt; Logger:ILogger&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum8" style="color: rgb(96, 96, 96);"&gt;   8:&lt;/span&gt;     {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum9" style="color: rgb(96, 96, 96);"&gt;   9:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;static&lt;/span&gt; Logger _instance;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum10" style="color: rgb(96, 96, 96);"&gt;  10:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;static&lt;/span&gt; ILogger Instance&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum11" style="color: rgb(96, 96, 96);"&gt;  11:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum12" style="color: rgb(96, 96, 96);"&gt;  12:&lt;/span&gt;             get { &lt;span style="color: rgb(0, 0, 255);"&gt;return&lt;/span&gt; _instance ?? (_instance = &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; Logger()); }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum13" style="color: rgb(96, 96, 96);"&gt;  13:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum14" style="color: rgb(96, 96, 96);"&gt;  14:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum15" style="color: rgb(96, 96, 96);"&gt;  15:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; LogError(Exception ex)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum16" style="color: rgb(96, 96, 96);"&gt;  16:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum17" style="color: rgb(96, 96, 96);"&gt;  17:&lt;/span&gt;             var sb = &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; StringBuilder();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum18" style="color: rgb(96, 96, 96);"&gt;  18:&lt;/span&gt;             sb.AppendLine();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum19" style="color: rgb(96, 96, 96);"&gt;  19:&lt;/span&gt;             var innerEx = ex.InnerException;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum20" style="color: rgb(96, 96, 96);"&gt;  20:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;while&lt;/span&gt; (innerEx != &lt;span style="color: rgb(0, 0, 255);"&gt;null&lt;/span&gt;)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum21" style="color: rgb(96, 96, 96);"&gt;  21:&lt;/span&gt;             {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum22" style="color: rgb(96, 96, 96);"&gt;  22:&lt;/span&gt;                 sb.AppendFormat(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;\t Inner Exc Message: {0}\r\n&amp;quot;&lt;/span&gt;, innerEx.Message);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum23" style="color: rgb(96, 96, 96);"&gt;  23:&lt;/span&gt;                 innerEx = innerEx.InnerException;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum24" style="color: rgb(96, 96, 96);"&gt;  24:&lt;/span&gt;             }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum25" style="color: rgb(96, 96, 96);"&gt;  25:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum26" style="color: rgb(96, 96, 96);"&gt;  26:&lt;/span&gt;             sb.AppendLine(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;StackTrace: &amp;quot;&lt;/span&gt; + ex.StackTrace);            &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum27" style="color: rgb(96, 96, 96);"&gt;  27:&lt;/span&gt;             LogEntry(sb.ToString(), EventLogEntryType.Error);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum28" style="color: rgb(96, 96, 96);"&gt;  28:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum29" style="color: rgb(96, 96, 96);"&gt;  29:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum30" style="color: rgb(96, 96, 96);"&gt;  30:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; LogEntry(&lt;span style="color: rgb(0, 0, 255);"&gt;string&lt;/span&gt; message, EventLogEntryType type)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum31" style="color: rgb(96, 96, 96);"&gt;  31:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum32" style="color: rgb(96, 96, 96);"&gt;  32:&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 255);"&gt;switch&lt;/span&gt; (type)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum33" style="color: rgb(96, 96, 96);"&gt;  33:&lt;/span&gt;             {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum34" style="color: rgb(96, 96, 96);"&gt;  34:&lt;/span&gt;                 &lt;span style="color: rgb(0, 0, 255);"&gt;case&lt;/span&gt; EventLogEntryType.Error:&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum35" style="color: rgb(96, 96, 96);"&gt;  35:&lt;/span&gt;                     Trace.TraceError(message);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum36" style="color: rgb(96, 96, 96);"&gt;  36:&lt;/span&gt;                     &lt;span style="color: rgb(0, 0, 255);"&gt;break&lt;/span&gt;;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum37" style="color: rgb(96, 96, 96);"&gt;  37:&lt;/span&gt;                 &lt;span style="color: rgb(0, 0, 255);"&gt;case&lt;/span&gt; EventLogEntryType.Information:&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum38" style="color: rgb(96, 96, 96);"&gt;  38:&lt;/span&gt;                     Trace.TraceInformation(message);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum39" style="color: rgb(96, 96, 96);"&gt;  39:&lt;/span&gt;                     &lt;span style="color: rgb(0, 0, 255);"&gt;break&lt;/span&gt;;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum40" style="color: rgb(96, 96, 96);"&gt;  40:&lt;/span&gt;                 &lt;span style="color: rgb(0, 0, 255);"&gt;case&lt;/span&gt; EventLogEntryType.Warning:&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum41" style="color: rgb(96, 96, 96);"&gt;  41:&lt;/span&gt;                     Trace.TraceWarning(message);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum42" style="color: rgb(96, 96, 96);"&gt;  42:&lt;/span&gt;                     &lt;span style="color: rgb(0, 0, 255);"&gt;break&lt;/span&gt;;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum43" style="color: rgb(96, 96, 96);"&gt;  43:&lt;/span&gt;             }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum44" style="color: rgb(96, 96, 96);"&gt;  44:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum45" style="color: rgb(96, 96, 96);"&gt;  45:&lt;/span&gt;     }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum46" style="color: rgb(96, 96, 96);"&gt;  46:&lt;/span&gt; }&lt;/pre&gt;
&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;font size="2"&gt;Please note that web role and associated web application run on different processes. Therefore, you need to add the listener in both places.&lt;/font&gt; &lt;/p&gt;

&lt;h3&gt;My Solution &lt;/h3&gt;

&lt;p&gt;One picture says a million words, so does here:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4760.image_5F00_7B941B71.png"&gt;&lt;img title="image" style="margin: 0px; display: inline; background-image: none;" border="0" alt="image" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5466.image_5F00_thumb_5F00_14264973.png" width="244" height="87" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;… and Show Time&lt;/h3&gt;

&lt;p&gt;&lt;font size="2"&gt;All I need to do now, in order to have diagnostic feature enabled in my solution, is to call ToDoCommon.Util.ConfigureTraceListener(diagConnection, tableName) from the method “OnStart” of the role entry point classes of each role (web and worker) and from global.asax. Below, global.asax is shared:&lt;/font&gt;&lt;/p&gt;

&lt;div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);"&gt;
  &lt;div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;
    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum1" style="color: rgb(96, 96, 96);"&gt;   1:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum2" style="color: rgb(96, 96, 96);"&gt;   2:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Web;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum3" style="color: rgb(96, 96, 96);"&gt;   3:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Web.Http;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum4" style="color: rgb(96, 96, 96);"&gt;   4:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Web.Mvc;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum5" style="color: rgb(96, 96, 96);"&gt;   5:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Web.Optimization;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum6" style="color: rgb(96, 96, 96);"&gt;   6:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; System.Web.Routing;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum7" style="color: rgb(96, 96, 96);"&gt;   7:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; Microsoft.WindowsAzure.ServiceRuntime;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum8" style="color: rgb(96, 96, 96);"&gt;   8:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;using&lt;/span&gt; ToDoCommon;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum9" style="color: rgb(96, 96, 96);"&gt;   9:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum10" style="color: rgb(96, 96, 96);"&gt;  10:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;namespace&lt;/span&gt; ToDoListWeb&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum11" style="color: rgb(96, 96, 96);"&gt;  11:&lt;/span&gt; {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum12" style="color: rgb(96, 96, 96);"&gt;  12:&lt;/span&gt;     &lt;span style="color: rgb(0, 128, 0);"&gt;// Note: For instructions on enabling IIS6 or IIS7 classic mode, &lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum13" style="color: rgb(96, 96, 96);"&gt;  13:&lt;/span&gt;     &lt;span style="color: rgb(0, 128, 0);"&gt;// visit http://go.microsoft.com/?LinkId=9394801&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum14" style="color: rgb(96, 96, 96);"&gt;  14:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum15" style="color: rgb(96, 96, 96);"&gt;  15:&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;class&lt;/span&gt; MvcApplication : HttpApplication&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum16" style="color: rgb(96, 96, 96);"&gt;  16:&lt;/span&gt;     {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum17" style="color: rgb(96, 96, 96);"&gt;  17:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;protected&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; Application_Start()&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum18" style="color: rgb(96, 96, 96);"&gt;  18:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum19" style="color: rgb(96, 96, 96);"&gt;  19:&lt;/span&gt;             AreaRegistration.RegisterAllAreas();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum20" style="color: rgb(96, 96, 96);"&gt;  20:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum21" style="color: rgb(96, 96, 96);"&gt;  21:&lt;/span&gt;             WebApiConfig.Register(GlobalConfiguration.Configuration);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum22" style="color: rgb(96, 96, 96);"&gt;  22:&lt;/span&gt;             FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum23" style="color: rgb(96, 96, 96);"&gt;  23:&lt;/span&gt;             RouteConfig.RegisterRoutes(RouteTable.Routes);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum24" style="color: rgb(96, 96, 96);"&gt;  24:&lt;/span&gt;             BundleConfig.RegisterBundles(BundleTable.Bundles);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum25" style="color: rgb(96, 96, 96);"&gt;  25:&lt;/span&gt;             AuthConfig.RegisterAuth();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum26" style="color: rgb(96, 96, 96);"&gt;  26:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum27" style="color: rgb(96, 96, 96);"&gt;  27:&lt;/span&gt;             var diagConnection = RoleEnvironment.GetConfigurationSettingValue(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;DiagConnection&amp;quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum28" style="color: rgb(96, 96, 96);"&gt;  28:&lt;/span&gt;             var tableName = RoleEnvironment.GetConfigurationSettingValue(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;DiagTableName&amp;quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum29" style="color: rgb(96, 96, 96);"&gt;  29:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum30" style="color: rgb(96, 96, 96);"&gt;  30:&lt;/span&gt;             Util.ConfigureTraceListener(diagConnection, tableName);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum31" style="color: rgb(96, 96, 96);"&gt;  31:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum32" style="color: rgb(96, 96, 96);"&gt;  32:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum33" style="color: rgb(96, 96, 96);"&gt;  33:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;protected&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;void&lt;/span&gt; Application_OnError(&lt;span style="color: rgb(0, 0, 255);"&gt;object&lt;/span&gt; sender, EventArgs e)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum34" style="color: rgb(96, 96, 96);"&gt;  34:&lt;/span&gt;         {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum35" style="color: rgb(96, 96, 96);"&gt;  35:&lt;/span&gt;             var ex = Server.GetLastError();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum36" style="color: rgb(96, 96, 96);"&gt;  36:&lt;/span&gt;             Server.ClearError();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum37" style="color: rgb(96, 96, 96);"&gt;  37:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum38" style="color: rgb(96, 96, 96);"&gt;  38:&lt;/span&gt;             Logger.Instance.LogError(ex);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum39" style="color: rgb(96, 96, 96);"&gt;  39:&lt;/span&gt;         }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum40" style="color: rgb(96, 96, 96);"&gt;  40:&lt;/span&gt;     }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum41" style="color: rgb(96, 96, 96);"&gt;  41:&lt;/span&gt; }&lt;/pre&gt;
&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;&lt;font size="2"&gt;To test the solution, I have created a dummy page and called the trace functionality from a method:&lt;/font&gt;&lt;/p&gt;

&lt;div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);"&gt;
  &lt;div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;
    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum1" style="color: rgb(96, 96, 96);"&gt;   1:&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;public&lt;/span&gt; ActionResult Details(&lt;span style="color: rgb(0, 0, 255);"&gt;int&lt;/span&gt; id = 0)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum2" style="color: rgb(96, 96, 96);"&gt;   2:&lt;/span&gt; { &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum3" style="color: rgb(96, 96, 96);"&gt;   3:&lt;/span&gt;     Logger.Instance.LogEntry(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;Dummy Informative log entry&amp;quot;&lt;/span&gt;, EventLogEntryType.Information);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum4" style="color: rgb(96, 96, 96);"&gt;   4:&lt;/span&gt;     Logger.Instance.LogEntry(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;Dummy Warning log entry&amp;quot;&lt;/span&gt;, EventLogEntryType.Warning);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum5" style="color: rgb(96, 96, 96);"&gt;   5:&lt;/span&gt;     Logger.Instance.LogEntry(&lt;span style="color: rgb(0, 96, 128);"&gt;&amp;quot;Dummy Error log entry&amp;quot;&lt;/span&gt;, EventLogEntryType.Error);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum6" style="color: rgb(96, 96, 96);"&gt;   6:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum7" style="color: rgb(96, 96, 96);"&gt;   7:&lt;/span&gt;     var todoitem = _context.ToDoItems.Find(id);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum8" style="color: rgb(96, 96, 96);"&gt;   8:&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt; (todoitem == &lt;span style="color: rgb(0, 0, 255);"&gt;null&lt;/span&gt;)&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum9" style="color: rgb(96, 96, 96);"&gt;   9:&lt;/span&gt;     {&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum10" style="color: rgb(96, 96, 96);"&gt;  10:&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 255);"&gt;throw&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;new&lt;/span&gt; ArgumentOutOfRangeException();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum11" style="color: rgb(96, 96, 96);"&gt;  11:&lt;/span&gt;         &lt;span style="color: rgb(0, 128, 0);"&gt;//return HttpNotFound();&lt;/span&gt;&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum12" style="color: rgb(96, 96, 96);"&gt;  12:&lt;/span&gt;     }&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum13" style="color: rgb(96, 96, 96);"&gt;  13:&lt;/span&gt;     Trace.Flush();&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"&gt;&lt;span id="lnum14" style="color: rgb(96, 96, 96);"&gt;  14:&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 255);"&gt;return&lt;/span&gt; View(todoitem);&lt;/pre&gt;
&lt;!--CRLF--&gt;

    &lt;pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &amp;quot;Courier New&amp;quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"&gt;&lt;span id="lnum15" style="color: rgb(96, 96, 96);"&gt;  15:&lt;/span&gt; }&lt;/pre&gt;
&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;And the result confirms the success!&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2480.image_5F00_384E34B3.png"&gt;&lt;img title="image" style="margin: 0px; display: inline; background-image: none;" border="0" alt="image" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3438.image_5F00_thumb_5F00_54CCF59D.png" width="244" height="156" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;h3&gt;Conclusion&lt;/h3&gt;

&lt;p&gt;&lt;font size="2"&gt;In this post, I have implemented a custom trace listener that captures the diagnostic events (trace, debug, and trace source) in the application and writes to a Windows Azure storage table. Advantages of this custom tracing are being able to implement the instrumentation the way you want (lighter perhaps&lt;img class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2705.wlEmoticon_2D00_winkingsmile_5F00_2D290A24.png" /&gt;) and being able to define the table name yourself.&lt;/font&gt;&lt;/p&gt;
&lt;font size="2"&gt;&lt;/font&gt;

&lt;p&gt;&lt;font size="2"&gt;Please note that the code blocks shared here are for demonstration purposes; I would suggest you to review your needs (trace switch, buffering, application monitoring capability, etc.) before using them in alive systems. Additionally, I do recommend investigate the configure before customization approach which I will be talking in my next post. Stay tuned&lt;img class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6136.wlEmoticon_2D00_smile_5F00_5D52E598.png" /&gt;&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3574502" width="1" height="1"&gt;</description></item><item><title>Install Active Directory in Windows Azure in four simple steps</title><link>http://blogs.technet.com/b/meamcs/archive/2013/05/21/install-active-directory-in-windows-azure-in-four-simple-steps.aspx</link><pubDate>Tue, 21 May 2013 10:49:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3573838</guid><dc:creator>Meged Ezzat</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3573838</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3573838</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/05/21/install-active-directory-in-windows-azure-in-four-simple-steps.aspx#comments</comments><description>&lt;p&gt;&lt;b&gt;&lt;u&gt;Introduction:&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;There is a very long and complex way to install Active Directory in Windows Azure environment described in details in Windows Azure documentation here &lt;a href="http://www.windowsazure.com/en-us/manage/services/networking/active-directory-forest/"&gt;http://www.windowsazure.com/en-us/manage/services/networking/active-directory-forest/&lt;/a&gt;, what I will propose in this post is a simple way to install Active Directory in a new Windows Azure without the need to go through all steps listed in Microsoft Windows Azure documentations that include creation of the virtual machine for Domain Controller using PowerShell. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;Install Steps:&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Installation steps are simple as follows:&lt;/p&gt;  &lt;p&gt;1. Create a storage account that is in the same region as the affinity group, more details about how to create a storage in Windows Azure can be found here &lt;a href="http://www.windowsazure.com/en-us/manage/services/storage/how-to-create-a-storage-account/"&gt;http://www.windowsazure.com/en-us/manage/services/storage/how-to-create-a-storage-account/&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;2. Create a new Network associated with the storage account created in step-1, create a Network subnet (for example 172.16.0.0/24), and select DNS to be same Network VLAN IP Address end with “.4” (follow the same example 172.16.0.4), more details about how to create a virtual network in Windows Azure can be found here &lt;a href="http://www.windowsazure.com/en-us/manage/services/networking/create-a-virtual-network/"&gt;http://www.windowsazure.com/en-us/manage/services/networking/create-a-virtual-network/&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;3. Create the first virtual machine and associate it with the storage account and network created in steps-1 &amp;amp; step-2, this virtual machine automatically will take IP Address from network VLAN end with “.4” (follow the same example 172.16.0.4), more details about how to create a virtual machine in Windows Azure can be found here &lt;a href="http://www.windowsazure.com/en-us/manage/windows/tutorials/virtual-machine-from-gallery/"&gt;http://www.windowsazure.com/en-us/manage/windows/tutorials/virtual-machine-from-gallery/&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;4. Install Active Directory (Including DNS Service) on the first created virtual machine in step-3.&lt;/p&gt;  &lt;p&gt;Now your Windows Azure environment is ready with Active Directory and all new virtual machines that will be created later will automatically point to the IP Address of the Active Directory Domain Controller IP Address as their primary DNS server in network cards.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;Conclusion:&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;As a conclusion, you have the long professional way to install Active Directory, and in this post, you get how to install Active Directory in your new Windows Azure environment with simple way and very fast.&lt;/p&gt;  &lt;p&gt;Hope that this will accelerate building your new Windows Azure environment in less than an hour.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3573838" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Azure/">Azure</category></item><item><title>Is AD integration or manual SCOM agents installation required to allow Automatic Windows Agent Failover between multiple SCOM 2012 Management Servers?</title><link>http://blogs.technet.com/b/meamcs/archive/2013/05/10/is-ad-integration-or-manual-scom-agents-required-to-allow-automatic-windows-agent-failover-between-multiple-scom-management-servers.aspx</link><pubDate>Fri, 10 May 2013 14:34:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3571942</guid><dc:creator>Meged Ezzat</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3571942</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3571942</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/05/10/is-ad-integration-or-manual-scom-agents-required-to-allow-automatic-windows-agent-failover-between-multiple-scom-management-servers.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Introduction:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I observed that some IT professionals confused about System Center Operations Manager (SCOM) 2012 windows agents failover requirements, and the raised question was do I need to configure SCOM Active Directory Integration or do manual agents implementation or use PowerShell to allow windows agents to do automatic failover between multiple SCOM management servers? or should I wait and delay SCOM agents deployment until deploying System Center Configuration Manager to deploy SCOM agents? and the simple answer is &amp;ldquo;&lt;strong&gt;No&lt;/strong&gt;&amp;rdquo; need, and below you can find more details about from where confusion come and why you do not have to wait until AD integration or Configuration Manager be implemented to push SCOM windows agents, and how to verify that SCOM windows agents failover working properly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Detailed Description:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;First, confusion come because some documentation and blog posts shows how to distribute windows agents through SCOM management servers using AD integration or PowerShell Scripts to automate agents assignment through different SCOM management servers which is very good, however this is not mandatory specially for small environment that includes less than 100 windows agents, and the reason behind is that you can distribute the windows SCOM agents though the SCOM management servers while pushing the agents from SCOM management console, so simply you can select which management server will be the primary management server for agents that you are going to push right now as shown in below diagram that you can scroll down and select which management server will be the primary management server for agents that will be implemented within this wizard:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7774.clip_5F00_image002_5F00_7D7E88CA.jpg"&gt;&lt;img style="display: inline; border-width: 0px;" title="clip_image002" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5305.clip_5F00_image002_5F00_thumb_5F00_66CC14B6.jpg" alt="clip_image002" width="244" height="232" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So the simplest way for small to medium windows servers environment is to push SCOM agents between the available management servers in the same management servers pool, so for example if you have two management servers automatically will be member in the same management servers pool then you can push 50% of agents to have SCOM management server-1 as their primary management server and then push the other 50% of agents to have SCOM management server-2 as their primary management server.&lt;/p&gt;
&lt;p&gt;To verify windows agents failover between the different management servers simply you need to stop one of the management servers (disconnect from network or shutdown the management server) and check the Operations Manager event viewer in one of the managed computers by the stopped SCOM management server so you will see event ID 21006 as shown below telling you that there is a problem to connect to his management server.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/0844.clip_5F00_image004_5F00_59C20ED8.jpg"&gt;&lt;img style="display: inline; border-width: 0px;" title="clip_image004" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5482.clip_5F00_image004_5F00_thumb_5F00_0687004D.jpg" alt="clip_image004" width="244" height="153" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If heart beat configuration kept with default value which is 60 seconds then another event ID 21015 will be generated as shown below telling you that OpsMgr was unable to set up a communications channel to the agent primary management server.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5810.clip_5F00_image005_5F00_33F7FA43.png"&gt;&lt;img style="display: inline; border-width: 0px;" title="clip_image005" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2742.clip_5F00_image005_5F00_thumb_5F00_6F27C20F.png" alt="clip_image005" width="244" height="139" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3 Seconds later you will see a new event ID 21017 will be generated as shown below telling you that OpsMgr has successfully failed over to the secondary management server&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4162.clip_5F00_image006_5F00_671FF9E0.png"&gt;&lt;img style="display: inline; border-width: 0px;" title="clip_image006" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5367.clip_5F00_image006_5F00_thumb_5F00_0F164736.png" alt="clip_image006" width="244" height="165" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The good point here is that when the windows agent primary server come back running agent will fail back automatically to its primary management server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Conclusion:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;As a conclusion, SCOM windows agents automatic failover does not require AD integration or PowerShell scripting or Configuration Manager or manual agents installation specially for small to medium environment and agents distribution between different SCOM management servers can be accomplished through push agents wizard, and windows agents failover can be simply verified from event viewer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3571942" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Operations+Manager+2012/">Operations Manager 2012</category></item><item><title>Office 365 Arabization – Part IV</title><link>http://blogs.technet.com/b/meamcs/archive/2013/05/10/office-365-arabization-part-iv.aspx</link><pubDate>Fri, 10 May 2013 08:38:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3571873</guid><dc:creator>Mohamed Marzouk [MSFT]</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3571873</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3571873</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/05/10/office-365-arabization-part-iv.aspx#comments</comments><description>&lt;p&gt;&lt;font size="3" face="Calibri"&gt;In previous parts I’ve explained users’ bulk creation (&lt;/font&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/03/11/office-365-arabization-part-ii.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part II&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;) and bulk modification (&lt;/font&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/04/24/office-365-arabization-part-iii.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part III&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;).&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;In this part let’s talk about more advanced management tasks.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;font size="3" face="Calibri"&gt;Dynamic Distribution Groups:&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Dynamic Distribution Group (DDG) is special group created based on conditions not based on list of members as the normal group. Membership of the DDG is calculated each time an email is sent to the DDG, the calculation is based on the filters and conditions specified during the creation of the DDG.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;There are two types of the DDG:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Calibri"&gt;- &lt;b&gt;Precanned filters&lt;/b&gt;: this the easy DDG where we can use the following filters:&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Calibri"&gt;o Recipient type.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;o Company.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;o Custom attribute.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;o Department&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;o State.&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Calibri"&gt;- &lt;b&gt;Customized filter&lt;/b&gt;: where we can use any attribute&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Before starting with creating the DDGs, our challenge here is not creating DDG, as the title of these series it’s about Arabization. So the challenge is to create Arabic DDG with Arabic conditions.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;You will need to review &lt;/font&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/02/24/office-365-arabization-part-i.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part I&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; which discussing how to use Windows PowerShell ISE to solve the Arabic problem.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Once you have ISE installed we will need to connect to the tenant and remember DDG is for Emails so yes this will need connecting to Exchange Online:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Calibri"&gt;1. Connect to the tenant (AD): &lt;font style="background-color: rgb(204, 204, 204);"&gt;Connect-MsolService&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;2. Connect to Exchange Online:&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;$cred=Get-Credential &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;$session=New-PSSession -ConfigurationName microsoft.exchange -ConnectionUri:https://ps.outlook.com/powershell -Credential:$cred -Authentication basic -AllowRedirection&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;Import-PSSession $session&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Now we are connected to Exchange Online and you can use Exchange cmdlets&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Let’s check the DDG examples:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;font size="3" face="Calibri"&gt;Precanned Filters:&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Target is: create DDG with only users live in &amp;quot;التجمع الخامس&amp;quot;.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;From the above explanation in Precanned filters DDG we can filter by State (not city), so as you see in the following snapshot, we have some users in &amp;quot;التجمع الخامس&amp;quot;, some users in &amp;quot;الهرم&amp;quot;, and other users State value is empty.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5707.clip_5F00_image002_5F00_0CBFA0FF.jpg"&gt;&lt;font size="3" face="Calibri"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4505.clip_5F00_image002_5F00_42E1194E.jpg"&gt;&lt;img title="clip_image002" style="display: inline; background-image: none;" border="0" alt="clip_image002" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8168.clip_5F00_image002_5F00_thumb_5F00_07AD3D83.jpg" width="804" height="184" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;The challenge is when using the following cmdlet with only the mandatory attributes:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;New-DynamicDistributionGroup -Name التجمع الخامس&amp;quot;&amp;quot; -IncludedRecipients mailboxusers -ConditionalStateOrProvince &amp;quot;التجمع الخامس”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Check the following result of &lt;/font&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;Get-DynamicDistributionGroup |fl &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2477.clip_5F00_image004_5F00_3B458414.jpg"&gt;&lt;font size="3" face="Calibri"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8422.clip_5F00_image004_5F00_318CF011.jpg"&gt;&lt;img title="clip_image004" style="display: inline; background-image: none;" border="0" alt="clip_image004" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2543.clip_5F00_image004_5F00_thumb_5F00_3E0A7760.jpg" width="810" height="578" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;In the above snapshot, check the marked values:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Calibri"&gt;- Alias&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;- EmaildAddresses&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;- PrimarySmtpAddress&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;As you can see the values are Arabic and driven from the name specified in the first cmdlet &amp;quot;التجمع الخامس&amp;quot; and of course this DDG will not work, because these values are only supported in English (until that day when we see my email &lt;a href="mailto:محمد@مرزوق.مصر"&gt;محمد@مرزوق.مصر&lt;/a&gt;).&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;So what we need is to create the DDG using the following cmdlet:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;font style="background-color: rgb(204, 204, 204);"&gt;New-DynamicDistributionGroup -Name &amp;quot;التجمع الخامس&amp;quot; -IncludedRecipients mailboxusers -ConditionalStateOrProvince &amp;quot;التجمع الخامس&amp;quot; -Alias Tagamo3 -PrimarySmtpAddress &lt;a href="mailto:tagamo3@meamcs.com"&gt;tagamo3@meamcs.com&lt;/a&gt;&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Then check the properties of the DDG:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5875.clip_5F00_image006_5F00_42CCDF82.jpg"&gt;&lt;font size="3" face="Calibri"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/0407.clip_5F00_image006_5F00_2E56F42A.jpg"&gt;&lt;img title="clip_image006" style="display: inline; background-image: none;" border="0" alt="clip_image006" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2287.clip_5F00_image006_5F00_thumb_5F00_46D66BAD.jpg" width="829" height="526" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Now these attributes in English. However the display name is still in Arabic, so the users will see the DDG in Arabic.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Now let’s move to another topic, how are we going to make sure that this DDG is really working and the users in التجمع الخامس are members of this group.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Remember this is not a static membership, so what we need to do is to calculate the members of this DDG:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;$ddg=Get-DynamicDistributionGroup &amp;quot;التجمع الخامس&amp;quot;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;font style="background-color: rgb(204, 204, 204);"&gt;Get-Recipient -RecipientPreviewFilter $ddg.RecipientFilter&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/0488.clip_5F00_image008_5F00_5F55E330.jpg"&gt;&lt;font size="3" face="Calibri"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2133.clip_5F00_image008_5F00_6F157834.jpg"&gt;&lt;img title="clip_image008" style="display: inline; background-image: none;" border="0" alt="clip_image008" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2783.clip_5F00_image008_5F00_thumb_5F00_61CEEF21.jpg" width="838" height="209" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;font size="3" face="Calibri"&gt;Customized Filters:&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;This is more advanced where we can use any attribute and use AND, OR.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;The target is to create DDG for users with mailbox &lt;b&gt;and&lt;/b&gt; with title “استشاري”.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Let’s first check our users:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4314.clip_5F00_image010_5F00_3CA17EE8.jpg"&gt;&lt;font size="3" face="Calibri"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7776.clip_5F00_image010_5F00_336543A7.jpg"&gt;&lt;img title="clip_image010" style="display: inline; background-image: none;" border="0" alt="clip_image010" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3073.clip_5F00_image010_5F00_thumb_5F00_013DF35D.jpg" width="847" height="208" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;As explained before we will need to specify Alias, PrimarySMTPAddress values to get healthy DDG:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;font style="background-color: rgb(204, 204, 204);"&gt;New-DynamicDistributionGroup -Name استشاري -Alias isteshary -PrimarySmtpAddress isteshary@meamcs.com -RecipientFilter {(recipienttype -eq &amp;quot;usermailbox&amp;quot;) -and (title -like &amp;quot;استشاري&amp;quot;)}&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;In the above cmdlet the filter we have used is &lt;b&gt;recipienttype &lt;/b&gt;was equal to &lt;b&gt;usermailbox &lt;/b&gt;and this mailbox user must also has titleاستشاري .&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Let’s do final check to see the members of this DDG:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2451.clip_5F00_image012_5F00_3D3A0F45.jpg"&gt;&lt;font size="3" face="Calibri"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2728.clip_5F00_image012_5F00_48EF5677.jpg"&gt;&lt;img title="clip_image012" style="display: inline; background-image: none;" border="0" alt="clip_image012" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6406.clip_5F00_image012_5F00_thumb_5F00_1F980E79.jpg" width="832" height="208" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;In this part I’ve explained the Dynamic Distribution Groups, next part we will talk about some reporting and filtering cmdlets.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/02/24/office-365-arabization-part-i.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part I&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;: Arabic Problems&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/03/11/office-365-arabization-part-ii.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part II&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;: Users Bulk Creation&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/04/24/office-365-arabization-part-iii.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part III&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;: Users Bulk Modification&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3571873" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Office+365/">Office 365</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Arabic/">Arabic</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Exchange+Online/">Exchange Online</category></item><item><title>Exchange 2013 Coexistence ECP “Your mailbox can't be accessed using the address you entered, please obtain the correct address”</title><link>http://blogs.technet.com/b/meamcs/archive/2013/05/04/exchange-2013-coexistence-ecp-your-mailbox-can-t-be-accessed-using-the-address-you-entered-please-obtain-the-correct-address.aspx</link><pubDate>Sat, 04 May 2013 13:46:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3570752</guid><dc:creator>Tamer Sherif Mahmoud</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3570752</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3570752</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/05/04/exchange-2013-coexistence-ecp-your-mailbox-can-t-be-accessed-using-the-address-you-entered-please-obtain-the-correct-address.aspx#comments</comments><description>&lt;p&gt;In a coexistence scenario, where you&amp;rsquo;re running Exchange 2007 or Exchange 2010 and Exchange 2013 in the same organization, and your mailbox is still hosted on the Exchange 2007/2010 Mailbox server and you try to access the Exchange 2013 default /ECP directory, you will get the following error:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;ldquo;Your mailbox can't be accessed using the address you entered, please obtain the correct address, please contact your helpdesk&amp;rdquo;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Method1:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;To proceed to the control panel you can access the EAC by adding the Exchange version to the URL. For example, to access the EAC whose virtual directory is hosted on the Client Access server locally, use the following URL: &lt;code&gt;&lt;a href="https://localhost/ecp?ExchClientVer=15"&gt;https://localhost/ecp?ExchClientVer=15&lt;/a&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Same way applies if you want to access the Exchange 2010 ECP and your mailbox hosted on an Exchange 2013 Mailbox server, use the following URL: &lt;code&gt;&lt;a href="https://localhost/ecp?ExchClientVer=14"&gt;https://localhost/ecp?ExchClientVer=14&lt;/a&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;code&gt;&lt;span style="font-family: Segoe UI;"&gt;Method2:&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;&lt;span style="font-family: Segoe UI;"&gt;Through PowerShell create a new mailbox on Exchange 2013 and give it the necessary administrative permissions.&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3570752" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Exchange+2013/">Exchange 2013</category></item><item><title>Securing Dynamic Data ASP.NET SQL Azure Published Web Site with ACS and Facebook as an Identity Provider</title><link>http://blogs.technet.com/b/meamcs/archive/2013/04/27/securing-dynamic-data-asp-net-sql-azure-published-web-site-with-acs-and-facebook-as-an-identity-provider.aspx</link><pubDate>Sat, 27 Apr 2013 15:50:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3569448</guid><dc:creator>Mohamed M Malek</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3569448</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3569448</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/04/27/securing-dynamic-data-asp-net-sql-azure-published-web-site-with-acs-and-facebook-as-an-identity-provider.aspx#comments</comments><description>&lt;h1&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;The Scenario     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h1&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;I wanted to implement an Azure web site that is using the Azure Access Control Service and integrates with an external identity provider to authenticate and authorize users. At first I thought of using Windows Live ID but it has a problem that the only claim offered by WLID is the unique identified which is simply a number and represents nothing from the user. Then I thought why not make things more interesting and use Facebook. I think things got more interesting than I thought. &lt;/span&gt;&lt;span lang="EN-US" style="font-family: wingdings; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: wingdings;"&gt;&lt;span style="mso-char-type: symbol; mso-symbol-font-family: wingdings;"&gt;J&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;I wanted to implement a Dynamic database access web site so that it generates the views on top of an existing SQL Azure database and lets the end user manipulate the database tables and filter them. This is using Linq-to-SQL classes.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;I am using Visual Studio 2012 latest version.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h1&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;The Steps highlights     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h1&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;The steps at a glance of how to get this up and going are as below:     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;1-&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create your project:     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;a.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create your database.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;b.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create a new Dynamic ASP.NET project.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;c.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Add a Linq-To-SQL model to your database.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;d.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Change the Framework version of the project.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;e.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Set the “&lt;/span&gt;&lt;span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ScaffoldAllTables&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;” to true.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;2-&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Download the latest “Identity and access tool”     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;3-&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create a new Azure web site and download the publishing settings.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;4-&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Setup your identify provider:     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;a.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create a new Azure ACS namespace     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;b.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create a new Facebook application     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;c.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Configure your Facebook application.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;d.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Add your Facebook application as an identity provider.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin-left: 72pt; mso-list: l0 level2 lfo1; mso-add-space: auto;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;e.&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Configure you claims rules     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;5-&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Set the ACS settings in the “Identity and access tool”     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;6-&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Implement your custom claims authorization manager     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;7-&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Complete the web.config configuration     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: ignore;"&gt;8-&lt;span style="font: 7pt/normal &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir="LTR"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Publish your web site.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h1&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Solution Walkthrough and description     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h1&gt;  &lt;h2&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create your project     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h2&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;This is the first step and as I described I wanted to create a dynamic ASP.NET site based on a custom database.      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create the Database     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;First I created the database in SQL Azure.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7215.clip_5F00_image002_5F00_7E2DBAFD.jpg"&gt;&lt;img title="clip_image002" style="display: inline;" border="0" alt="clip_image002" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3872.clip_5F00_image002_5F00_thumb_5F00_267CED52.jpg" width="715" height="582" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Created a new SQL server and provided the administrator permissions and allowed Azure services access to this server.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6254.clip_5F00_image004_5F00_32323484.jpg"&gt;&lt;img title="clip_image004" style="display: inline;" border="0" alt="clip_image004" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2577.clip_5F00_image004_5F00_thumb_5F00_758A1019.jpg" width="706" height="586" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Then I allowed access to my IP to this database to allow me to manage it.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4024.clip_5F00_image006_5F00_7A8C4DC8.jpg"&gt;&lt;img title="clip_image006" style="display: inline;" border="0" alt="clip_image006" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4314.clip_5F00_image006_5F00_thumb_5F00_31862C02.jpg" width="763" height="513" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Then I started to design my database (this can be either done online or using Visual Studio)     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1207.clip_5F00_image008_5F00_2AF2AC72.jpg"&gt;&lt;img title="clip_image008" style="display: inline;" border="0" alt="clip_image008" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3250.clip_5F00_image008_5F00_thumb_5F00_13E42B36.jpg" width="748" height="500" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3681.clip_5F00_image010_5F00_466788A8.jpg"&gt;&lt;img title="clip_image010" style="display: inline;" border="0" alt="clip_image010" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6114.clip_5F00_image010_5F00_thumb_5F00_4FE0471E.jpg" width="756" height="324" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Or from Visual Studio 2012     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6253.clip_5F00_image012_5F00_74FD918A.jpg"&gt;&lt;img title="clip_image012" style="display: inline;" border="0" alt="clip_image012" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2248.clip_5F00_image012_5F00_thumb_5F00_04BD268F.jpg" width="523" height="889" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2703.clip_5F00_image014_5F00_1D6C4DD2.jpg"&gt;&lt;img title="clip_image014" style="display: inline;" border="0" alt="clip_image014" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1513.clip_5F00_image014_5F00_thumb_5F00_2678D953.jpg" width="853" height="482" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Once the database is created and ready to be used then you will go to the next step.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create the Dynamic ASP.NET project     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Open visual Studio and click on new project. You will need to switch to .net framework 4.0 to see the dynamic data ASP.NET SQL template.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/0871.clip_5F00_image016_5F00_40006680.jpg"&gt;&lt;img title="clip_image016" style="display: inline;" border="0" alt="clip_image016" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8284.clip_5F00_image016_5F00_thumb_5F00_16A91E82.jpg" width="754" height="523" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5554.clip_5F00_image018_5F00_7404E006.jpg"&gt;&lt;img title="clip_image018" style="display: inline;" border="0" alt="clip_image018" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7418.clip_5F00_image018_5F00_thumb_5F00_3864D146.jpg" width="830" height="541" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7848.clip_5F00_image020_5F00_390D8770.jpg"&gt;&lt;img title="clip_image020" style="display: inline;" border="0" alt="clip_image020" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5153.clip_5F00_image020_5F00_thumb_5F00_6C694ACC.jpg" width="757" height="224" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5125.clip_5F00_image022_5F00_1590E30B.jpg"&gt;&lt;img title="clip_image022" style="display: inline;" border="0" alt="clip_image022" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5460.clip_5F00_image022_5F00_thumb_5F00_08B68CED.jpg" width="846" height="537" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Change the “Global.ascx” file to uncomment the line to connect to the classes to be as follows     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;"&gt;   &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt;"&gt;&lt;span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;DefaultModel.RegisterContext(&lt;/span&gt;&lt;span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;typeof&lt;/span&gt;&lt;span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;(&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;TestDbDataClassesDataContext&lt;/span&gt;&lt;span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;), &lt;/span&gt;&lt;span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;new&lt;/span&gt;&lt;span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ContextConfiguration&lt;/span&gt;&lt;span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;() { ScaffoldAllTables = &lt;/span&gt;&lt;span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;true&lt;/span&gt;&lt;span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; });&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt; &lt;/div&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Change the .net Framework version to be 4.5 to be able to see the Identity and Access tool link.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1715.clip_5F00_image024_5F00_38912EAE.jpg"&gt;&lt;img title="clip_image024" style="display: inline;" border="0" alt="clip_image024" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5417.clip_5F00_image024_5F00_thumb_5F00_36742FE5.jpg" width="854" height="422" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h2&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Download the Identity and Access tool     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h2&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;From the visual studio tools menu click on the “Extensions and updates”     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8358.clip_5F00_image025_5F00_0CB0B4F2.png"&gt;&lt;img title="clip_image025" style="display: inline;" border="0" alt="clip_image025" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8625.clip_5F00_image025_5F00_thumb_5F00_57577CBF.png" width="838" height="720" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Search for the “Identity and Access tool” and install it and restart your Visual Studio.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6457.clip_5F00_image027_5F00_31BDD991.jpg"&gt;&lt;img title="clip_image027" style="display: inline;" border="0" alt="clip_image027" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8004.clip_5F00_image027_5F00_thumb_5F00_1638D78E.jpg" width="832" height="577" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h2&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create the Azure Web Site     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h2&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Open the Azure management site and click on new web site.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6470.clip_5F00_image028_5F00_19F67C5E.png"&gt;&lt;img title="clip_image028" style="display: inline;" border="0" alt="clip_image028" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2553.clip_5F00_image028_5F00_thumb_5F00_2A224457.png" width="852" height="601" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Click on “Download the publish profile”     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5460.clip_5F00_image030_5F00_07EA38D1.jpg"&gt;&lt;img title="clip_image030" style="display: inline;" border="0" alt="clip_image030" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3377.clip_5F00_image030_5F00_thumb_5F00_33BA8CC0.jpg" width="841" height="715" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Save this file on your Hard disk. Now in Visual Studio click on the project and then Publish     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1122.clip_5F00_image031_5F00_430DEECF.png"&gt;&lt;img title="clip_image031" style="display: inline;" border="0" alt="clip_image031" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8233.clip_5F00_image031_5F00_thumb_5F00_26B086E2.png" width="704" height="848" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Click on “Import”     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8032.clip_5F00_image033_5F00_4B51788C.jpg"&gt;&lt;img title="clip_image033" style="display: inline;" border="0" alt="clip_image033" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6355.clip_5F00_image033_5F00_thumb_5F00_6CEDA15D.jpg" width="838" height="650" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Now select the publish settings file already downloaded.      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Complete the publishing and test that the application is now published and working.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3162.clip_5F00_image034_5F00_45D2E21B.png"&gt;&lt;img title="clip_image034" style="display: inline;" border="0" alt="clip_image034" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5545.clip_5F00_image034_5F00_thumb_5F00_08627D94.png" width="706" height="721" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Now the next step is to configure the Facebook as an identity provider.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h2&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Setup Facebook as an Identity Provider     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h2&gt;  &lt;h3&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create the Facebook application     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Logon to your Facebook account and then open the link &lt;a href="http://developers.facebook.com"&gt;http://developers.facebook.com&lt;/a&gt;      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Register yourself as a developer.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2330.clip_5F00_image036_5F00_40C07E9F.jpg"&gt;&lt;img title="clip_image036" style="display: inline;" border="0" alt="clip_image036" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7585.clip_5F00_image036_5F00_thumb_5F00_1F60D903.jpg" width="814" height="85" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Now click on Apps and then create a new App     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7041.clip_5F00_image038_5F00_020B8139.jpg"&gt;&lt;img title="clip_image038" style="display: inline;" border="0" alt="clip_image038" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5811.clip_5F00_image038_5F00_thumb_5F00_47B00B57.jpg" width="846" height="95" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Give your application a name     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/0574.clip_5F00_image039_5F00_1B26DB71.png"&gt;&lt;img title="clip_image039" style="display: inline;" border="0" alt="clip_image039" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5635.clip_5F00_image039_5F00_thumb_5F00_528CEC9F.png" width="829" height="289" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Take note of your application ID and secret.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Also enter the URL of the ACS namespace you will create on the Azure ACS web site in the next step (It is better to create that namespace first and then return to this step later).     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3630.clip_5F00_image041_5F00_0986CAD9.jpg"&gt;&lt;img title="clip_image041" style="display: inline;" border="0" alt="clip_image041" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/0218.clip_5F00_image041_5F00_thumb_5F00_2718A5D8.jpg" width="797" height="757" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Click save Changes.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Create Your ACS Namespace     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Open the Azure portal and click new to create a new ACS names space.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2388.clip_5F00_image043_5F00_039C0173.jpg"&gt;&lt;img title="clip_image043" style="display: inline;" border="0" alt="clip_image043" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1261.clip_5F00_image043_5F00_thumb_5F00_772DDE49.jpg" width="773" height="340" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Once created you can click on the Manage link to start managing it.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1682.clip_5F00_image045_5F00_15981F33.jpg"&gt;&lt;img title="clip_image045" style="display: inline;" border="0" alt="clip_image045" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8004.clip_5F00_image045_5F00_thumb_5F00_54899FCE.jpg" width="668" height="361" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Configure your ACS service     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Start by adding the Facebook application as an identity provider. Click on identity providers and then “Add”     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3583.clip_5F00_image046_5F00_65219ABC.png"&gt;&lt;img title="clip_image046" style="display: inline;" border="0" alt="clip_image046" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2018.clip_5F00_image046_5F00_thumb_5F00_14900989.png" width="838" height="501" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1307.clip_5F00_image048_5F00_1F00B7DC.jpg"&gt;&lt;img title="clip_image048" style="display: inline;" border="0" alt="clip_image048" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5315.clip_5F00_image048_5F00_thumb_5F00_4AD10BCB.jpg" width="831" height="583" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Enter the application ID and secret and click “Save”     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1157.clip_5F00_image050_5F00_1A5A8755.jpg"&gt;&lt;img title="clip_image050" style="display: inline;" border="0" alt="clip_image050" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6242.clip_5F00_image050_5F00_thumb_5F00_77B648D9.jpg" width="821" height="651" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h2&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Configure Your Project to Link ACS Service     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h2&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;While on the ACS management site click on “Management service” so see all management links required to be able to communicate with ACS.      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5127.clip_5F00_image052_5F00_6DA1A7AE.jpg"&gt;&lt;img title="clip_image052" style="display: inline;" border="0" alt="clip_image052" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8540.clip_5F00_image052_5F00_thumb_5F00_5288D8A0.jpg" width="848" height="408" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1261.clip_5F00_image054_5F00_7DECF99A.jpg"&gt;&lt;img title="clip_image054" style="display: inline;" border="0" alt="clip_image054" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3288.clip_5F00_image054_5F00_thumb_5F00_1FF55561.jpg" width="844" height="540" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5126.clip_5F00_image056_5F00_592BBC56.jpg"&gt;&lt;img title="clip_image056" style="display: inline;" border="0" alt="clip_image056" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8420.clip_5F00_image056_5F00_thumb_5F00_3040A74D.jpg" width="841" height="506" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Click on “Show Key” and then copy the symmetric key generated.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;These will be the namespace and the management key of the namespace.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Right click on your project and then click “Identity and Access tool”     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2746.clip_5F00_image057_5F00_18C5F31C.png"&gt;&lt;img title="clip_image057" style="display: inline;" border="0" alt="clip_image057" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5282.clip_5F00_image057_5F00_thumb_5F00_11C64097.png" width="732" height="974" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Configure your ACS with the namespace and the key already copied before after selecting “Use the Windows Azure Access Control Service”.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6327.clip_5F00_image059_5F00_35DB7559.jpg"&gt;&lt;img title="clip_image059" style="display: inline;" border="0" alt="clip_image059" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8780.clip_5F00_image059_5F00_thumb_5F00_0F991C01.jpg" width="842" height="765" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3060.clip_5F00_image061_5F00_572AF528.jpg"&gt;&lt;img title="clip_image061" style="display: inline;" border="0" alt="clip_image061" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4426.clip_5F00_image061_5F00_thumb_5F00_0E24D362.jpg" width="822" height="536" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&amp;#160;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Now select the settings as below     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4784.clip_5F00_image063_5F00_3988F45C.jpg"&gt;&lt;img title="clip_image063" style="display: inline;" border="0" alt="clip_image063" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5661.clip_5F00_image063_5F00_thumb_5F00_25232ED1.jpg" width="802" height="729" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Finally click “Ok”. This will configure your ACS service and the relying party application with the required pass-through rule for all provider claims as shown below.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/0841.clip_5F00_image065_5F00_618B7DAE.jpg"&gt;&lt;img title="clip_image065" style="display: inline;" border="0" alt="clip_image065" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6102.clip_5F00_image065_5F00_thumb_5F00_18855BE8.jpg" width="834" height="512" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;The next steps are to create and implement the Claims authorization manager and configure your web.config.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h2&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Implement a Custom Claims Authorization Manager     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h2&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Since we are using .Net framework 4.5 this is a little different than what we used to do in 3.5 since now the WIF is totally integrated in the framework.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Add reference to the System.IdentityModel assembly     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7558.clip_5F00_image067_5F00_5C0CE73D.jpg"&gt;&lt;img title="clip_image067" style="display: inline;" border="0" alt="clip_image067" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/0083.clip_5F00_image067_5F00_thumb_5F00_0BE788FF.jpg" width="806" height="555" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Add and implement the new class “&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;MyAuthorizationManager&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;”     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;This is done so that the code of the file would be as follows.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;div style="padding: 1pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;"&gt;   &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;using&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; System.IO;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;using&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; System.Xml;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;using&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; System.Collections.Generic;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;using&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; System;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;using&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; System.Web;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;using&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; System.Linq;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;using&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; System.Security.Claims;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&amp;#160;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;namespace&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; TestDbWebApplication       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;{       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;public&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;class&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;MyAuthorizationManager&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; : &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ClaimsAuthorizationManager&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;private&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;static&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;Dictionary&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;, &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt; m_policies = &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;new&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;Dictionary&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;, &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;();       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&amp;#160;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;public&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; MyAuthorizationManager()        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;public&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;override&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;void&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; LoadCustomConfiguration(&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;XmlNodeList&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; nodes)       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;foreach&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; (&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;XmlNode&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; node &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;in&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; nodes)        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: green; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;//FIND ZIP CLAIM IN THE POLICY IN WEB.CONFIG AND GET ITS VALUE &lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: green; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;//ADD THE VALUE TO MODULE SCOPE m_policies &lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;XmlTextReader&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; reader = &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;new&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;XmlTextReader&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;(&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;new&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;StringReader&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;(node.OuterXml));        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;reader.MoveToContent();         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; resource = reader.GetAttribute(&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;resource&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;);        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;reader.Read();         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; claimType = reader.GetAttribute(&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;claimType&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;);        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;if&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; (claimType.CompareTo(&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ClaimTypes&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;.Name) != 0)        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;throw&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;new&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ArgumentNullException&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;(&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;Name Authorization is not specified in policy in web.config&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;);        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; name = &lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;name = reader.GetAttribute(&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;Name&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;);       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;m_policies[resource] = name;         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;public&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;override&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;bool&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; CheckAccess(&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;AuthorizationContext&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; context)        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: green; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;//GET THE IDENTITY &lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: green; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;//COMPARE WITH THE POLICY &lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; allowednames = &lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; requestingname = &lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;Uri&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; webPage = &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;new&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;Uri&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;(context.Resource[0].Value);        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ClaimsPrincipal&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; principal = (&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ClaimsPrincipal&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;)&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;HttpContext&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;.Current.User;        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;if&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; (principal == &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;null&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;)        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;throw&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;new&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;InvalidOperationException&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;(&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;Principal is not populate in the context - check configuration&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;);        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ClaimsIdentity&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; identity = (&lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ClaimsIdentity&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;)principal.Identity;        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;if&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; (m_policies.ContainsKey(webPage.PathAndQuery))        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;allowednames = m_policies[webPage.PathAndQuery];        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;requestingname = ((&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;from&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; c &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;in&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; identity.Claims        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;where&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; c.Type == &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ClaimTypes&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;.Name       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;select&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; c.Value).FirstOrDefault());       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;else&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;if&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; (m_policies.ContainsKey(&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;*&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;))       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;allowednames = m_policies[&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;*&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;];       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;requestingname = ((&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;from&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; c &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;in&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; identity.Claims       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;where&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; c.Type == &lt;/span&gt;&lt;span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ClaimTypes&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;.Name       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;select&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; c.Value).FirstOrDefault());       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;if&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; (allowednames.ToLower().Contains(requestingname.ToLower()))        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;return&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;true&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;;        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;return&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;false&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;;        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}         &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt;"&gt;&lt;span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;}&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt; &lt;/div&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;This would authorize users based on their login name reported by the identity provider (Facebook).     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Configure the Authorization manager in the Web.Config     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;The required steps are to add the following lines:     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;"&gt;   &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;system.webServer&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;modules&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;add&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;name&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;=&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;ClaimsAuthorizationModule&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;type&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;=&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;System.IdentityModel.Services.ClaimsAuthorizationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: yellow; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;preCondition&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;=&lt;/span&gt;&lt;span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;managedHandler&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;modules&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;system.webServer&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt; &lt;/div&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Please note the yellow highlighted section above as this is key to make this work.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;"&gt;   &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;system.identityModel&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;identityConfiguration&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;securityTokenHandlers&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: yellow; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;remove&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt; &lt;/span&gt;&lt;span style="background: yellow; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;type&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;=&lt;/span&gt;&lt;span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;System.IdentityModel.Tokens.SessionSecurityTokenHandler,System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&lt;/span&gt;&lt;span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: yellow; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;add&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt; &lt;/span&gt;&lt;span style="background: yellow; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;type&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;=&lt;/span&gt;&lt;span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler,System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&lt;/span&gt;&lt;span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: yellow; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;securityTokenHandlers&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;identityConfiguration&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;system.identityModel&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt; &lt;/div&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;     &lt;br /&gt; Please note the highlighted section as publishing to Azure web site will not work without these lines.      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style="mso-ansi-language: en-us;"&gt;Finally the claims authorization manager configuration.     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;"&gt;   &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;system.identityModel&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;identityConfiguration&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;claimsAuthorizationManager&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;type&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;=&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: blue; font-family: consolas; font-size: 9.5pt;"&gt;TestDbWebApplication&lt;span style="background: white; mso-highlight: white;"&gt;.&lt;/span&gt;MyAuthorizationManager&lt;span style="background: white; mso-highlight: white;"&gt;, &lt;/span&gt;TestDbWebApplication&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;policy&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;resource&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;=&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;*&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;claim&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;claimType&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;=&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; &lt;/span&gt;&lt;span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;Name&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;=&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;Mohamed Malek&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;policy&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;claimsAuthorizationManager&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;identityConfiguration&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;system.identityModel&lt;/span&gt;&lt;span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt; &lt;/div&gt;  &lt;h2&gt;Publish and test your site   &lt;p&gt;&lt;/p&gt; &lt;/h2&gt;  &lt;p class="MsoNormal"&gt;Now you have completed the site configuration publish it and you should be able to authenticate using Facebook and authorize the application to use your Facebook settings, and finally authorize the user.   &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2110.clip_5F00_image068_5F00_42753443.png"&gt;&lt;img title="clip_image068" style="display: inline;" border="0" alt="clip_image068" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1738.clip_5F00_image068_5F00_thumb_5F00_58E7D2CA.png" width="657" height="943" /&gt;&lt;/a&gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6471.clip_5F00_image070_5F00_613B8254.jpg"&gt;&lt;img title="clip_image070" style="display: inline;" border="0" alt="clip_image070" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3113.clip_5F00_image070_5F00_thumb_5F00_663DC003.jpg" width="831" height="645" /&gt;&lt;/a&gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;   &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;Logon to Facebook as usual.   &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7455.clip_5F00_image072_5F00_63B48E45.jpg"&gt;&lt;img title="clip_image072" style="display: inline;" border="0" alt="clip_image072" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4572.clip_5F00_image072_5F00_thumb_5F00_626FF566.jpg" width="846" height="225" /&gt;&lt;/a&gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;The app would request user permissions to give the user details to the ACS service.   &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8233.clip_5F00_image074_5F00_6EFDA282.jpg"&gt;&lt;img title="clip_image074" style="display: inline;" border="0" alt="clip_image074" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8204.clip_5F00_image074_5F00_thumb_5F00_18916DB6.jpg" width="832" height="346" /&gt;&lt;/a&gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;Web site will work as required.   &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-fareast-language: en-ca; mso-no-proof: yes;"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5008.clip_5F00_image076_5F00_0BB71798.jpg"&gt;&lt;img title="clip_image076" style="display: inline;" border="0" alt="clip_image076" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/4061.clip_5F00_image076_5F00_thumb_5F00_5565EF88.jpg" width="661" height="727" /&gt;&lt;/a&gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;Happy coding &lt;span style="font-family: wingdings; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: wingdings;"&gt;&lt;span style="mso-char-type: symbol; mso-symbol-font-family: wingdings;"&gt;J&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3569448" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/meamcs/archive/tags/-Net+Framework/">.Net Framework</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/WIF/">WIF</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Azure/">Azure</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/C_2300_/">C#</category></item><item><title>Windows Azure – Remove Virtual Disks</title><link>http://blogs.technet.com/b/meamcs/archive/2013/04/26/windows-azure-remove-virtual-disks.aspx</link><pubDate>Fri, 26 Apr 2013 10:43:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3569257</guid><dc:creator>Mohamed Marzouk [MSFT]</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3569257</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3569257</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/04/26/windows-azure-remove-virtual-disks.aspx#comments</comments><description>&lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;This is very famous issue when you create many Virtual Machines on Windows Azure, after deleting the VMs the virtual disks (VHD files) are still there.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;So far there is no way to remove these VHD files using the GUI interface, so I started to search how can I do it through PowerShell. The challenge of Azure PowerShell is that most of the resources available for developers using Visual Studio, for me any thing starts with Visual Studio is sort of mystery (The nice story that one of my developer friends identify SharePoint Site Collection: is a site contains collections is true story) that should be left to wisdom men (like this friend) who can understand it &lt;img class="wlEmoticon wlEmoticon-smile" style="style" alt="Smile" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5531.wlEmoticon_2D00_smile_5F00_298E1037.png" /&gt;.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;For Infrastructure guys like me, the following are step by step of how to use PowerShell to connect to Azure and then delete the VHDs:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3" face="Calibri"&gt;Step 1: Management Certificate:&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;In simple words we will need a certificate to connect with PowerShell to Azure, this certificate should be 2048 bits at least, self signed certificate is good option for testing and labs.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Creating Self Signed Certificate can be done by many ways, the easiest way is using the normal PowerShell:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Calibri"&gt;1. Open PowerShell (as an Administrator).&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;2. Type the following cmdlet:&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;New-SelfSignedCertificate -DnsName azure -CertStoreLocation cert:\LocalMachine\My&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;This cmdlet will create new self signed certificate and place it in the local machine store, check the following snapshots:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2703.image_5F00_555E6426.png"&gt;&lt;font size="3" face="Calibri"&gt;&lt;img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6330.image_5F00_thumb_5F00_2C071C28.png" width="817" height="163" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Let’s make sure that the certificate is created:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Calibri"&gt;1. From Run &amp;gt; Type mmc.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;2. Click File &amp;gt; Add/Remove Snap-in.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;3. Select Certificate and Click Add.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;4. Select Computer Account &amp;gt; Finish.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;5. Under Personal &amp;gt; Certificate &amp;gt; you should find the new certificate “azure”:&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8182.image_5F00_65A663BA.png"&gt;&lt;font size="3" face="Calibri"&gt;&lt;img title="image" style="margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2313.image_5F00_thumb_5F00_2CEB93E0.png" width="679" height="620" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;The next step is to upload this certificate with private key (the PFX file) to Windows Azure, in order to do that you will need to export the PFX file (the certificate with the Private Key) first:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Calibri"&gt;1. From the same Snap-in.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;2. Right click the certificate &amp;gt; All Tasks &amp;gt; Export.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;3. Click Next &amp;gt; Select “Yes Export the Private Key” &amp;gt; Click Next.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;4. On Export File Format click next &amp;gt; Then provide the password.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="3" face="Calibri"&gt;5. Browse to the location where you will save the certificate.&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;From Azure Management Portal create a new Cloud Service to use it with the certificate:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7418.image_5F00_63D54C4C.png"&gt;&lt;font size="3" face="Calibri"&gt;&lt;img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2438.image_5F00_thumb_5F00_238F0D05.png" width="809" height="209" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;After having the PFX file we will need to upload it to Windows Azure:&lt;/font&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Log into the &lt;/font&gt;&lt;a href="http://manage.windowsazure.com/"&gt;&lt;font size="3" face="Calibri"&gt;Management Portal&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;.&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;&lt;font size="3" face="Calibri"&gt;In the navigation pane, click &lt;strong&gt;Cloud Services&lt;/strong&gt;, and then click the service for which you want to add a new certificate.&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;&lt;font size="3" face="Calibri"&gt;On the ribbon, click &lt;strong&gt;Certificates&lt;/strong&gt;, and then click &lt;strong&gt;Upload a Certificate&lt;/strong&gt;.&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;&lt;font size="3" face="Calibri"&gt;In the &lt;strong&gt;Upload certificate&lt;/strong&gt; dialog, click &lt;strong&gt;Browse For File&lt;/strong&gt;, go to the directory containing your certificate, and select the .pfx&amp;#160; file to upload.&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Type the password of the private key for the certificate.&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/8738.image_5F00_2DFFBB58.png"&gt;&lt;font size="3" face="Calibri"&gt;&lt;img title="image" style="margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3581.image_5F00_thumb_5F00_77426053.png" width="513" height="341" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;strong&gt;Step 2: Install Azure PowerShell&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;To install Windows Azure PowerShell:&lt;/font&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;font size="3" face="Calibri"&gt;Download Windows Azure PowerShell: &lt;/font&gt;&lt;a title="http://go.microsoft.com/?linkid=9811175&amp;amp;clcid=0x409" href="http://go.microsoft.com/?linkid=9811175&amp;amp;clcid=0x409"&gt;&lt;font size="3" face="Calibri"&gt;http://go.microsoft.com/?linkid=9811175&amp;amp;clcid=0x409&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;&amp;#160;&lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font size="3" face="Calibri"&gt;Install Windows Azure PowerShell.&lt;/font&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3" face="Calibri"&gt;Step 3: Connect to Azure:&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Before we start using the Windows Azure cmdlets to remove the VHDs or anything else, we will need to configure connectivity between the workstation and Windows Azure. This can be done by downloading the PublishSettings file (this file will setup the PowerShell environment to use Windows Azure) from Windows Azure and importing it. The settings for Windows Azure PowerShell are stored in: &lt;strong&gt;&amp;lt;user&amp;gt;\AppData\Roaming\Windows Azure PowerShell&lt;/strong&gt;. &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;font size="3" face="Calibri"&gt;From Windows Azure PowerShell type the following cmdlet:&lt;/font&gt;      &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt; Get-AzurePublishSettingsFile &lt;/font&gt;&lt;/p&gt;      &lt;p&gt;&lt;font size="3" face="Calibri"&gt;A browser window opens at &lt;/font&gt;&lt;a href="https://windows.azure.com/download/publishprofile.aspx"&gt;&lt;font size="3" face="Calibri"&gt;https://windows.azure.com/download/publishprofile.aspx&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;, where you can sign in to Windows Azure.&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;font size="3" face="Calibri"&gt;Sign in to the Windows Azure Management Portal, and then follow the instructions to download your Windows Azure publishing settings. Use your browser to save the file as a .publishsettings file to your local computer. Note the location of the file.&lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font size="3" face="Calibri"&gt;In the Windows Azure PowerShell window, run the following command:&lt;/font&gt;      &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;Import-AzurePublishSettingsFile FileName.publishsettings &lt;/font&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/0564.image_5F00_6E725807.png"&gt;&lt;font size="3" face="Calibri"&gt;&lt;img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6574.image_5F00_thumb_5F00_36DBD572.png" width="832" height="159" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3" face="Calibri"&gt;Step 4: Remove the VHDs (Finally)&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Once we are connected now to Azure, we can manage Azure with PowerShell and do anything we need, if you forgot what was the purpose of this article this is the time you will need to scroll up and read it again &lt;img class="wlEmoticon wlEmoticon-smile" style="style" alt="Smile" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5531.wlEmoticon_2D00_smile_5F00_298E1037.png" /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Run the following cmdlet to see all the virtual disks (the VHD file):&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;Get-Azuredisk&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3348.disk_5F00_2101C748.jpg"&gt;&lt;font size="3" face="Calibri"&gt;&lt;img title="disk" style="display: inline; background-image: none;" border="0" alt="disk" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/3122.disk_5F00_thumb_5F00_120A7261.jpg" width="839" height="213" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;In the above snapshot this is the disk that I want to remove (you will need to make sure that is not connected to any Virtual Machine), then run the following cmdlet:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;Remove-AzureDisk &amp;lt;DiskName&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7367.image_5F00_50CC433C.png"&gt;&lt;font size="3" face="Calibri"&gt;&lt;img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/7510.image_5F00_thumb_5F00_0B474311.png" width="848" height="124" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;Now you will probably decide to leave the VHDs and not delete them which is easier &lt;img class="wlEmoticon wlEmoticon-smile" style="style" alt="Smile" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/5531.wlEmoticon_2D00_smile_5F00_298E1037.png" /&gt;, I don’t blame you for that. But you will have this article as reference in case one day someone asked you the question: How can I remove the unused VHD file.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;for more details about Azure PowerShell: &lt;/font&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/windowsazure/jj156055.aspx" href="http://msdn.microsoft.com/en-us/library/windowsazure/jj156055.aspx"&gt;&lt;font size="3" face="Calibri"&gt;http://msdn.microsoft.com/en-us/library/windowsazure/jj156055.aspx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;for more information about Azure Management Certificate: &lt;/font&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/windowsazure/gg981929.aspx" href="http://msdn.microsoft.com/en-us/library/windowsazure/gg981929.aspx"&gt;&lt;font size="3" face="Calibri"&gt;http://msdn.microsoft.com/en-us/library/windowsazure/gg981929.aspx&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="-Windows AzurePowerShellLast updated March 2013" href="http://go.microsoft.com/?linkid=9811175&amp;amp;clcid=0x409"&gt;&lt;font size="3" face="Calibri"&gt;&amp;#160;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3569257" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Azure/">Azure</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/powershell/">powershell</category></item><item><title>Office 365 Arabization – Part III</title><link>http://blogs.technet.com/b/meamcs/archive/2013/04/24/office-365-arabization-part-iii.aspx</link><pubDate>Wed, 24 Apr 2013 08:07:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3568712</guid><dc:creator>Mohamed Marzouk [MSFT]</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3568712</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3568712</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/04/24/office-365-arabization-part-iii.aspx#comments</comments><description>&lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;In &lt;/font&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/03/11/office-365-arabization-part-ii.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part II&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; I’ve explained how to create bulk users using CSV file, and how to create the CSV file.&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;In this part we will discuss some of the management tasks including password.&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;b&gt;&lt;font size="4" face="Calibri"&gt;Users Bulk Import with Password&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;In &lt;/font&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/03/11/office-365-arabization-part-ii.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part II&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; I’ve explained how to prepare the CSV, create the users with randomly generated password, which will require sending this password later to the users, check the following report after creating the users:&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1263.clip_5F00_image002_5F00_67B8049C.jpg"&gt;&lt;font size="3" face="Calibri"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6763.clip_5F00_image002_5F00_2E7177DA.jpg"&gt;&lt;img title="clip_image002" style="display: inline; background-image: none;" border="0" alt="clip_image002" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/2480.clip_5F00_image002_5F00_thumb_5F00_2DED2149.jpg" width="832" height="201" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;In large environments it may be required to create users with password (could be generated from ID as an example) and of course enforce the user to change it once logon, check the following cmdlet:&lt;/font&gt;&lt;/p&gt;  &lt;p align="left"&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;&lt;strong&gt;Import-Csv D:\arab-users.csv | ForEach-Object -Process {New-MsolUser -UserPrincipalName $_.upn -FirstName $_.firstname -LastName $_.lastname -Department $_.department -Title $_.title -City $_.city -Country $_.country -DisplayName $_.displayname -LicenseAssignment meamcs:ENTERPRISEPACK -UsageLocation EG -Password $_.password -ForceChangePassword $true} | Export-Csv -Path c:\arabusers-result.csv -Encoding unicode&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;In the above cmdlet we have completed the following:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;1. Create the users in the CSV file with the mentioned attributes.&lt;/font&gt;&lt;/p&gt;    &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;2. Assign license with usage location (which is required).&lt;/font&gt;&lt;/p&gt;    &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;3. Set each user’s password according to the value in the CSV file.&lt;/font&gt;&lt;/p&gt;    &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;4. The user will be forced to change the password on the next logon ($true is the default value).&lt;/font&gt;&lt;/p&gt;    &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;5. Export the result in CSV file.&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;Let’s first discuss the second point how I got LicenseAssinment value, run the following cmdlet to get the license in your tenant:&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/1856.05_2D00_01_5F00_7E3EDCEF.jpg"&gt;&lt;img title="05-01" style="display: inline; background-image: none;" border="0" alt="05-01" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57-metablogapi/6518.05_2D00_01_5F00_thumb_5F00_756ED4A3.jpg" width="835" height="110" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;Last thing is to make sure that the password will be according to the below conditions:&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;- Use 8 to 16 characters.&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;- Create a strong password. Office 365 requires at least 3 of the following:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;o Lowercase characters&lt;/font&gt;&lt;/p&gt;    &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;o Uppercase characters&lt;/font&gt;&lt;/p&gt;    &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;o Numbers (0-9)&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;o Symbols, including: ! @ # $ % ^ &amp;amp; * - _ + = [ ] { } | \ : ‘ , . ? / ` ~ “ &amp;lt; &amp;gt; ( ) ;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;- Don’t use the user name (the part of your user ID to the left of the @ symbol).&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;- UNICODE values are not allowed, so no Arabic password J&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;b&gt;&lt;font size="4" face="Calibri"&gt;Users Bulk Modify&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;After creating users it may be required to modify users’ attributes, so we will need to have our CSV file ready as per the &lt;/font&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/03/11/office-365-arabization-part-ii.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part II&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;, then the following cmdlet shows an example of modifying some attributes:&lt;/font&gt;&lt;/p&gt;  &lt;p align="left"&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;&lt;strong&gt;Import-Csv D:\arab-users.csv | ForEach-Object -Process {Set-MsolUser -UserPrincipalName $_.upn -FirstName $_.firstname -LastName $_.lastname -Department $_.department -Title $_.title -City $_.city -Country $_.country -DisplayName $_.displayname -UsageLocation EG -PasswordNeverExpires $true} | Export-Csv -Path d:\arabusers-result.csv -Encoding unicode &lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="left"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="left"&gt;&lt;font size="3" face="Calibri"&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;1. From the CSV and for each user with this UserPrincipalName value ($_.upn) we have modified all of the above attributes to the values in the CSV file.&lt;/font&gt;&lt;/p&gt;    &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;2. UsageLocation value has been used with the same cmdlet.&lt;/font&gt;&lt;/p&gt;    &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;3. Password Never Expire has been allowed, so the password will not expire (the default is the password will expire every 90 days).&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;The following can’t be done from this cmdlet:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;1. Change the User Principal Name, which can be done through the following cmdlet:&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p align="left"&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;&lt;strong&gt;Import-Csv C:\ newupn.csv | ForEach-Object -Process {Set-MsolUserPrincipalName -UserPrincipalName $_.upn -NewUserPrincipalName $_.upn1}&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;2. Resetting the password, which can be done by the following cmdlet:&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p align="left"&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;&lt;strong&gt;Import-Csv d:\arab-userspassword.csv | ForEach-Object -Process {Set-MsolUserPassword -UserPrincipalName $_.upn -NewPassword $_.password}&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;3. Assign license to the users, and this can be done by using the following cmdlet:&lt;/font&gt;&lt;/p&gt;  &lt;p align="left"&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;&lt;strong&gt;Import-Csv d:\arab-userslicense.csv | ForEach-Object -Process {Set-MsolUserLicense -UserPrincipalName $_.upn -AddLicenses &amp;quot;meamcs:ENTERPRISEPACK&amp;quot;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;Last nice trick to modify everything in one cmdlet by pipeline all the above cmdlets as the following:&lt;/font&gt;&lt;/p&gt;  &lt;p align="left"&gt;&lt;font style="background-color: rgb(204, 204, 204);" size="3" face="Calibri"&gt;&lt;strong&gt;Import-Csv -Path C:\arabusers.csv | ForEach-Object -Process {Set-MsolUser -UserPrincipalName $_.upn -UsageLocation EG | Set-MsolUserLicense -UserPrincipalName $_.upn -AddLicenses &amp;quot;meamcs:ENTERPRISEPACK&amp;quot; | Set-MsolUserPassword -upn $_.userprincipalname -NewPassword $_.password}&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;And don’t forget the “” with the license.&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;I hope the above cmdlets were useful and saved time of trying and searching how to do it. In the next part I will explain the reports and Dynamic Distribution Groups.&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;Review the previous parts:&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/02/24/office-365-arabization-part-i.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part I&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;a href="http://blogs.technet.com/b/meamcs/archive/2013/03/11/office-365-arabization-part-ii.aspx"&gt;&lt;font size="3" face="Calibri"&gt;Part II&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3568712" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Office+365/">Office 365</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Arabic/">Arabic</category></item><item><title>Some users unable to create VMs in VMM 2012 SP1: “User or user role not valid” (Error ID 26726)</title><link>http://blogs.technet.com/b/meamcs/archive/2013/04/23/some-users-unable-to-create-vms-in-vmm-2012-sp1-user-or-user-role-not-valid-error-id-26726.aspx</link><pubDate>Tue, 23 Apr 2013 12:48:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3568521</guid><dc:creator>Fatima Azzahra El Azzouzi</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/rsscomments.aspx?WeblogPostID=3568521</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/meamcs/commentapi.aspx?WeblogPostID=3568521</wfw:comment><comments>http://blogs.technet.com/b/meamcs/archive/2013/04/23/some-users-unable-to-create-vms-in-vmm-2012-sp1-user-or-user-role-not-valid-error-id-26726.aspx#comments</comments><description>&lt;p&gt;This post describes an error that occurred during System Center Virtual Machine Manager 2012 SP1 deployment, with two VMM servers in cluster configuration.&lt;/p&gt;
&lt;p&gt;When using the VMM Console, some users (but not all users) were unable to create VMs, even if the user account is a member of the Delegated Administrator role. In this case, when the user selects &amp;ldquo;Create a new VM&amp;rdquo;, the following error message is displayed when &amp;ldquo;Next&amp;rdquo; is clicked on the &amp;ldquo;Configure Hardware&amp;rdquo; page:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ID 26726:&lt;/strong&gt; &amp;ldquo;Either the specified user role or the specified user &lt;em&gt;(%Username)&lt;/em&gt; is not valid. User is not a member of the role. Add &lt;em&gt;(%Username)&lt;/em&gt; as a member of the user role and try again or provide a different user role or a different user.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;The same error persists even if the user accounts become VMM Administrators.&lt;/p&gt;
&lt;p&gt;This error originates from a known issue (&lt;a href="http://support.microsoft.com/kb/331951"&gt;http://support.microsoft.com/kb/331951&lt;/a&gt;) where the VMM service does not have access to authorization information on user account objects or computer account objects. Specifically, the VMM service cannot read the &lt;strong&gt;token-groups-global-and-universal&lt;/strong&gt; (TGGAU) attribute in AD.&lt;/p&gt;
&lt;p&gt;This issue is resolved by adding the VMM Service account to the Windows Authorization Access (&lt;strong&gt;Pre-Windows 2000 Compatible Access&lt;/strong&gt;) group in AD.&lt;/p&gt;
&lt;p&gt;In conclusion, if some users are unable to create VMs through the VMM Console due to Error ID 26726, the VMM service is probably unable to verify whether those users are authorized to create VMs, and adding the VMM service to the &lt;strong&gt;Pre-Windows 2000 Compatible Access&lt;/strong&gt; group resolves the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3568521" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/meamcs/archive/tags/System+Center+Virtual+Machine+Manger/">System Center Virtual Machine Manger</category><category domain="http://blogs.technet.com/b/meamcs/archive/tags/Troubleshooting/">Troubleshooting</category></item></channel></rss>