<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>unhandled exception</title>
        <link>http://geekswithblogs.net/mahesh/category/7454.aspx</link>
        <description>unhandled exception</description>
        <language>en-US</language>
        <copyright>Mahesh Singh</copyright>
        <managingEditor>maheshsingh21@yahoo.co.in</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>IE 7 Vs Firefox Vs Safari</title>
            <link>http://geekswithblogs.net/mahesh/archive/2008/05/23/ie-7-vs-firefox-vs-safari.aspx</link>
            <description>&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;I did quick test to check which browser eats more memory. My test is not so robust. I only open 4 similar pages into all the browser and check the memory uses into Window task manager. What I found Safari eats more memory then IE 7 and least memory consume by Firefox. I am not saying this test is a sufficient test for browsers. Here is snapshot. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;img width="487" height="448" src="/images/geekswithblogs_net/mahesh/dgd.GIF" alt="" /&gt;

&lt;span style="border: 2px solid white;"&gt;     &lt;br /&gt;
&lt;div style="border: 4px solid gray; width: 100%; background-color: Silver; color: Gray; font-size: 15px; font-weight: bold; text-align: center;"&gt;&lt;br /&gt;
&lt;a href="http://www.thinkinterview.com/Interview-Questions/Default.aspx" style="font-weight: bold; font-size: 12px; color: blue;" target="_blank"&gt;Interview Questions &lt;/a&gt; |          &lt;a href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx" style="font-weight: bold; font-size: 12px; color: blue;" target="_blank"&gt;ASP.NET Interview Questions &lt;/a&gt; |          &lt;a href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx" style="font-weight: bold; font-size: 12px; color: blue;" target="_blank"&gt;.NET Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx" style="font-weight: bold; font-size: 12px; color: blue;" target="_blank"&gt;ASP.NET 2.0 Interview Questions &lt;/a&gt; |          &lt;a href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx" style="font-weight: bold; font-size: 12px; color: blue;" target="_blank"&gt;.NET 2.0 Interview Questions &lt;/a&gt; |          &lt;a href="http://www.thinkinterview.com/Interview-Questions/s23_SQL-Server-2005-Interview-Questions.aspx" style="font-weight: bold; font-size: 12px; color: blue;" target="_blank"&gt;SQL Server 2005 Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122339"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122339" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/mahesh/aggbug/122339.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mahesh Singh</dc:creator>
            <guid>http://geekswithblogs.net/mahesh/archive/2008/05/23/ie-7-vs-firefox-vs-safari.aspx</guid>
            <pubDate>Fri, 23 May 2008 12:21:54 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mahesh/comments/122339.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mahesh/archive/2008/05/23/ie-7-vs-firefox-vs-safari.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mahesh/comments/commentRss/122339.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mahesh/services/trackbacks/122339.aspx</trackback:ping>
        </item>
        <item>
            <title>ASP.NET TextBox MultiLine maxlength</title>
            <link>http://geekswithblogs.net/mahesh/archive/2007/12/27/asp.net-textbox.multiline-maxlength.aspx</link>
            <description>&lt;h1&gt;ASP.NET textbox multiline maxlength &lt;/h1&gt;
&lt;h2&gt;multiline textbox with maxlength in asp.net&lt;/h2&gt;
According to msdn in ASP.NET you can not use textbox’s MaxLength property with Multiline Mode. But I was required in my current application. So I search google and other search engines and finally got few solution. I am simply compiling all of the solutions in single post. &lt;br /&gt;
&lt;strong&gt;Solution Number 1 for &lt;/strong&gt;
&lt;h3&gt;ASP.NET TextBox.MultiLine maxlength&lt;/h3&gt;
Add following javascript &lt;br /&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;function&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; Count(text,&lt;span style="COLOR: blue"&gt;long&lt;/span&gt;) &lt;!--l namespace="" ns="urn:schemas-microsoft-com:office:office" prefix="o"--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-tab-count: 1"&gt;      &lt;/span&gt;&lt;span style="COLOR: blue"&gt;var&lt;/span&gt; maxlength = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; Number(&lt;span style="COLOR: blue"&gt;long&lt;/span&gt;); &lt;span style="COLOR: green"&gt;// Change number to your max length.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;if&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;(document.getElementById(&lt;span style="COLOR: maroon"&gt;'&amp;lt;%=textBox.ClientID%&amp;gt;'&lt;/span&gt;).value.length &amp;gt; maxlength){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-tab-count: 2"&gt;            &lt;/span&gt;text.value = text.value.substring(0,maxlength);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-tab-count: 2"&gt;            &lt;/span&gt;alert(&lt;span style="COLOR: maroon"&gt;" Only "&lt;/span&gt; + &lt;span style="COLOR: blue"&gt;long&lt;/span&gt; + &lt;span style="COLOR: maroon"&gt;" chars"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt; &lt;/span&gt;&lt;/p&gt;
&lt;br /&gt;
Where “textBox” is the asp text box ID.&lt;br /&gt;
Also add following events in your textbox. &lt;br /&gt;
&lt;br /&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;onKeyUp&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;="javascript:Count(this,200);"&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;span style="COLOR: red"&gt;onChange&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="javascript:Count(this,200);"&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="COLOR: blue"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
Your textbox code should look like &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;asp&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;:&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;TextBox&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;span style="COLOR: red"&gt;ID&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="textBox"&lt;/span&gt; &lt;span style="COLOR: red"&gt;onKeyUp&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="javascript:Count(this,2);"&lt;/span&gt; &lt;span style="COLOR: red"&gt;onChange&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="javascript:Count(this,2);"&lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;&lt;span style="COLOR: red"&gt;TextMode&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=MultiLine&lt;/span&gt; &lt;span style="COLOR: red"&gt;Columns&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="5"&lt;/span&gt; &lt;span style="COLOR: red"&gt;Rows&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="5"&lt;/span&gt; &lt;span style="COLOR: red"&gt;runat&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=server&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: maroon"&gt;asp&lt;/span&gt;&lt;span style="COLOR: blue"&gt;:&lt;/span&gt;&lt;span style="COLOR: maroon"&gt;TextBox&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;br /&gt;
&lt;strong&gt;Solution Number 2 for &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;h3&gt;ASP.NET TextBox.MultiLine maxlength&lt;/h3&gt;
Another way to achieve this is regular expression. You can add following regular expression validate on asp text box. &lt;br /&gt;
&lt;br /&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;asp&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;:&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;RegularExpressionValidator&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;span style="COLOR: red"&gt;ID&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="txtConclusionValidator1"&lt;/span&gt; &lt;span style="COLOR: red"&gt;ControlToValidate&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="textBox"&lt;/span&gt; &lt;span style="COLOR: red"&gt;Text&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="Exceeding 200 characters"&lt;/span&gt; &lt;span style="COLOR: red"&gt;ValidationExpression&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="^[\s\S]{0,2}$"&lt;/span&gt; &lt;span style="COLOR: red"&gt;runat&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="server"&lt;/span&gt; &lt;span style="COLOR: blue"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope this helps you!!!
&lt;div style="BORDER-RIGHT: yellow 2px solid; BORDER-TOP: yellow 2px solid; BORDER-LEFT: yellow 2px solid; BORDER-BOTTOM: yellow 2px solid"&gt;
&lt;div style="BORDER-RIGHT: gray 4px solid; BORDER-TOP: gray 4px solid; BORDER-LEFT: gray 4px solid; WIDTH: 100%; BORDER-BOTTOM: gray 4px solid; BACKGROUND-COLOR: silver; TEXT-ALIGN: center"&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/Default.aspx"&gt;Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/s23_SQL-Server-2005-Interview-Questions.aspx"&gt;SQL Server 2005 Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=118028"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=118028" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/mahesh/aggbug/118028.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mahesh Singh</dc:creator>
            <guid>http://geekswithblogs.net/mahesh/archive/2007/12/27/asp.net-textbox.multiline-maxlength.aspx</guid>
            <pubDate>Fri, 28 Dec 2007 11:41:16 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mahesh/comments/118028.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mahesh/archive/2007/12/27/asp.net-textbox.multiline-maxlength.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/mahesh/comments/commentRss/118028.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mahesh/services/trackbacks/118028.aspx</trackback:ping>
        </item>
        <item>
            <title>Mutex Could not be Created.</title>
            <link>http://geekswithblogs.net/mahesh/archive/2007/12/27/mutex-could-not-be-created.aspx</link>
            <description>&lt;h1&gt;Mutex Could not be Created.&lt;/h1&gt;
Some time while running ASP.NET web application through Visual Studio you might receive following error
&lt;h2&gt;Server Error in Application. Mutex could not be created.&lt;/h2&gt;
Few workaround for &lt;strong&gt;“Mutex Could not be Created.”&lt;/strong&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="WIDTH: 100%; BACKGROUND-COLOR: yellow; TEXT-ALIGN: center"&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/Default.aspx"&gt;Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/s23_SQL-Server-2005-Interview-Questions.aspx"&gt;SQL Server 2005 Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;h2&gt;“Mutex Could not be Created.”&lt;/h2&gt;
Solution number 1 &lt;br /&gt;
1. If your visual studio 2005 is open, closed it.&lt;br /&gt;
2. Go to the ASP.NET temporary folder for v2.0 of the framework&lt;br /&gt;
&lt;windows&gt;&lt;/windows&gt;\Microsoft.Net\Framework\v2.0&lt;extra numbers=""&gt;&lt;/extra&gt;\Temporary ASpNET pages 3. Remove the folder for your application&lt;br /&gt;
4. Reset IIS (iisreset)&lt;br /&gt;
5. First Browse your page from Browser&lt;br /&gt;
6. Re-open Visual studio&lt;br /&gt;
&amp;lt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="WIDTH: 100%; BACKGROUND-COLOR: yellow; TEXT-ALIGN: center"&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/Default.aspx"&gt;Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/s23_SQL-Server-2005-Interview-Questions.aspx"&gt;SQL Server 2005 Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;h2&gt;“Mutex Could not be Created.”&lt;/h2&gt;
Solution number 2 &lt;br /&gt;
1. locate the current machine config file (e.g at C:\WINNT\Microsoft.NET\Framework\v2.0.50727\CONFIG\)&lt;br /&gt;
2. update the Machine.Config under the &lt;system.web&gt;&lt;/system.web&gt;tag like that -
&lt;processmodel password="aspnet" username="my_server\aspnet" autoconfig="true"&gt;&lt;/processmodel&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="WIDTH: 100%; BACKGROUND-COLOR: yellow; TEXT-ALIGN: center"&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/Default.aspx"&gt;Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/s23_SQL-Server-2005-Interview-Questions.aspx"&gt;SQL Server 2005 Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;h2&gt;“Mutex Could not be Created.” &lt;/h2&gt;
Solution number 3 &lt;br /&gt;
Cause: This occurs because the permissions on the following registry key no longer have your custom account:&lt;br /&gt;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0\CompilationMutexName&lt;br /&gt;
The compilation mutex gets it's permissions from this registry key and with your custom account missing, the process running ASP.NET cannot get a handle to the mutex and fails during compilation.&lt;br /&gt;
Resolution:&lt;br /&gt;
=========&lt;br /&gt;
1. Run the following to add your custom account to the registry key permissions:&lt;br /&gt;
ASPNET_regiis -ga domain\account. &lt;br /&gt;
2. Either restart the server or close the handles to the mutex (see below)&lt;br /&gt;
To close the handles to the Mutex:&lt;br /&gt;
3. Download and launch Process Explorer from www.sysinternals.com &lt;br /&gt;
4. From the Find menu, select Find Handle or DLL &lt;br /&gt;
5. In the Handle or DLL substring box, type “mutant” (without quotes) and click Search &lt;br /&gt;
6. Click the Handle or DLL column heading to sort the items and find a mutex that starts with CL. The handle will typically be devenv.exe (the IDE for Visual Studio) and aspnet_wp.exe or w3wp.exe. The handle will look similar to: &lt;br /&gt;
7. \BaseNameObjects\CLbdd6aa8f &lt;br /&gt;
8. Select the handle in the search box and Process Explorer locates the Process and the handle in the main window &lt;br /&gt;
9. Right-click the handle in the main window and select Close Handle&lt;br /&gt;
Additional Info:&lt;br /&gt;
============&lt;br /&gt;
The error may occur anytime you run ASP.NET as a custom account and the above mentioned registry key does not have the account listed in the permissions.&lt;br /&gt;
If you receive the error and you are running with a custom account on IIS 6 in worker process mode (code running in w3wp.exe), you can add your custom account to the IIS_WPG group on the server. The IIS_WPG group is granted access to the registry key by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="WIDTH: 100%; BACKGROUND-COLOR: yellow; TEXT-ALIGN: center"&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/Default.aspx"&gt;Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/s23_SQL-Server-2005-Interview-Questions.aspx"&gt;SQL Server 2005 Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;h2&gt;“Mutex Could not be Created.”&lt;/h2&gt;
Solution Number 4 &lt;br /&gt;
You may also need to fix the perimssions manually, as follows:&lt;br /&gt;
1. Run Registry Editor 32: Windows -&amp;gt; Run -&amp;gt; "REGEDT32"&lt;br /&gt;
2. Locate the sub-window "HKEY_LOCAL_MACHINE on Local Machine"&lt;br /&gt;
3. Navigate to the key:&lt;br /&gt;
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0\"&lt;br /&gt;
(and select it).&lt;br /&gt;
4. Click the menu "Security" then "Permissions".&lt;br /&gt;
5. Ensure the custom account you are using to run aspnet (e.g. "mydomain\aspnet") is in this permissions list.&lt;br /&gt;
If it is not then Add it and ensure "Full Control" is ticked, then click OK.&lt;br /&gt;
6. This should immediately resolve the Mutex locking issue (just refresh your page, or rebuild in Visual Studio).&lt;br /&gt;
7. If not then do an IISRESET first then retry step 6.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="WIDTH: 100%; BACKGROUND-COLOR: yellow; TEXT-ALIGN: center"&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/Default.aspx"&gt;Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/s23_SQL-Server-2005-Interview-Questions.aspx"&gt;SQL Server 2005 Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;h2&gt;“Mutex Could not be Created.”&lt;/h2&gt;
Solution number 5 &lt;br /&gt;
Go to the Visual Studio Command Prompt and reach at&lt;br /&gt;
c:\Windows\Microsoft.net\Framework\v2.0.50727&amp;gt; &lt;br /&gt;
and type the command&lt;br /&gt;
c:\Windows\Microsoft.net\Framework\v2.0.50727&amp;gt; aspnet_regiis -ga Domain\User&lt;br /&gt;
After that, go to the windows\microsoft.net\framework\v2.0.50727 and there you'll get a temporary file. Just delete it without any hasitation. Rfresh and restart the IIS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="WIDTH: 100%; BACKGROUND-COLOR: yellow; TEXT-ALIGN: center"&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/Default.aspx"&gt;Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/s23_SQL-Server-2005-Interview-Questions.aspx"&gt;SQL Server 2005 Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h2&gt;“Mutex Could not be Created.”&lt;/h2&gt;
Solution number 6 On Vista Business 1. Delete my app from the aspnet folder&lt;br /&gt;
2. Opened Regedit. Went to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.050727.0. Right clicked and added aspnet as user providing it full-control permissions.&lt;br /&gt;
Hope this help!!!.... &lt;br /&gt;
&lt;br /&gt;
&lt;div style="WIDTH: 100%; BACKGROUND-COLOR: yellow; TEXT-ALIGN: center"&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/Default.aspx"&gt;Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c2_ASP.NET-Interview-Questions.aspx"&gt;ASP.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/c1_.NET-Interview-Questions.aspx"&gt;.NET 2.0 Interview Questions &lt;/a&gt;| &lt;a style="FONT-WEIGHT: bold; FONT-SIZE: 15px; COLOR: blue" href="http://www.thinkinterview.com/Interview-Questions/s23_SQL-Server-2005-Interview-Questions.aspx"&gt;SQL Server 2005 Interview Questions &lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=118013"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=118013" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/mahesh/aggbug/118013.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mahesh Singh</dc:creator>
            <guid>http://geekswithblogs.net/mahesh/archive/2007/12/27/mutex-could-not-be-created.aspx</guid>
            <pubDate>Thu, 27 Dec 2007 18:28:40 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mahesh/comments/118013.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mahesh/archive/2007/12/27/mutex-could-not-be-created.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/mahesh/comments/commentRss/118013.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mahesh/services/trackbacks/118013.aspx</trackback:ping>
        </item>
    </channel>
</rss>