<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Abhi's den...</title><subtitle type="html">The piece of code which nobody cracked...</subtitle><id>http://weblogs.asp.net/cabhilash/atom.aspx</id><link rel="alternate" type="text/html" href="http://weblogs.asp.net/cabhilash/default.aspx" /><link rel="self" type="application/atom+xml" href="http://weblogs.asp.net/cabhilash/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.20510.895">Community Server</generator><updated>2008-01-25T08:18:00Z</updated><entry><title>Viewstate error : 12031</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/cabhilash/archive/2009/10/13/viewstate-error-12031.aspx" /><id>http://weblogs.asp.net/cabhilash/archive/2009/10/13/viewstate-error-12031.aspx</id><published>2009-10-13T06:41:00Z</published><updated>2009-10-13T06:41:00Z</updated><content type="html">&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;</content><author><name>cabhilash</name><uri>http://weblogs.asp.net/members/cabhilash.aspx</uri></author><category term="ASP.NET" scheme="http://weblogs.asp.net/cabhilash/archive/tags/ASP.NET/default.aspx" /><category term="AJAX" scheme="http://weblogs.asp.net/cabhilash/archive/tags/AJAX/default.aspx" /></entry><entry><title>Add Web service reference- Components required to enumerate web references not installed</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/cabhilash/archive/2009/10/13/add-web-service-reference-components-required-to-enumerate-web-references-not-installed.aspx" /><id>http://weblogs.asp.net/cabhilash/archive/2009/10/13/add-web-service-reference-components-required-to-enumerate-web-references-not-installed.aspx</id><published>2009-10-13T06:23:00Z</published><updated>2009-10-13T06:23:00Z</updated><content type="html">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 Studio --------------------------- Failed to update Service Reference 'XXXBusiness.Reference'. Error:The components required to enumerate Web references are not installed on this computer. Please re-install Visual Studio.(0x80004002) What could have...(&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;</content><author><name>cabhilash</name><uri>http://weblogs.asp.net/members/cabhilash.aspx</uri></author><category term="WCF" scheme="http://weblogs.asp.net/cabhilash/archive/tags/WCF/default.aspx" /><category term="Web Services" scheme="http://weblogs.asp.net/cabhilash/archive/tags/Web+Services/default.aspx" /><category term="ASP.NET" scheme="http://weblogs.asp.net/cabhilash/archive/tags/ASP.NET/default.aspx" /></entry><entry><title>WCF 8192 issue</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/cabhilash/archive/2009/08/06/wcf-8192-issue.aspx" /><id>http://weblogs.asp.net/cabhilash/archive/2009/08/06/wcf-8192-issue.aspx</id><published>2009-08-06T16:08:00Z</published><updated>2009-08-06T16:08:00Z</updated><content type="html">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 at the ASP.net client side. Almost all the known properties of Problem: The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas...(&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;</content><author><name>cabhilash</name><uri>http://weblogs.asp.net/members/cabhilash.aspx</uri></author><category term="WCF" scheme="http://weblogs.asp.net/cabhilash/archive/tags/WCF/default.aspx" /></entry><entry><title>SQL Server Management Studio query template</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/cabhilash/archive/2008/11/23/sql-server-management-studio-query-template.aspx" /><id>http://weblogs.asp.net/cabhilash/archive/2008/11/23/sql-server-management-studio-query-template.aspx</id><published>2008-11-23T16:36:00Z</published><updated>2008-11-23T16:36:00Z</updated><content type="html">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;</content><author><name>cabhilash</name><uri>http://weblogs.asp.net/members/cabhilash.aspx</uri></author><category term="SQL server" scheme="http://weblogs.asp.net/cabhilash/archive/tags/SQL+server/default.aspx" /></entry><entry><title>.NET Framework V2.0 Obsolete API List </title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/cabhilash/archive/2008/01/25/net-framework-v2-0-obsolete-api-list.aspx" /><id>http://weblogs.asp.net/cabhilash/archive/2008/01/25/net-framework-v2-0-obsolete-api-list.aspx</id><published>2008-01-25T03:18:00Z</published><updated>2008-01-25T03:18:00Z</updated><content type="html">&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;</content><author><name>cabhilash</name><uri>http://weblogs.asp.net/members/cabhilash.aspx</uri></author><category term=".Net" scheme="http://weblogs.asp.net/cabhilash/archive/tags/.Net/default.aspx" /></entry></feed>