<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.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>Abhi's den...</title><link>http://weblogs.asp.net/cabhilash/default.aspx</link><description>The piece of code which nobody cracked...</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Viewstate error : 12031</title><link>http://weblogs.asp.net/cabhilash/archive/2009/10/13/viewstate-error-12031.aspx</link><pubDate>Tue, 13 Oct 2009 06:41:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7228484</guid><dc:creator>cabhilash</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/rsscomments.aspx?PostID=7228484</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/commentapi.aspx?PostID=7228484</wfw:comment><comments>http://weblogs.asp.net/cabhilash/archive/2009/10/13/viewstate-error-12031.aspx#comments</comments><description>&lt;p&gt;Few days ago I was asked to look into an issue. In our application we have created dynamic grids to show data from database. This ASPX page was Ajax enabled. Moreover all the rows of the grid were in edit mode ie. the normal controls like textbox,dropdowns etc&amp;nbsp; were displayed in all the rows. This grid was Paginated. But for the past few days the paging was not working.&lt;br&gt;&lt;/p&gt;&lt;p&gt;I executed the page and found that the page was generating an error 12031&amp;nbsp; with the following message&lt;br&gt;&lt;br&gt;&lt;i&gt;Sys.webForms.PageRequestManagerServerErrorException:An unknown error occurred while processing the request on the server .the status code returned from the server was:12031.&lt;/i&gt;&lt;br&gt;&lt;br&gt;On my first round of analysis I found the issue with Viewstate. If the viewstate is large then connection is reset (ERROR_INTERNET_CONNECTION_RESET ). In local machine with less load this problem will not occur but as the load &amp;amp; network latency increases this error will come. Once this error is generated the general events of grid is not triggered. So advised my team to minimize the use of viewstate. It will help in to load the page faster &amp;amp; reduce the network traffic. I can increase the maxRequestlength value to allow more data but ideally i shouldn't increase that. &lt;br&gt;&lt;br&gt;In the page tested by me a page with grid&amp;nbsp; with 372 rows generated a viewstate of 4.2 mb. you can disable viewstate using EnableViewState="false" for the individual controls and for the entire page also.&lt;br&gt;&lt;br&gt;With every post back this much of data is transferred back &amp;amp; fro &amp;amp; this will result in low response time.&lt;/p&gt;&lt;p&gt;The developer was saving all the data into viewstate in page load and from that the data was populated to the grid.&lt;/p&gt;&lt;p&gt;Better solution is to retrieve only the required data from database, minimize the use of&amp;nbsp; viewstate, Viewstate can be compressed also. About all these I will update in another post.&lt;br&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7228484" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/cabhilash/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/cabhilash/archive/tags/AJAX/default.aspx">AJAX</category></item><item><title>Add Web service reference- Components required to enumerate web references not installed</title><link>http://weblogs.asp.net/cabhilash/archive/2009/10/13/add-web-service-reference-components-required-to-enumerate-web-references-not-installed.aspx</link><pubDate>Tue, 13 Oct 2009 06:23:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7228461</guid><dc:creator>cabhilash</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/rsscomments.aspx?PostID=7228461</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/commentapi.aspx?PostID=7228461</wfw:comment><comments>http://weblogs.asp.net/cabhilash/archive/2009/10/13/add-web-service-reference-components-required-to-enumerate-web-references-not-installed.aspx#comments</comments><description>After playing with Web services for so many years this was a tricky error which kept me thinking for few minutes. Today when i tried to add WCF reference to my application it gave the following error, Error --------------------------- Microsoft Visual...(&lt;a href="http://weblogs.asp.net/cabhilash/archive/2009/10/13/add-web-service-reference-components-required-to-enumerate-web-references-not-installed.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7228461" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/cabhilash/archive/tags/WCF/default.aspx">WCF</category><category domain="http://weblogs.asp.net/cabhilash/archive/tags/Web+Services/default.aspx">Web Services</category><category domain="http://weblogs.asp.net/cabhilash/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>WCF 8192 issue</title><link>http://weblogs.asp.net/cabhilash/archive/2009/08/06/wcf-8192-issue.aspx</link><pubDate>Thu, 06 Aug 2009 16:08:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7162712</guid><dc:creator>cabhilash</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/rsscomments.aspx?PostID=7162712</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/commentapi.aspx?PostID=7162712</wfw:comment><comments>http://weblogs.asp.net/cabhilash/archive/2009/08/06/wcf-8192-issue.aspx#comments</comments><description>This was a simple issue which baffled few brains in my project. For the past few weeks i was seeing the mails about this. What was the exact problem? Whenever a large xml stream is passed through WCF it generated the following error. Everything was fins...(&lt;a href="http://weblogs.asp.net/cabhilash/archive/2009/08/06/wcf-8192-issue.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7162712" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/cabhilash/archive/tags/WCF/default.aspx">WCF</category></item><item><title>SQL Server Management Studio query template</title><link>http://weblogs.asp.net/cabhilash/archive/2008/11/23/sql-server-management-studio-query-template.aspx</link><pubDate>Sun, 23 Nov 2008 16:36:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6750717</guid><dc:creator>cabhilash</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/rsscomments.aspx?PostID=6750717</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/commentapi.aspx?PostID=6750717</wfw:comment><comments>http://weblogs.asp.net/cabhilash/archive/2008/11/23/sql-server-management-studio-query-template.aspx#comments</comments><description>Last day I was working on SQL server and I got this strange error
&lt;br&gt;
---------------------------&lt;br&gt;
Microsoft SQL Server Management Studio&lt;br&gt;
---------------------------&lt;br&gt;
Cannot find template file for the new query ('C:\Program Files\Microsoft SQL &lt;br&gt;Server\90\Tools\Binn\VSShell\Common7\IDE\SqlWorkbenchProjectItems\SQL\SQLFile.sql').&lt;br&gt;
---------------------------&lt;br&gt;
OK   &lt;br&gt;&lt;br&gt;

At first I thought my SQl server installation was corrupt. I changed few settings, tried to repair but no use. 
&lt;br&gt;&lt;br&gt;
&lt;B&gt;Solution:&lt;/B&gt; &lt;br&gt;
Actually the solution was very simple. I just created an empty file SQLFile.sql in the designated folder and then it started working. Now this gave me a new idea. I could add my own template and every time I open SSMS I will get this template. Phew 

&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6750717" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/cabhilash/archive/tags/SQL+server/default.aspx">SQL server</category></item><item><title>.NET Framework V2.0 Obsolete API List </title><link>http://weblogs.asp.net/cabhilash/archive/2008/01/25/net-framework-v2-0-obsolete-api-list.aspx</link><pubDate>Fri, 25 Jan 2008 03:18:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5648379</guid><dc:creator>cabhilash</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/rsscomments.aspx?PostID=5648379</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/cabhilash/commentapi.aspx?PostID=5648379</wfw:comment><comments>http://weblogs.asp.net/cabhilash/archive/2008/01/25/net-framework-v2-0-obsolete-api-list.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;With the release of .Net framework 3.0 &amp;amp; 3.5&amp;nbsp;a lot API in .Net 2.0 has become obsolete.&lt;/P&gt;
&lt;P mce_keep="true"&gt;I found two excellent links in MSDN which gives a comphrensive list of all the obsolete API's of .Net 2.0&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The Obsoleted Types count is the number of obsoleted types found in the assembly/namespace. 
&lt;LI&gt;The Obsoleted Members count is the number of obsoleted members not contained in an obsoleted type. If a type is obsolete, it's members are not counted in this value.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;B&gt;&lt;A id=ctl00_mainContentContainer_ctl01 onclick="javascript:Track('ctl00_mainContentContainer_ctl00|ctl00_mainContentContainer_ctl01',this);" href="http://msdn2.microsoft.com/en-us/netframework/aa497287.aspx"&gt;Obsolete List: By Assembly&lt;/A&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;&lt;A id=ctl00_mainContentContainer_ctl02 onclick="javascript:Track('ctl00_mainContentContainer_ctl00|ctl00_mainContentContainer_ctl02',this);" href="http://msdn2.microsoft.com/en-us/netframework/aa497288.aspx"&gt;Obsolete List: By Namespace&lt;/A&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5648379" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/cabhilash/archive/tags/.Net/default.aspx">.Net</category></item></channel></rss>