<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Migrating from JSP/Servlets to ASP.NET</title><link>http://forums.asp.net/45.aspx</link><description>Discuss moving from JSP/Servlets to ASP.NET.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Mapped Diagnostic context for .net</title><link>http://forums.asp.net/thread/3076186.aspx</link><pubDate>Thu, 09 Apr 2009 14:20:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3076186</guid><dc:creator>sosmary</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3076186.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=45&amp;PostID=3076186</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was able to figure this out.&amp;nbsp; Here&amp;#39;s what I did....the logging application block has an ExtraInformation provider class which gather context info, debug messages etc.&amp;nbsp;&amp;nbsp; This class supports the following providers:&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ExtraInformation.DebugInformationProvider()&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ExtraInformation.ManagedSecurityContextInformationProvider()&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ExtraInformation.UnmanagedSecurityContextInformationProvider()&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;Below is an example to get the security info ---- username and authentication details from the class.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Imports&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Microsoft.Practices.EnterpriseLibrary.Logging.ExtraInformation&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; info &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ManagedSecurityContextInformationProvider&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Username = &amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;info.IdentityName.Trim&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Me.AuthType = info.AuthenticationType&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Me.IsAuthenticated = info.IsAuthenticated&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Thanks,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;sosmary&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Mapped Diagnostic context for .net</title><link>http://forums.asp.net/thread/3076176.aspx</link><pubDate>Thu, 09 Apr 2009 14:18:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3076176</guid><dc:creator>sosmary</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3076176.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=45&amp;PostID=3076176</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was able to figure this out.&amp;nbsp; Here&amp;#39;s what I did....the logging application block has an ExtraInformation provider class which gather context info, debug messages etc.&amp;nbsp;&amp;nbsp; This class supports the following providers:&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ExtraInformation.DebugInformationProvider()&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ExtraInformation.ManagedSecurityContextInformationProvider()&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ExtraInformation.UnmanagedSecurityContextInformationProvider()&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;Below is an example to get the security info ---- username and authentication details from the class.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Imports&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Microsoft.Practices.EnterpriseLibrary.Logging.ExtraInformation&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; info &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ManagedSecurityContextInformationProvider&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Username = &amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;info.IdentityName.Trim&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Me.AuthType = info.AuthenticationType&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Me.IsAuthenticated = info.IsAuthenticated&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Thanks,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;sosmary&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Mapped Diagnostic context for .net</title><link>http://forums.asp.net/thread/2924726.aspx</link><pubDate>Sun, 08 Feb 2009 03:48:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2924726</guid><dc:creator>sosmary</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2924726.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=45&amp;PostID=2924726</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have used the Mapped Diagnostic Context (MDC) in Java to store local values to be used later for logging purposes like the username, sessionId, etc.&amp;nbsp; Currently we are converting to .Net and we want to make use of the Enterprise Library 4.0. for logging and exception handling.&amp;nbsp;&amp;nbsp;&amp;nbsp;I am looking for the MDC equivalent for .Net. Any leads on this will be very useful.&lt;/p&gt;
&lt;p&gt;I appreciate all your useful inputs.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;sosmary&lt;/p&gt;</description></item></channel></rss>