<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Rahul Soni's blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/rahulso/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/rahulso/feed.xml</link>
    <description>Never assume the obvious is true!</description>
    <lastBuildDate>Thu, 30 Jul 2015 06:30:07 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>ASP.NET:How to write error messages into a text file using a simple httpModule</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/asp-nethow-to-write-error-messages-into-a-text-file-using-a-simple-httpmodule</link>
      <pubDate>Fri, 18 Jul 2008 09:41:00 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/07/18/asp-nethow-to-write-error-messages-into-a-text-file-using-a-simple-httpmodule/</guid>
      <description><![CDATA[In one of my previous posts, I mentioned about how to troubleshoot some issues with the use of a...]]></description>
      <content:encoded><![CDATA[<P>In one of my <A href="https://blogs.msdn.com/rahulso/archive/2008/07/13/how-to-use-httpmodules-to-troubleshoot-your-asp-net-application.aspx" mce_href="https://blogs.msdn.com/rahulso/archive/2008/07/13/how-to-use-httpmodules-to-troubleshoot-your-asp-net-application.aspx">previous posts</A>, I mentioned about how to troubleshoot some issues with the use of a module. In this post, I will show you how a similar module could be of use when you want to log all the errors in a text file for troubleshooting purposes. Please ensure that C:\Temp folder has Write access for the account that is running the IIS Worker Process. Here is the code for the module... </P><PRE class=code><SPAN style="COLOR: rgb(0,0,255)">using</SPAN> System;
<SPAN style="COLOR: rgb(0,0,255)">using</SPAN> System.Collections.Generic;
<SPAN style="COLOR: rgb(0,0,255)">using</SPAN> System.Text;
<SPAN style="COLOR: rgb(0,0,255)">using</SPAN> System.Web;
<SPAN style="COLOR: rgb(0,0,255)">using</SPAN> System.IO;
<SPAN style="COLOR: rgb(0,0,255)">namespace</SPAN> myModules
{
    <SPAN style="COLOR: rgb(0,0,255)">class</SPAN> <SPAN style="COLOR: rgb(43,145,175)">Trigger</SPAN>:<SPAN style="COLOR: rgb(43,145,175)">IHttpModule
</SPAN>    {
        <SPAN style="COLOR: rgb(0,0,255)">public</SPAN> <SPAN style="COLOR: rgb(0,0,255)">void</SPAN> Init(System.Web.<SPAN style="COLOR: rgb(43,145,175)">HttpApplication</SPAN> context)
        {
            context.EndRequest += <SPAN style="COLOR: rgb(0,0,255)">new</SPAN> <SPAN style="COLOR: rgb(43,145,175)">EventHandler</SPAN>(<SPAN style="COLOR: rgb(0,0,255)">this</SPAN>.EndRoutine);
        }
        <SPAN style="COLOR: rgb(0,0,255)">public</SPAN> <SPAN style="COLOR: rgb(0,0,255)">void</SPAN> EndRoutine(<SPAN style="COLOR: rgb(0,0,255)">object</SPAN> o, <SPAN style="COLOR: rgb(43,145,175)">EventArgs</SPAN> e)
        {
            <SPAN style="COLOR: rgb(43,145,175)">HttpApplication</SPAN> myApp;
            myApp = (<SPAN style="COLOR: rgb(43,145,175)">HttpApplication</SPAN>)o;
            <SPAN style="COLOR: rgb(43,145,175)">HttpContext</SPAN> c = myApp.Context;
            <SPAN style="COLOR: rgb(0,0,255)">if</SPAN> (myApp.Context.AllErrors != <SPAN style="COLOR: rgb(0,0,255)">null</SPAN>)
            {
                <SPAN style="COLOR: rgb(43,145,175)">StreamWriter</SPAN> sw = <SPAN style="COLOR: rgb(0,0,255)">new</SPAN> <SPAN style="COLOR: rgb(43,145,175)">StreamWriter</SPAN>(<SPAN style="COLOR: rgb(163,21,21)">"C:\\Temp\\ErrorList.txt"</SPAN>, <SPAN style="COLOR: rgb(0,0,255)">true</SPAN>);
                <SPAN style="COLOR: rgb(0,0,255)">foreach</SPAN> (<SPAN style="COLOR: rgb(43,145,175)">Exception</SPAN> ex <SPAN style="COLOR: rgb(0,0,255)">in</SPAN> myApp.Context.AllErrors)
                {
                    sw.WriteLine(<SPAN style="COLOR: rgb(163,21,21)">"Error occurred at #{0}"</SPAN>, <SPAN style="COLOR: rgb(43,145,175)">DateTime</SPAN>.Now.ToString());
                    sw.WriteLine(<SPAN style="COLOR: rgb(163,21,21)">"Error occurred in page #{0}"</SPAN>, c.Request.FilePath);
                    sw.WriteLine(ex.InnerException.Message);
                    sw.WriteLine(ex.InnerException.StackTrace);
                    sw.WriteLine();
                }
                sw.Dispose();
            }
        }
        <SPAN style="COLOR: rgb(0,0,255)">public</SPAN> <SPAN style="COLOR: rgb(0,0,255)">void</SPAN> Dispose()
        {
            <SPAN style="COLOR: rgb(0,128,0)">//Nothing to Dispose as of now
</SPAN>        }
    }
}</PRE><PRE class=code><A href="https://blogs.msdn.com/rahulso/attachment/8749269.ashx" mce_href="https://blogs.msdn.com/rahulso/attachment/8749269.ashx"><IMG title=Download alt=Download src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/08/76/22/88/ta-download.jpg" original-url="https://blogs.msdn.com/photos/rahulso/images/8762288/original.aspx" border=0 mce_src="https://blogs.msdn.com/photos/rahulso/images/8762288/original.aspx"></A></PRE>
<P>You can save the downloaded file to the bin folder of your web application and add the following to the web.config...</P><PRE class=code><SPAN style="COLOR: rgb(0,0,255)">        &lt;</SPAN><SPAN style="COLOR: rgb(163,21,21)">httpModules</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;
            &lt;</SPAN><SPAN style="COLOR: rgb(163,21,21)">add</SPAN><SPAN style="COLOR: rgb(0,0,255)"> </SPAN><SPAN style="COLOR: rgb(255,0,0)">name</SPAN><SPAN style="COLOR: rgb(0,0,255)">=</SPAN>"<SPAN style="COLOR: rgb(0,0,255)">Trigger</SPAN>"<SPAN style="COLOR: rgb(0,0,255)"> </SPAN><SPAN style="COLOR: rgb(255,0,0)">type</SPAN><SPAN style="COLOR: rgb(0,0,255)">=</SPAN>"<SPAN style="COLOR: rgb(0,0,255)">myModules.Trigger, myModules</SPAN>"<SPAN style="COLOR: rgb(0,0,255)">/&gt;
        &lt;/</SPAN><SPAN style="COLOR: rgb(163,21,21)">httpModules</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN></PRE><A href="https://11011.net/software/vspaste" mce_href="https://11011.net/software/vspaste"></A>
<P><BR>Here is the sample output (<STRONG>C:\Temp\ErrorList.txt</STRONG>) for one of the applications where I have used the <STRONG>Throw New AppDomainUnloadedException </STRONG>or similar lines to create the error...</P>
<P><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_2.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_2.png" mce_href="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_2.png"><IMG height=473 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_thumb.png" width=871 border=0 mce_src="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_thumb.png"></A></P>
<P>Hope this helps, <IMG alt=Happy src="https://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif" mce_src="https://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif"> <BR>Rahul </P>
<P><BR><B><I>Quote of the day: </I></B><BR>The nice thing about standards is that there are so many of them to choose from. - Andrew S. Tanenbaum</P>
<P>Posted at &gt; 6:10 PM IST</P>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/08/74/92/69/myModules.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-08-74-92-69/myModules.zip">myModules.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Logparser Scenario 9:Find out what is the peak time for your IIS Server</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/logparser-scenario-9find-out-what-is-the-peak-time-for-your-iis-server</link>
      <pubDate>Wed, 16 Jul 2008 00:38:36 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/07/16/logparser-scenario-9find-out-what-is-the-peak-time-for-your-iis-server/</guid>
      <description><![CDATA[This blog entry is a continuation of the KB Article https://support.microsoft.com/?id=910447...]]></description>
      <content:encoded><![CDATA[<p>This blog entry is a continuation of the KB Article <a href="https://support.microsoft.com/?id=910447">https://support.microsoft.com/?id=910447</a></p>  <p><strong>Scenario 9:Find out what is the peak time for your IIS Server</strong></p>  <p>How can you find out what is the peak time (peak hour) for your Website using Logparser?</p>  <p><strong>Answer:</strong></p>  <p>Logparser &quot;SELECT quantize(time,60), count(*) as Frequency from ex080716.log GROUP BY quantize(time,60) order by quantize(time, 60)&quot; -rtp:-1</p>  <p>Here is a brief snapshot of my LogFile...</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_2.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_2.png"><img height="340" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_thumb.png" width="498" border="0" /></a> </p>  <p>And here is the output...</p>  <p>QUANTIZE(time, 60) Frequency   <br />------------------ ---------    <br />02:37:00&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 4    <br />02:38:00&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 3    <br />02:39:00&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 8    <br />02:40:00&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 55    <br />02:41:00&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 215    <br />02:45:00&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 40    <br />02:46:00&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 36 </p>  <p>Statistics:   <br />-----------    <br />Elements processed: 361    <br />Elements output:&#160;&#160;&#160; 7    <br />Execution time:&#160;&#160;&#160;&#160; 0.00 seconds</p>  <p>You may also try... </p>  <p>Logparser &quot;SELECT quantize(time,60), count(*) as Frequency INTO Image.GIF from ex.log GROUP BY quantize(time,60) order by quantize(time, 60)&quot;</p>  <p>Here is the output...</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_4.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_4.png"><img height="479" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_thumb_1.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_thumb_1.png" width="641" border="0" /></a> </p>  <p>This tells me that 2:41 GMT is the Peak Minute for my web-site. If you want to get the details per hour... change the query to...</p>  <p>Logparser &quot;SELECT quantize(time,3600), count(*) as Frequency INTO Image.GIF from ex.log GROUP BY quantize(time,3600) order by quantize(time, 3600)&quot; </p>  <p>As you can easily figure out, my site doesn't have too many hits after all <img alt="Winking" src="https://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/3.gif" /></p>  <p>Hope this helps... <img alt="Wave" src="https://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" />    <br />Rahul</p>  <p>   <br /><b><i>Quote of the day: </i></b>    <br />People who have no weaknesses are terrible; there is no way of taking advantage of them. - Anatole France</p>  <p>Posted at &gt; 10:07 AM IST</p>]]></content:encoded>
    </item>
    <item>
      <title>Run a batch file as a specific User (or Administrator) from ASP.NET...</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/run-a-batch-file-as-a-specific-user-or-administrator-from-asp-net</link>
      <pubDate>Sun, 13 Jul 2008 06:01:00 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/07/13/run-a-batch-file-as-a-specific-user-or-administrator-from-asp-net/</guid>
      <description><![CDATA[...well first of all, I am NOT recommending it, but sometimes it could be necessary! Now, let's...]]></description>
      <content:encoded><![CDATA[<p>...well first of all, I am NOT recommending it, but sometimes it could be necessary! Now, let's proceed to the code...</p>  <p>1. Create a page called RunBatchFile.vb and paste the following...</p> <div class="boxedoutput"> <pre class="code"><span style="color: rgb(0,0,255)">Imports</span> System.Diagnostics
<span style="color: rgb(0,0,255)">Imports</span> System.IO
<span style="color: rgb(0,0,255)">Partial</span> <span style="color: rgb(0,0,255)">Class</span> RunBatchFile
    <span style="color: rgb(0,0,255)">Inherits</span> System.Web.UI.Page
    <span style="color: rgb(0,0,255)">Dim</span> _password <span style="color: rgb(0,0,255)">As</span> <span style="color: rgb(0,0,255)">New</span> System.Security.SecureString
    <span style="color: rgb(0,0,255)">Protected</span> <span style="color: rgb(0,0,255)">Sub</span> Page_Load(<span style="color: rgb(0,0,255)">ByVal</span> sender <span style="color: rgb(0,0,255)">As</span> <span style="color: rgb(0,0,255)">Object</span>, <span style="color: rgb(0,0,255)">ByVal</span> e <span style="color: rgb(0,0,255)">As</span> System.EventArgs) <span style="color: rgb(0,0,255)">Handles</span> <span style="color: rgb(0,0,255)">Me</span>.Load
        <span style="color: rgb(0,0,255)">Dim</span> password <span style="color: rgb(0,0,255)">As</span> <span style="color: rgb(0,0,255)">String<br />        'Read from any Registry or Encrypted config file if you like for added security.
</span>        password = <span style="color: rgb(163,21,21)">&quot;YOUR___PASSWORD&quot;  
</span>        <span style="color: rgb(0,0,255)">For</span> <span style="color: rgb(0,0,255)">Each</span> c <span style="color: rgb(0,0,255)">As</span> <span style="color: rgb(0,0,255)">Char</span> <span style="color: rgb(0,0,255)">In</span> password
            _password.AppendChar(c)
        <span style="color: rgb(0,0,255)">Next
</span>        <span style="color: rgb(0,0,255)">Dim</span> strFilePath <span style="color: rgb(0,0,255)">As</span> <span style="color: rgb(0,0,255)">String</span> = <span style="color: rgb(163,21,21)">&quot;c:\\temp\\test.bat&quot;
</span>        <span style="color: rgb(0,0,255)">Dim</span> psiMyProcess <span style="color: rgb(0,0,255)">As</span> ProcessStartInfo = <span style="color: rgb(0,0,255)">New</span> ProcessStartInfo(<span style="color: rgb(163,21,21)">&quot;cmd.exe&quot;</span>)
        psiMyProcess.LoadUserProfile = <span style="color: rgb(0,0,255)">True
</span>        psiMyProcess.UserName = <span style="color: rgb(163,21,21)">&quot;Administrator&quot;
</span>        psiMyProcess.Password = _password
        psiMyProcess.UseShellExecute = <span style="color: rgb(0,0,255)">False
</span>        psiMyProcess.CreateNoWindow = <span style="color: rgb(0,0,255)">True
</span>        psiMyProcess.RedirectStandardOutput = <span style="color: rgb(0,0,255)">True
</span>        psiMyProcess.RedirectStandardInput = <span style="color: rgb(0,0,255)">True
</span>        psiMyProcess.RedirectStandardError = <span style="color: rgb(0,0,255)">True
</span>        psiMyProcess.WorkingDirectory = <span style="color: rgb(163,21,21)">&quot;c:\\temp\\&quot;
</span>        <span style="color: rgb(0,0,255)">Dim</span> prcProcess <span style="color: rgb(0,0,255)">As</span> Process = Process.Start(psiMyProcess)
        <span style="color: rgb(0,0,255)">Dim</span> strm <span style="color: rgb(0,0,255)">As</span> StreamReader = File.OpenText(strFilePath)
        <span style="color: rgb(0,0,255)">Dim</span> strOut <span style="color: rgb(0,0,255)">As</span> StreamReader = prcProcess.StandardOutput
        <span style="color: rgb(0,0,255)">Dim</span> strIn <span style="color: rgb(0,0,255)">As</span> StreamWriter = prcProcess.StandardInput
        <span style="color: rgb(0,0,255)">Do</span> <span style="color: rgb(0,0,255)">While</span> strm.Peek() &lt;&gt; -1
            strIn.WriteLine(strm.ReadLine())
        <span style="color: rgb(0,0,255)">Loop
</span>        strm.Close()
        strIn.WriteLine(<span style="color: rgb(0,0,255)">String</span>.Format(<span style="color: rgb(163,21,21)">&quot;# {0} ran successfully. Exiting now!&quot;</span>, strFilePath))
        strIn.WriteLine(<span style="color: rgb(163,21,21)">&quot;Exit&quot;</span>)
        prcProcess.Close()
        <span style="color: rgb(0,0,255)">Dim</span> strOutput <span style="color: rgb(0,0,255)">As</span> <span style="color: rgb(0,0,255)">String</span> = strOut.ReadToEnd().Trim()
        strIn.Close()
        strOut.Close()
        Response.Write(<span style="color: rgb(0,0,255)">String</span>.Format(<span style="color: rgb(163,21,21)">&quot;&lt;font face=courier size=0&gt;{0}&lt;/font&gt;&quot;</span>, _
                strOutput.Replace(System.Environment.NewLine, <span style="color: rgb(163,21,21)">&quot;&lt;br&gt;&quot;</span>)))
    <span style="color: rgb(0,0,255)">End</span> <span style="color: rgb(0,0,255)">Sub
End</span> <span style="color: rgb(0,0,255)">Class
</span></pre>
</div>
<p>2. The batch file that I have is a one liner (and a no-brainer)... [Here, <strong>one</strong> and <strong>two</strong> are folders containing a few files]</p>

<p><strong>xcopy one\*.* two /y</strong></p>

<p>3. If everything is in place, you should get something like this as output...</p>

<p>&#160;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/RunabatchfileasaspecificUserorAdministr_D80C/image_5.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/RunabatchfileasaspecificUserorAdministr_D80C/image_5.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="151" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/RunabatchfileasaspecificUserorAdministr_D80C/image_thumb_1.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/RunabatchfileasaspecificUserorAdministr_D80C/image_thumb_1.png" width="473" border="0" /></a> </p>

<p>Hope this helps, <img alt="Smile" src="https://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/regular_smile.gif" /> 

  <br />Rahul</p>

<br /><b><i>Quote of the day: </i></b>

<br />The human race has one really effective weapon, and that is laughter. - Mark Twain]]></content:encoded>
    </item>
    <item>
      <title>How to use httpModules to troubleshoot your ASP.NET application</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/how-to-use-httpmodules-to-troubleshoot-your-asp-net-application</link>
      <pubDate>Sun, 13 Jul 2008 04:37:54 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/07/13/how-to-use-httpmodules-to-troubleshoot-your-asp-net-application/</guid>
      <description><![CDATA[No matter how many things you keep in mind before developing an application, when once they are put...]]></description>
      <content:encoded><![CDATA[<p>No matter how many things you keep in mind before developing an application, when once they are put in production... quite often you will see something not behaving the way you expected. Many-a-times, the applications would throw an error which you can troubleshoot depending on the error message you found. In this post, my intention is not to cover those &quot;error&quot; scenarios. I intend to cover something which is more problematic to troubleshoot... like intermittent slowness in some pages, or some errors that are coming up and you are not able to locate what's wrong with <strong>those bad-pages</strong>.</p>  <p>What would you do in those situations??</p>  <p>I know there is not a single correct answer to this question and it is scenario specific. Let me show you one little trick which might help you while troubleshooting your web-applications. This application (module) is no-where near completion... it just shows you how you can <strong>use Modules to troubleshoot the issue</strong>. You can tweak the code based on your scenario and work accordingly. I will share the plain httpmodule in this post. Once I am done with this module with lots of other automated configuration stuff (like capturing all viewstate, session information, etc), I will update my blog accordingly. </p>  <p>Let's proceed by creating a class Library (I will call it <strong>myModules</strong>)</p>  <p>1. Add a reference to System.Web    <br />2. Copy the following in a new class file called <strong><font color="#ff0000">Trigger.cs</font></strong></p>  <div class="boxedoutput">   <pre class="code"><span style="color: rgb(0,0,255)">using</span> System;
<span style="color: rgb(0,0,255)">using</span> System.Collections.Generic;
<span style="color: rgb(0,0,255)">using</span> System.Text;
<span style="color: rgb(0,0,255)">using</span> System.Web;
<span style="color: rgb(0,0,255)">namespace</span> myModules
{
    <span style="color: rgb(0,0,255)">class</span> <span style="color: rgb(43,145,175)">Trigger</span>:<span style="color: rgb(43,145,175)">IHttpModule
</span>    {
        <span style="color: rgb(43,145,175)">DateTime</span> fTimerValue;
        <span style="color: rgb(0,0,255)">public</span> <span style="color: rgb(0,0,255)">void</span> Init(System.Web.<span style="color: rgb(43,145,175)">HttpApplication</span> context)
        {
            context.BeginRequest += <span style="color: rgb(0,0,255)">new</span> <span style="color: rgb(43,145,175)">EventHandler</span>(<span style="color: rgb(0,0,255)">this</span>.BeginRoutine);
            context.EndRequest += <span style="color: rgb(0,0,255)">new</span> <span style="color: rgb(43,145,175)">EventHandler</span>(<span style="color: rgb(0,0,255)">this</span>.EndRoutine);
        }
        <span style="color: rgb(0,0,255)">public</span> <span style="color: rgb(0,0,255)">void</span> BeginRoutine(<span style="color: rgb(0,0,255)">object</span> o, <span style="color: rgb(43,145,175)">EventArgs</span> e)
        {
            fTimerValue = <span style="color: rgb(43,145,175)">DateTime</span>.Now;
        }
        <span style="color: rgb(0,0,255)">public</span> <span style="color: rgb(0,0,255)">void</span> EndRoutine(<span style="color: rgb(0,0,255)">object</span> o, <span style="color: rgb(43,145,175)">EventArgs</span> e)
        {
            <span style="color: rgb(43,145,175)">HttpApplication</span> myApp;
            <span style="color: rgb(43,145,175)">TimeSpan</span> t = <span style="color: rgb(43,145,175)">TimeSpan</span>.MinValue;
            myApp = (<span style="color: rgb(43,145,175)">HttpApplication</span>)o;
            <span style="color: rgb(43,145,175)">HttpContext</span> c = myApp.Context;
            <span style="color: rgb(0,0,255)">if</span>(c.Response.StatusCode == 200)
            {
                t = <span style="color: rgb(43,145,175)">DateTime</span>.Now - fTimerValue;
                <span style="color: rgb(0,0,255)">if</span> (t.TotalSeconds &gt; 5)
                {
                    c.Response.Write(<span style="color: rgb(163,21,21)">&quot;Tweak this page!! It took... &quot;</span> + t.TotalSeconds + <span style="color: rgb(163,21,21)">&quot; seconds&quot;</span>);
                    c.Response.Write(<span style="color: rgb(163,21,21)">&quot;&lt;BR&gt;&quot;</span>);
                    c.Response.Write(<span style="color: rgb(163,21,21)">&quot;Name &gt; &quot;</span> + c.Request.PhysicalPath);
                    <span style="color: rgb(0,0,255)">return</span>;
                }
            }
            myApp.Context.Response.Write(<span style="color: rgb(163,21,21)">&quot;This response took &quot;</span> + t.ToString() + <span style="color: rgb(163,21,21)">&quot; seconds&quot;</span>);
        }
        <span style="color: rgb(0,0,255)">public</span> <span style="color: rgb(0,0,255)">void</span> Dispose()
        {
            <span style="color: rgb(0,128,0)">//Nothing to Dispose as of now
</span>        }
    }
}</pre>
</div>

<br />3. In your WebApplication... drop the <strong>myModules.dll </strong>from the class library that you just created. 

<br />4. Last step... modify the web.config by adding... 
<P/>
<div class="boxedoutput">
  <pre class="code"><span style="color: rgb(0,0,255)">        &lt;</span><span style="color: rgb(163,21,21)">httpModules</span><span style="color: rgb(0,0,255)">&gt;
            &lt;</span><span style="color: rgb(163,21,21)">add</span><span style="color: rgb(0,0,255)"> </span><span style="color: rgb(255,0,0)">name</span><span style="color: rgb(0,0,255)">=</span>&quot;<span style="color: rgb(0,0,255)">Trigger</span>&quot;<span style="color: rgb(0,0,255)"> </span><span style="color: rgb(255,0,0)">type</span><span style="color: rgb(0,0,255)">=</span>&quot;<span style="color: rgb(0,0,255)">myModules.Trigger, myModules</span>&quot;<span style="color: rgb(0,0,255)">/&gt;
        &lt;/</span><span style="color: rgb(163,21,21)">httpModules</span><span style="color: rgb(0,0,255)">&gt;</span></pre>
</div>
<P/>
5. I tried this with an Empty project. And introduced Sleep statement in the Page_Load... 
<P/>
<div class="boxedoutput">
  <pre class="code">    <span style="color: rgb(0,0,255)">protected</span> <span style="color: rgb(0,0,255)">void</span> Page_Load(<span style="color: rgb(0,0,255)">object</span> sender, <span style="color: rgb(43,145,175)">EventArgs</span> e)
    {
        System.Threading.<span style="color: rgb(43,145,175)">Thread</span>.Sleep(26000);
    }</pre>
</div>
6. Notice that, I haven't recompiled my web-application. Only thing that is required is... copy the DLLs in the bin folder and add httpModules section in the web.config. 

<p></p>

<p>The output is...</p>

<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/HowtohttpModulestotrouble.NETapplication_B5A0/image_2.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/HowtohttpModulestotrouble.NETapplication_B5A0/image_2.png"><img height="77" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/HowtohttpModulestotrouble.NETapplication_B5A0/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/HowtohttpModulestotrouble.NETapplication_B5A0/image_thumb.png" width="553" border="0" /></a>&#160; <br />As I said earlier... this is a very meager output, and not enough to fix the issue. But now that you know how to use Modules to troubleshoot your application, feel free to tweak around the code and fix the issue at hand.</p>

<p>Happy troubleshooting! <img alt="Smile" src="https://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/regular_smile.gif" /> 

  <br />Rahul</p>

<br /><b><i>Quote of the day: </i></b>

<br />An idealist is one who, on noticing that a rose smells better than a cabbage, concludes that it will also make better soup. - H. L. Mencken]]></content:encoded>
    </item>
    <item>
      <title>Visual Studio 2008 - More control over Recent Projects list in Start Page</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/visual-studio-2008-more-control-over-recent-projects-list-in-start-page</link>
      <pubDate>Tue, 17 Jun 2008 05:57:00 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/06/17/visual-studio-2008-more-control-over-recent-projects-list-in-start-page/</guid>
      <description><![CDATA[If you work with a lot of samples, the chances are quite likely that you will end up in a rather...]]></description>
      <content:encoded><![CDATA[<P>If you work with a lot of samples, the chances are quite likely that you will end up in a rather dirty list of <STRONG>Recent Projects</STRONG>&nbsp;<STRONG>List</STRONG> in Visual Studio. I'm personally quite nit-picky and I really hate it when I find something like this...</P>
<P><IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=257 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_6.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_6.png" width=229 border=0 mce_src="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_6.png"> </P>
<P>Now... I don't know which of these <STRONG>Samples</STRONG> should I click on (since I have two in the list!). Anyway, there are multiple reasons why you would like to remove the junk entries from this list. One way is to open the Registry and navigate to <STRONG>HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ProjectMRUList. </STRONG>This list contains all the values you are looking for. Delete the values which you don't like and restart Visual Studio.</P>
<P>Another way, which I think is a smarter one is to <A href="https://www.dotnetscraps.com/downloads/clearrecentitems.zip" mce_href="https://www.dotnetscraps.com/downloads/clearrecentitems.zip">download this ZIP</A> and do the following...</P>
<P>1. Extract it anywhere in your machine. <BR>2. Open Visual Studio, click on <STRONG>Tools -&gt; External Tools... <BR></STRONG>3. Click on Add button and in the Title field, write "Clear Recently Used List" <BR>4. In the Command Line, browse to the &lt;SAVED__PATH&gt;\<STRONG>ClearRecentItems.exe</STRONG> and click on OK. <BR><BR><IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=395 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_5.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_5.png" width=392 border=0 mce_src="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_5.png"> <BR>4. Now, you should have this tool listed on your Tools Menu in VS 2008.</P>
<P><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_8.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_8.png" mce_href="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_8.png"><IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=183 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_thumb_2.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_thumb_2.png" width=271 border=0 mce_src="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_thumb_2.png"></A> </P>
<P>5. Here is the sample output...</P>
<P><IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=212 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_11.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_11.png" width=640 border=0 mce_src="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_11.png"> </P>
<P>Feel free to download the code for this small utility...</P>
<P><A href="https://www.dotnetscraps.com/samples/clearrecentitems/clearrecentitems.zip" mce_href="https://www.dotnetscraps.com/samples/clearrecentitems/clearrecentitems.zip"><IMG alt=Download src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/02/29/64/70/Download.jpg" original-url="https://blogs.msdn.com/photos/rahulso/images/2296470/original.aspx" border=0 mce_src="https://blogs.msdn.com/photos/rahulso/images/2296470/original.aspx"></A>&nbsp;</P>
<P>Hope this helps, <IMG alt=Wave src="https://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" mce_src="https://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif"> <BR>Rahul</P>]]></content:encoded>
    </item>
    <item>
      <title>Why do I like overflow:scroll so much?</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/why-do-i-like-overflowscroll-so-much</link>
      <pubDate>Wed, 11 Jun 2008 10:31:54 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/06/11/why-do-i-like-overflowscroll-so-much/</guid>
      <description><![CDATA[There are times when you want to incorporate a picture, a large piece of code in a limited web...]]></description>
      <content:encoded><![CDATA[<p>There are times when you want to incorporate a picture, a large piece of code in a limited web space... ex. a blog post which has a lot of &lt;DIV&gt; tags. Now, to crop or resize the picture may not be the option always. I still see a lot posts where the images are either cropped or line breaks are introduced into the code.</p>  <p>The problem with the line break is that it increases the overhead and time spent on the blogger's part in formatting the post. Apart from that, it also creates chances of typos which would make that code snippet not compile when an end user tries it.</p>  <p>Let's say I have a piece of code which I want to blog about (in <a href="https://windowslivewriter.spaces.live.com/blog/cns!D85741BB5E0BE8AA!174.entry">Windows Live Writer</a>)...</p>  <p>I use <a href="https://gallery.live.com/liveItemDetail.aspx?li=d8835a5e-28da-4242-82eb-e1a006b083b9&amp;bt=9&amp;pl=8">Paste from Visual Studio</a> plugin and really love it. When I paste my code from Visual Studio using the Plugin, here is what I get...</p>  <pre class="code"><span style="background: rgb(255,238,98)">&lt;%<span style="color: rgb(0,0,255)"></span>@</span> <span style="color: rgb(163,21,21)">Page</span> <span style="color: rgb(255,0,0)">Language</span><span style="color: rgb(0,0,255)">=&quot;C#&quot;</span> <span style="background: rgb(255,238,98)">%&gt;
&lt;%<span style="color: rgb(0,0,255)"></span>@</span> <span style="color: rgb(163,21,21)">Import</span> <span style="color: rgb(255,0,0)">Namespace</span><span style="color: rgb(0,0,255)">=&quot;System.Reflection&quot;</span> <span style="background: rgb(255,238,98)">%&gt;
&lt;%<span style="color: rgb(0,0,255)"></span>@</span> <span style="color: rgb(163,21,21)">Import</span> <span style="color: rgb(255,0,0)">Namespace</span><span style="color: rgb(0,0,255)">=&quot;System.Drawing&quot;</span> <span style="background: rgb(255,238,98)">%&gt;
<span style="color: rgb(0,0,255)"></span>&lt;!</span><span style="color: rgb(163,21,21)">DOCTYPE</span> <span style="color: rgb(255,0,0)">html</span> 'I am making this line even longer' <span style="color: rgb(255,0,0)">PUBLIC</span> <span style="color: rgb(0,0,255)">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color: rgb(0,0,255)">&quot;https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
</span><span style="background: rgb(255,238,98)">&lt;%<span style="color: rgb(0,0,255)"></span>@</span> <span style="color: rgb(163,21,21)">OutputCache</span> <span style="color: rgb(255,0,0)">Duration</span><span style="color: rgb(0,0,255)">=&quot;72000&quot;</span> <span style="color: rgb(255,0,0)">VaryByParam</span><span style="color: rgb(0,0,255)">=&quot;none&quot;</span>  <span style="color: rgb(255,0,0)">Location</span><span style="color: rgb(0,0,255)">=&quot;Any&quot;</span> <span style="background: rgb(255,238,98)">%&gt;
</span></pre>

<p>See how the 4th line overflows! Not good, right? So, what next???</p>

<p>Noooo... please don't split that line.....</p>

<p>Select <strong>View -&gt; HTML Code </strong>and add the DIV tag as follows around the code. </p>

<p>&lt;div style=&quot;overflow: scroll&quot;&gt; </p>

<pre class="code">Your Code Or Image.</pre>
<a href="https://11011.net/software/vspaste"></a>

<p>&lt;/div&gt;</p>

<p>Here is the output...</p>

<div style="overflow: scroll">
  <pre class="code"><span style="background: rgb(255,238,98)">&lt;%<span style="color: rgb(0,0,255)"></span>@</span> <span style="color: rgb(163,21,21)">Page</span> <span style="color: rgb(255,0,0)">Language</span><span style="color: rgb(0,0,255)">=&quot;C#&quot;</span> <span style="background: rgb(255,238,98)">%&gt;
&lt;%<span style="color: rgb(0,0,255)"></span>@</span> <span style="color: rgb(163,21,21)">Import</span> <span style="color: rgb(255,0,0)">Namespace</span><span style="color: rgb(0,0,255)">=&quot;System.Reflection&quot;</span> <span style="background: rgb(255,238,98)">%&gt;
&lt;%<span style="color: rgb(0,0,255)"></span>@</span> <span style="color: rgb(163,21,21)">Import</span> <span style="color: rgb(255,0,0)">Namespace</span><span style="color: rgb(0,0,255)">=&quot;System.Drawing&quot;</span> <span style="background: rgb(255,238,98)">%&gt;
<span style="color: rgb(0,0,255)"></span>&lt;!</span><span style="color: rgb(163,21,21)">DOCTYPE</span> <span style="color: rgb(255,0,0)">html</span> 'I am making this line even longer' <span style="color: rgb(255,0,0)">PUBLIC</span> <span style="color: rgb(0,0,255)">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color: rgb(0,0,255)">&quot;https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
</span><span style="background: rgb(255,238,98)">&lt;%<span style="color: rgb(0,0,255)"></span>@</span> <span style="color: rgb(163,21,21)">OutputCache</span> <span style="color: rgb(255,0,0)">Duration</span><span style="color: rgb(0,0,255)">=&quot;72000&quot;</span> <span style="color: rgb(255,0,0)">VaryByParam</span><span style="color: rgb(0,0,255)">=&quot;none&quot;</span>  <span style="color: rgb(255,0,0)">Location</span><span style="color: rgb(0,0,255)">=&quot;Any&quot;</span> <span style="background: rgb(255,238,98)">%&gt;
</span></pre>
</div>

<p>Hope this helps, <img alt="Wave" src="https://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" /> 

  <br />Rahul</p>

<p>UPDATE&gt; Going forward I will be posting on <a href="https://www.dotnetscraps.com">www.dotnetscraps.com</a>. It will give me much more flexibility in hosting the code and do some of the other things that I have in my mind for quite some time now.</p>]]></content:encoded>
    </item>
    <item>
      <title>AJAXControl Toolkit issue in VS 2008</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/ajaxcontrol-toolkit-issue-in-vs-2008</link>
      <pubDate>Mon, 26 May 2008 03:14:51 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/05/26/ajaxcontrol-toolkit-issue-in-vs-2008/</guid>
      <description><![CDATA[When I tried opening the AjaxControlToolkit.sln by double clicking on it, it was throwing the...]]></description>
      <content:encoded><![CDATA[<p>When I tried opening the <a href="https://www.codeplex.com/AtlasControlToolkit">AjaxControlToolkit.sln</a> by double clicking on it, it was throwing the following error at me...</p>  <p>---------------------------   <br />Microsoft Visual Studio    <br />---------------------------    <br />The application for project 'H:\Downloads\AjaxControlToolkit\SampleWebSite' is not installed. </p>  <p>Make sure the application for the project type () is installed.   <br />---------------------------    <br />OK&#160;&#160; Help&#160;&#160; <br />---------------------------</p>  <p>To get rid of it, open the SLN file directly from File -&gt; Open -&gt; Project/Solution. Create a backup if you like (when prompted!).</p>  <p><strong>You may also get the following error while trying to compile the Solution...</strong></p>  <p>Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.</p>  <p>This is because, you probably didn't install the AJAXControl Toolkit. Get it from <a href="https://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=11121">here</a>.</p>  <p><strong>Another error that you could encounter is...</strong></p>  <p>error : Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.   <br />Done building project &quot;TemplateVSI.csproj&quot; -- FAILED.</p>  <p>Install JS Redist from <a href="https://msdn.microsoft.com/en-us/vjsharp/bb188598.aspx">here</a> and you should be good.</p>  <p>Cheers, <img alt="Wave" src="https://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" />    <br />Rahul</p>]]></content:encoded>
    </item>
    <item>
      <title>UPDATE&gt; Windows Live Writer plug-ins</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/update-windows-live-writer-plug-ins</link>
      <pubDate>Mon, 12 May 2008 18:50:03 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/05/12/update-windows-live-writer-plug-ins/</guid>
      <description><![CDATA[I have found that a couple of my plug-ins, namely Social Bookmarking and Smiley Plugin&#160; don’t...]]></description>
      <content:encoded><![CDATA[<p>I have found that a couple of my plug-ins, namely <a href="https://blogs.msdn.com/rahulso/pages/social-bookmarking-tool-download.aspx">Social Bookmarking</a> and <a href="https://blogs.msdn.com/rahulso/archive/2008/02/17/smiley-plugin-2-0-for-windows-live-writer-wlw.aspx">Smiley Plugin</a>&#160; don’t work as expected in Windows Live Writer’s latest version. If you are encountering any issues and running Vista machine, please try running WLW as an Administrator.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/UPDATEWindowsLiveWriterplugins_FAC5/image_4.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/UPDATEWindowsLiveWriterplugins_FAC5/image_4.png"><img title="image" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="527" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/UPDATEWindowsLiveWriterplugins_FAC5/image_thumb_1.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/UPDATEWindowsLiveWriterplugins_FAC5/image_thumb_1.png" width="370" border="0" /></a> </p>  <p>Apparently a few things changed with WLW and I am still investigating if there is a way to make this work in a Non-Admin mode. I will keep you posted if I discover the root cause.</p>  <p>Thanks, <img alt="Wave" src="https://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" />    <br />Rahul</p>]]></content:encoded>
    </item>
    <item>
      <title>We now have a team blog...</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/we-now-have-a-team-blog</link>
      <pubDate>Mon, 21 Apr 2008 22:46:09 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/04/21/we-now-have-a-team-blog/</guid>
      <description><![CDATA[...and I am pretty excited about it! In our team, we deal with a lot of issues with IIS and ASP.NET...]]></description>
      <content:encoded><![CDATA[<p>...and I am pretty excited about it! In our team, we deal with a lot of issues with IIS and ASP.NET and have a plenty of folks in our team who blog individually, and do it pretty well.</p>  <p>We will continue to have our own blogs, but going forward you will see a lot of good information about troubleshooting IIS 7 and ASP.NET from a bunch of really talented folks. Feel free to subscribe to our <a title="Webtopics" href="https://blogs.msdn.com/webtopics/rss.xml">new team blog</a>&#160; and let me know if you would like to see some more topics that you require help on. It could be anything from simple to complex, related to IIS 7 or ASP.NET. Our focus is not only knowledge sharing, but also sharing some of the troubleshooting skills that we acquire because of handling multiple complex issues as a part of our job.</p>  <p>Definitely, I won't have all the answers, but I am priviledged to be working with quite a lot of smart folks who do <img alt="Smile" src="https://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/regular_smile.gif" />!!</p>  <p>As an insider let me tell you that we are coming up with a lot of posts which will help you create different modules with IIS 7. Give us a lot of hits on the new blog &lt;/shameless promotion of our team ends!&gt;) <img alt="Wink" src="https://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/wink_smile.gif" /></p>  <p>Cheers,   <br />Rahul</p>  <br /><b><i>Quote of the day: </i></b>  <br />A person who trusts no one can't be trusted. - Jerome Blattner]]></content:encoded>
    </item>
    <item>
      <title>Logparser Scenario 8:Checking the traffic/requests between a specific client and server</title>
      <link>https://docs.microsoft.com/archive/blogs/rahulso/logparser-scenario-8checking-the-trafficrequests-between-a-specific-client-and-server</link>
      <pubDate>Tue, 15 Apr 2008 18:08:32 GMT</pubDate>
      <dc:creator><![CDATA[imRahulSoni]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rahulso/2008/04/15/logparser-scenario-8checking-the-trafficrequests-between-a-specific-client-and-server/</guid>
      <description><![CDATA[This blog entry is a continuation of the KB Article https://support.microsoft.com/?id=910447....]]></description>
      <content:encoded><![CDATA[<p>This blog entry is a continuation of the KB Article <a href="https://support.microsoft.com/?id=910447.">https://support.microsoft.com/?id=910447.</a></p>  <p><strong>Scenario 8: Checking the traffic/requests between a specific client and server</strong></p>  <p>Why would you do it in the first place?    <br />You may want to troubleshoot an authenticate issue for that specific client for the error that s/he reported to you. May be that's why!</p>  <p><strong>Answer:</strong></p>  <p>Logparser &quot;select date, time, c-ip, cs-username, s-sitename, s-computername, s-ip, s-port, cs-method, cs-uri-stem, cs-uri-query, sc-status, sc-substatus,sc-win32-status, sc-bytes, cs-bytes, time-taken,cs-version, cs-host, cs(User-Agent), cs(Cookie), cs(Referer), s-event, s-process-type, s-user-time, s-kernel-time, s-page-faults, s-total-procs, s-active-procs, s-stopped-procs from <strong><font color="#ff0000">&lt;FILENAME&gt;</font></strong> where c-ip='<strong><font color="#ff0000">Client-IP</font></strong>'&quot; -i:IISW3C -rtp:-1</p>  <p>And the output will be something like...</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/LogparserScenario8Checkingthetrafficrequ_F106/image_4.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario8Checkingthetrafficrequ_F106/image_4.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="74" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/rahulso/WindowsLiveWriter/LogparserScenario8Checkingthetrafficrequ_F106/image_thumb_1.png" original-url="https://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario8Checkingthetrafficrequ_F106/image_thumb_1.png" width="640" border="0" /></a> </p>  <p>Hope that helps,    <br />Rahul</p>  <br /><b><i>Quote of the day: </i></b>  <br />It may be true that the law cannot make a man love me, but it can stop him from lynching me, and I think that's pretty important. - Martin Luther King Jr.]]></content:encoded>
    </item>
  </channel>
</rss>