<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.sgdotnet.org/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">DarenHan's Blog</title><subtitle type="html">I am a Dot net asp.net developer working with VS 2005 and SQL 2005 now.

</subtitle><id>http://community.sgdotnet.org/blogs/darenhan/atom.aspx</id><link rel="alternate" type="text/html" href="http://community.sgdotnet.org/blogs/darenhan/default.aspx" /><link rel="self" type="application/atom+xml" href="http://community.sgdotnet.org/blogs/darenhan/atom.aspx" /><generator uri="http://communityserver.org" version="4.0.30619.63">Community Server</generator><updated>2008-05-27T15:11:00Z</updated><entry><title>Make your pdfs smaller :)</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/08/17/make-your-pdfs-smaller.aspx" /><id>/blogs/darenhan/archive/2008/08/17/make-your-pdfs-smaller.aspx</id><published>2008-08-17T04:41:00Z</published><updated>2008-08-17T04:41:00Z</updated><content type="html">&lt;p&gt;Compress PDF file and reduce the actual size of PDF document with this completely free PDF Compressor.&lt;/p&gt;
&lt;p&gt;Free PDF Compressor removes duplicate PDF objects, optionally takes advantage of new compression features of latest PDF specifications that for many classes of documents compresses 30 - 60% better than what is possible in PDF 1.5. &lt;/p&gt;
&lt;p&gt;Free PDF Compressor allows you to shrink PDF file by using Flate or RunLength compression algorithm. With this freeware, you are able to set the compression level to generate PDF files of smallest size.&lt;/p&gt;
&lt;p&gt;Another benefit of this freeware utility is that you can decompress or expand any PDF file to its original size for better conversion from PDF to other formats.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.nicepdf.com/PDFCompressor.exe"&gt;http://www.nicepdf.com/PDFCompressor.exe&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=223657" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>Save 15% on a new TechNet Subscription</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/08/02/save-15-on-a-new-technet-subscription.aspx" /><id>/blogs/darenhan/archive/2008/08/02/save-15-on-a-new-technet-subscription.aspx</id><published>2008-08-02T17:34:00Z</published><updated>2008-08-02T17:34:00Z</updated><content type="html">Microsoft is providing a small measure of relief for those purchasing TechNet Subscription. When purchasing a new Microsoft TechNet Subscription, you will be ask for a Discount Code. When prompted, simply enter TMSAM02 and instantly save 15%!

(Special Note: This Discount Code will work in any part of the world where Microsoft TechNet Subscriptions are available for purchase and is only valid for new Subscriptions.)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=223475" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>TestDisk Data Recovery works for most platforms</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/07/19/TestDisk-Data-Recovery-works-for-most-platforms.aspx" /><id>/blogs/darenhan/archive/2008/07/19/TestDisk-Data-Recovery-works-for-most-platforms.aspx</id><published>2008-07-19T03:17:00Z</published><updated>2008-07-19T03:17:00Z</updated><content type="html">TestDisk is OpenSource software and is licensed under the terms of the GNU Public License (GPL). &lt;br /&gt;&lt;br /&gt;TestDisk is a powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy. &lt;br /&gt;&lt;br /&gt;TestDisk can &lt;br /&gt;Fix partition table, recover deleted partition &lt;br /&gt;Recover FAT32 boot sector from its backup &lt;br /&gt;Rebuild FAT12/FAT16/FAT32 boot sector &lt;br /&gt;Fix FAT tables &lt;br /&gt;Rebuild NTFS boot sector &lt;br /&gt;Recover NTFS boot sector from its backup &lt;br /&gt;Fix MFT using MFT mirror &lt;br /&gt;Locate ext2/ext3 Backup SuperBlock &lt;br /&gt;Undelete files from FAT filesystem &lt;br /&gt;Copy files from deleted FAT, NTFS and ext2/ext3 partitions. &lt;br /&gt;&lt;br /&gt;TestDisk has features for both novices and experts. For those who know little or nothing about data recovery techniques, TestDisk can be used to collect detailed information about a non-booting drive which can then be sent to a tech for further analysis. Those more familiar with such procedures should find TestDisk a handy tool in performing onsite recovery.&lt;br /&gt;&lt;br /&gt;TestDisk can find lost partitions for all of these file systems: &lt;br /&gt;BeFS ( BeOS ) &lt;br /&gt;BSD disklabel ( FreeBSD/OpenBSD/NetBSD ) &lt;br /&gt;CramFS, Compressed File System &lt;br /&gt;DOS/Windows FAT12, FAT16 and FAT32 &lt;br /&gt;HFS, HFS+ and HFSX, Hierarchical File System &lt;br /&gt;JFS, IBM&amp;#39;s Journaled File System &lt;br /&gt;Linux ext2 and ext3 &lt;br /&gt;Linux LUKS encrypted partition &lt;br /&gt;Linux RAID md 0.9/1.0/1.1/1.2 &lt;br /&gt;RAID 1: mirroring &lt;br /&gt;RAID 4: striped array with parity device &lt;br /&gt;RAID 5: striped array with distributed parity information &lt;br /&gt;RAID 6: striped array with distributed dual redundancy information &lt;br /&gt;Linux Swap (versions 1 and 2) &lt;br /&gt;LVM and LVM2, Linux Logical Volume Manager &lt;br /&gt;Mac partition map &lt;br /&gt;Novell Storage Services NSS &lt;br /&gt;NTFS ( Windows NT/2000/XP/2003/Vista/2008 ) &lt;br /&gt;ReiserFS 3.5, 3.6 and 4 &lt;br /&gt;Sun Solaris i386 disklabel &lt;br /&gt;Unix File System UFS and UFS2 (Sun/BSD/...) &lt;br /&gt;XFS, SGI&amp;#39;s Journaled File System&lt;br /&gt;&lt;br /&gt;Url:&lt;br /&gt;http://www.cgsecurity.org/wiki/TestDisk&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=223131" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>Use outlook to access your live hotmail account</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/07/17/Use-outlook-to-access-your-live-hotmail-account.aspx" /><id>/blogs/darenhan/archive/2008/07/17/Use-outlook-to-access-your-live-hotmail-account.aspx</id><published>2008-07-17T11:54:00Z</published><updated>2008-07-17T11:54:00Z</updated><content type="html">I am searching for hotmail pop3 access but found they have disabled it. :(&lt;br /&gt;&lt;br /&gt;Only solution are to use OutLoook Connector with Outlook to browse your emails on hotmail.&lt;br /&gt;&lt;br /&gt;Check out this url for more info:&lt;br /&gt;http://office.microsoft.com/en-us/outlook/HA102218231033.aspx?pid=CH100622151033&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=222975" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>OSCON 2008 registration is now open</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/07/17/OSCON-2008-registration-is-now-open.aspx" /><id>/blogs/darenhan/archive/2008/07/17/OSCON-2008-registration-is-now-open.aspx</id><published>2008-07-17T00:42:00Z</published><updated>2008-07-17T00:42:00Z</updated><content type="html">For those who are interested in open source development, there is a 5 day seminar at  Portland, Oregon, USA.  Join over 2,500 open source developers, hackers, experts, IT managers, and users at OSCON 2008. This year&amp;#39;s convention will include 40 tutorials that go deep into open source technology and over 400 sessions focusing on Administration, Business, Databases, Emerging Topics, Java, Linux, Mobile, People, Perl, PHP, Programming, Python, Ruby, Security, Web Applications, and much more. This event is organised by Oreilly.&lt;br /&gt;&lt;br /&gt;Here is the schedule.&lt;br /&gt;http://en.oreilly.com/oscon2008/public/schedule/grid&lt;br /&gt;&lt;br /&gt;Here is the official web site.&lt;br /&gt;http://en.oreilly.com/oscon2008/public/content/home&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=222918" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>Optimise Cursors in Stored Procedures</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/07/09/Optimise-Cursors-in-Stored-Procedures.aspx" /><id>/blogs/darenhan/archive/2008/07/09/Optimise-Cursors-in-Stored-Procedures.aspx</id><published>2008-07-09T12:26:00Z</published><updated>2008-07-09T12:26:00Z</updated><content type="html">I have been checking my emails lately after my NS reservist. Among one of my spam emails, I manage to find a useful url for optimising cursors within stored procedures in SQL Server.&lt;br /&gt;&lt;br /&gt;Yes we all know that cursors is slow but this guy manage to optimise them.&lt;br /&gt;Read more:&lt;br /&gt;&lt;br /&gt;http://sqlblog.com/blogs/hugo_kornelis/archive/2007/11/21/curious-cursor-optimization-options.aspx&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=222249" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>E-book readers on the Go.</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/07/07/E_2D00_book-readers-on-the-Go_2E00_.aspx" /><id>/blogs/darenhan/archive/2008/07/07/E_2D00_book-readers-on-the-Go_2E00_.aspx</id><published>2008-07-07T15:51:00Z</published><updated>2008-07-07T15:51:00Z</updated><content type="html">Amazon has come up with kindle , however, this set does not work in singapore becos the wireless book service is not available in singapore.&lt;br /&gt;http://www.amazon.com/gp/product/B000FI73MA/ref=sa_menu_kdp4?pf_rd_p=328655101&amp;amp;pf_rd_s=left-nav-1&amp;amp;pf_rd_t=101&amp;amp;pf_rd_i=507846&amp;amp;pf_rd_m=ATVPDKIKX0DER&amp;amp;pf_rd_r=0KXSN65GMW3H7FJJX4GC&lt;br /&gt;&lt;br /&gt;Sony has come up with an e-reader for ebooks and this works in local context.&lt;br /&gt;http://www.sonystyle.com/webapp/wcs/stores/servlet/CategoryDisplay?storeId=10151&amp;amp;mpe_id=1908904905&amp;amp;identifier=S_BrandShowcase_Reader&lt;br /&gt;&lt;br /&gt;so what is next? A lot of similar products but belongs to different company. &lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=222079" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>Foundations of Programming Ebook</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/06/29/Foundations-of-Programming-Ebook.aspx" /><id>/blogs/darenhan/archive/2008/06/29/Foundations-of-Programming-Ebook.aspx</id><published>2008-06-29T04:20:00Z</published><updated>2008-06-29T04:20:00Z</updated><content type="html">&lt;br /&gt;   &lt;br /&gt;From the author of codebetter:&lt;br /&gt;&lt;br /&gt;&amp;quot; I&amp;#39;m excited to finally release the official, and completely free, Foundations of Programming EBook. This essentially contains all 9 Foundation parts including a conclusion and some typical book fluff (table of content, acknowledgement and so on). A number of spelling errors were corrected, along with some small technical changes and clarifications - largely based on feedback, so thanks for everyone who provided it! Otherwise it&amp;#39;s exactly the same as what&amp;#39;s been posted here over the past several months. &amp;quot;&lt;br /&gt;&lt;br /&gt;Download the free ebook&lt;br /&gt;http://codebetter.com/files/folders/codebetter_downloads/entry179694.aspx&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=221201" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>System.MissingFieldException - Field Not Found: ?.s_webServicesFactoryType</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/06/25/System.MissingFieldException-_2D00_-Field-Not-Found_3A00_-_3F00_.s_5F00_webServicesFactoryType.aspx" /><id>/blogs/darenhan/archive/2008/06/25/System.MissingFieldException-_2D00_-Field-Not-Found_3A00_-_3F00_.s_5F00_webServicesFactoryType.aspx</id><published>2008-06-25T17:11:00Z</published><updated>2008-06-25T17:11:00Z</updated><content type="html">We got a Production issue about this following error:&lt;br /&gt;System.MissingFieldException - Field Not Found: ?.s_webServicesFactoryType&lt;br /&gt;&lt;br /&gt;Googling on it does not yield any useful results so we turn to microsoft support staff.&lt;br /&gt;&lt;br /&gt;They advise us to&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Method 1:&lt;/strong&gt; &lt;br /&gt;1. Check the ASP.net IIS Tab whether there is same version of asp.net being used for the web app.&lt;br /&gt;2. If the asp.net Tab is missing, &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Check if only one version of ASP.NET is allowed in the web service extensions. If it is, the Tab will not appear since 2 versions are installed but only 1 is allow in the web server extensions.&lt;br /&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;Other links to solve the missing tab:&lt;br /&gt;http://weblogs.asp.net/plip/archive/2006/05/25/Where_2700_s-the-ASP.NET-Tab-in-IIS_3F00_-It_2700_s-Missing_2100_-I_2700_ve-installed-.NET-2.0-_2E002E002E00_.aspx&lt;br /&gt;&lt;br /&gt;http://dotnet.org.za/ahmeds/archive/2005/04/26/19028.aspx&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Method 2:&lt;/strong&gt; do a NGEN&lt;br /&gt;1.     Open a command window,&lt;br /&gt;2.     Navigate to the .Net Framework 1.1 directory, which should&amp;nbsp;be %windows%\Microsoft.Net\Framework\v1.1.4322\&lt;br /&gt;3.     Run this command (without the quotation marks) &amp;ldquo; ngen System.runtime.remoting.dll &amp;ldquo;&lt;br /&gt;4.     After this operation, you can check the GAC assemblies for the result, there should be native version of remoting.dll. To do this you can navigate to %windows%\assembly\ path, and can run this command (without the quotation marks)  &amp;ldquo; dir /a /s /b System.runtime.remoting.*.* &amp;rdquo;&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=220825" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>ASP.net viewstate problems and thoughts</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/06/25/ASP.net-viewstate-problems-and-thoughts.aspx" /><id>/blogs/darenhan/archive/2008/06/25/ASP.net-viewstate-problems-and-thoughts.aspx</id><published>2008-06-25T16:48:00Z</published><updated>2008-06-25T16:48:00Z</updated><content type="html">I did a benchmark of my project aspx pages that are written in asp.net 1.1 and observe some improvements in viewstate and overall page size.&lt;br /&gt;&lt;br /&gt;Before Change of Code, &lt;br /&gt;ReportMapping_Selection.aspx   has page size of 39 kb &lt;br /&gt;                                                      has viewstate size of 16 kb &lt;br /&gt;&lt;br /&gt;After Change of Code, &lt;br /&gt;ReportMapping_Selection.aspx   has page size of 33 kb &lt;br /&gt;                                                       has viewstate size of 12 kb &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Before Change of Code, &lt;br /&gt;AddReportMapping_Selection.aspx   has page size of 53 kb &lt;br /&gt;                                                     has viewstate size of 43 kb &lt;br /&gt;&lt;br /&gt;After Change of Code, &lt;br /&gt;AddReportMapping_Selection.aspx   has page size of 17 kb &lt;br /&gt;                                                     has viewstate size of 4 kb&lt;br /&gt;&lt;br /&gt;I did use a free tool though called ViewStateHelper.&lt;br /&gt;&lt;br /&gt;Forumula &amp;nbsp;- &amp;gt; &amp;nbsp;Page Size = ViewState + HTML markup&lt;br /&gt;&lt;br /&gt;Viewstate can be reduced by using html controls to an extent but it is not a full-proof solution.&lt;br /&gt;&lt;br /&gt;Scenario 1:&lt;br /&gt;For example, datagrid in asp.net don&amp;#39;t have an equivalent client-side control. Imagine a datagrid with 1,600 rows of data on 1 single page. Yes, I can probably improve the viewstate by disabling the viewstate row by row but however due to the large amount of data, HTML markup remains big.&lt;br /&gt;&lt;br /&gt;According to the above forumla, if I have a small viewstate but big HTML markup size, I still &amp;nbsp;stuck with a big page like 4 megs? That is where pagination comes in. Lol.&lt;br /&gt;&lt;br /&gt;Scenario 2:&lt;br /&gt;If I use viewstate to store my datatable on a page, and with each click of a button, it refresh the datatable, it will result in viewstate being different at different points of the day. That is where Caching comes in.&lt;br /&gt;&lt;br /&gt;By looking at Scenario 1 and 2, you will notice both are common Viewstate problems but have varying solutions. So there is no hard and fast way to reduce a page size but rather you use the tool you are blessed with to solve a problem at hand depending on Scenarios.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=220823" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>AOL music radio online</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/06/24/AOL-music-radio-online.aspx" /><id>/blogs/darenhan/archive/2008/06/24/AOL-music-radio-online.aspx</id><published>2008-06-24T23:08:00Z</published><updated>2008-06-24T23:08:00Z</updated><content type="html">Since when did AOL started radio business? I was skeptical but did a trial on the online player which stream  150+ CBS Radio stations from around the US, including 30+ news, sports and talk stations.&lt;br /&gt;&lt;br /&gt;Much better than our local radio stations I will say.&lt;br /&gt;&lt;br /&gt;http://player.play.it/player/aolPlayer.html?ur=1&amp;amp;us=1&amp;amp;id=757&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=220763" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>Free Firefox 3 Revealed SitePoint eBook</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/06/23/Free-Firefox-3-Revealed-SitePoint-eBook.aspx" /><id>/blogs/darenhan/archive/2008/06/23/Free-Firefox-3-Revealed-SitePoint-eBook.aspx</id><published>2008-06-23T14:39:00Z</published><updated>2008-06-23T14:39:00Z</updated><content type="html">http://www.sitepoint.com/popup/popup.php?zone=2&amp;amp;popupid=114&lt;br /&gt;&lt;br /&gt;as above title.&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=220638" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>Mobile Applications on your mobile phone</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/06/22/Mobile-Applications-on-your-mobile-phone.aspx" /><id>/blogs/darenhan/archive/2008/06/22/Mobile-Applications-on-your-mobile-phone.aspx</id><published>2008-06-22T14:20:00Z</published><updated>2008-06-22T14:20:00Z</updated><content type="html">I saw this being advertised on Channelnewsasia TV. Looks like a J2ME client though..sighed. It can connect to your facebook and friendster sites, push email, mobile IM,  rss feeds etc.&lt;br /&gt;&lt;br /&gt;http://monet.morange.com/&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=220581" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>free app giveaway of the day :)</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/06/01/free-app-giveaway-of-the-day-_3A002900_.aspx" /><id>/blogs/darenhan/archive/2008/06/01/free-app-giveaway-of-the-day-_3A002900_.aspx</id><published>2008-06-01T10:23:00Z</published><updated>2008-06-01T10:23:00Z</updated><content type="html">http://www.giveawayoftheday.com/&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=219022" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry><entry><title>Root Cause behind the dot.net 1.1 serialization error</title><link rel="alternate" type="text/html" href="/blogs/darenhan/archive/2008/05/27/Root-Cause-behind-the-dot.net-1.1-serialization-error.aspx" /><id>/blogs/darenhan/archive/2008/05/27/Root-Cause-behind-the-dot.net-1.1-serialization-error.aspx</id><published>2008-05-27T15:11:00Z</published><updated>2008-05-27T15:11:00Z</updated><content type="html">&lt;p&gt;I got this error prety long ago till now we managed to find the root cause&amp;nbsp;why this error happens though i cannot find any article on google that clearly explains why.&lt;/p&gt;&lt;p&gt;I got the answer from Microsoft Support staff.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;We have one windows 2003 Service Pack 2 server as application server in Production.&lt;/p&gt;&lt;p&gt;The rest of the web and app servers are on windows 2003 Service Pack 1.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The error:&lt;/strong&gt;&lt;br /&gt;System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---&amp;gt; System.Runtime.Serialization.SerializationException: Type missing for member of type Object &amp;#39;_ContextID&amp;#39;. Server stack trace: at System.Runtime.Serialization.Formatters.Soap.ObjectReader.ParseMember(ParseRecord pr) at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Parse(ParseRecord pr) at System.Runtime.Serialization.Formatters.Soap.SoapHandler.EndElement(String prefix, String name, String urn)&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Reason why it happen:&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;According to &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;944925"&gt;http://support.microsoft.com/default.aspx?scid=kb;EN-US;944925&lt;/a&gt;&lt;/p&gt;&lt;p&gt;There is a file in c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322&lt;/p&gt;&lt;p&gt;system.runtime.serialization.formatters.soap.dll&amp;nbsp;&lt;/p&gt;&lt;p&gt;When it was on win2k3 SP 1,&lt;/p&gt;&lt;p&gt;system.runtime.serialization.formatters.soap.dll &lt;br /&gt;version is 1.1.4322.2300 &lt;br /&gt;128 KB (131,072 bytes)&lt;/p&gt;&lt;p&gt;When it&amp;nbsp;was&amp;nbsp;on win2k3 SP 2,&lt;/p&gt;&lt;p&gt;system.runtime.serialization.formatters.soap.dll,&amp;nbsp; version is 1.1.4322.2306,&amp;nbsp; 132 kb&lt;/p&gt;&lt;p&gt;So the differences of the version of this file results in the Dot net CLR unable to serialise and deserialise&amp;nbsp;properly as the app and web servers are&amp;nbsp;using different version of dll after windows 2003 service packs after the load balancer assign the specific web server (win2k3 SP 1) to specific app server (win2k3&amp;nbsp;SP2).&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The solution&lt;/strong&gt; is to maintain the same version of this dll throughout the servers&amp;nbsp;which use the serialisation feature in Dot Net Remoting.&lt;/p&gt;&lt;p&gt;Now my infrastructure guy keeps quiet cos he know that his aggressive system patching has crippled the web application because of this dll, since he has no idea what will Microsoft patch after the Service Pack 2 was applied on the server. Lolz&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.sgdotnet.org/aggbug.aspx?PostID=218512" width="1" height="1"&gt;</content><author><name>darenhan</name><uri>http://community.sgdotnet.org/members/darenhan/default.aspx</uri></author></entry></feed>