Natty Gur
Enterprise Architect on Enterprise Architecture
-
Display HTML controls inside MS Treeview control.
-
Longhorn, Windows applications navigation abilities.
-
Starting ASP.NET state service result in error message.
One of my customers didn’t succeed to start the ASP.NET state service. Every time he tries to start the service an error message pops up. Well that service occupied a port to supply it services and the problem was that other process on the computer already uses that port. You can check the current port number and change it in the following registry entry:
-
Do you know LosFormatter ?
Stoneware in the obscurity of System.WEB.UI the class LosFormatter is hiding. ASP.NET uses this class to serialize web controls state into string presentation inside hidden field inside the page Form. ASP.NET also uses LosFormatter on post back to de-serialize the hidden field back into controls. The class advantage is that it optimized for highly compact ASCII format serialization. This class supports serializing any object graph, but is optimized for those containing strings, arrays, and hashtables.
-
ToString() is it really cause boxing ?
More and more times I found myself arguing about ToString() as boxing. As you all know Tostring() is one of the object methods. Well, many programmers tend to believe that when they use ToSting() on value types (int, long, etc’) the CLR should box the value type into object to use the objects ToString(). That’s true if the value type uses the objects method. But, if value type override ToString() (and that’s what really happened) than boxing isn’t necessary since ToString() is part of the value type class.
-
The Joel Test: 12 Steps to Better Code, It's old but true ...
-
IIS 6.5 and ASP.NET 2.0
While trying to define web application in IIS 6.5 (Longhorn’s version) for my ASP.NET application (by default ASP.NET use Cassini) I notice a new tab – “ASP.NET” that decorates the IIS MMC. This tab enables you to select the ASP.NET version that your application uses and display the web.config location. But the real fun begins when I press on “Edit configuration” button. A multi tab visual tool, which enable to visually editing of most web.config settings, popup. It’s really nice tool that enable to control and view web settings. I hope that IIS 6.5 will be shipped with Whidbey so we can get advantage of this tool.
-
Calling COM objects from ASP.NET application.
Calling COM objects from ASP.NET application.
-
Navigation mechanism in ASP.NET 2.0
-
9 hours of struggling COM+ wrappers, 1 lesson.
The story goes like this. There is an organization that decides to use MQSERIES as their message infrastructure. They create COM proxy registered in COM+ for DNA objects and maintain that COM proxy for .NET until the coming version of .NET MQSeries library. They use TlbImp to create wrapper assembly and distribute that assembly among .Net users in the organization. Now, as the time pass the made some bug fix and improvement to their proxy assembly and then BOOM. Nothing seems to work they didn’t change their COM proxy Interfaces nor version number but all the existing .Net assemblies on integration server refuse to load the proxy wrapper. On developers machines every thing works like charm, after deploying the new proxy. but on the server ….