Saturday, July 22, 2006

Loop, Loop....

I had got a relatively small but cumbersome C# code to maintain and extend. Well, I was first charged with the enthusiasm of working in C#, but being a pampered VB (.NET) developer, I decided to convert (manually) the whole code to VB.NET. There were two reasons that made me decide this:

1. I could learn the whole code and what the code intended to do.
2. I was leery on making C# code changes to a working piece of software! Yes, I was too leery!

After 2 days of juggling, I got everything to VB.NET! Wow!

But when I started testing, one part of the code started breaking! :-) This was not expected (It's never expected to fail, right? :-)). I had converted a for loop in the C# code to a for loop in VB.NET.

In the C# code, an arraylist was the one which was getting "looped" and when a condition matched, on object gets removed from the arraylist. The world seemed perfect.
But, to my luck, the VB.NET code did not behave as expected.

Later, I learned that the VB.NET equivalent of the FOR loop in C# is the WHILE loop.

Good learning of the month!

Sunday, July 16, 2006

Unrecoverable, indeed!

I have been working in VS.NET 2003 since its inception. I have deployed both ASP.NET as well as Windows Forms apps to various servers innumerable times.Today I encountered a problem, which was indeed a dead end for me. When I was trying to build a Web Deployment Setup project, VS.NET threw me a Unrecoverable Build Error. Wow!

When I googled, I found many facing this issue. All of them pointed me to the Microsoft's support site article :http://support.microsoft.com/kb/329214/EN-US/

All I needed to do was to register the Mergemod.dll.