On my current assignment we develop and maintain a number of Windows services. Some of these service depend on others. The problem we faced when we needed to deploy new versions, is that services did not start in the correct order. Some services depend on others, so these need to be started first. This...
We're all really fast at coding, right. So you don't want to bother with things like proper casing of keywords (in VB.Net) and properly re-aligning the code. Well, Visual Studio can do that for you with just a few keystrokes. I noticed that not that many people are aware of this option, but I actually...
At Tech-Ed 2006 I attended a session about hidden treasures in .Net. One of the treasures mentioned there was the ToTitleCase() method. This method changes the case of the first character of each word in a text to Upper case: System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(...
I'm working on a solution in Visual Studio 2003 at the moment, which contains about 15 assemblies. All these assemblies have a AssemblyInfo.cs file which contains more or less the same information. In general, when you look at larger solutions, you will have only a few settings that might differ between...
Some weeks ago, Microsoft have released the Patterns & Practices Guidance Explorer for .Net and Asp.Net applications. If you want to know what the proven practices for security and/or performance are for .Net applications, this is the tool to help you find them. Guidance Library is a catalog of guidelines...
I was asked a question about this for a possible new assignment and obviously thought of the upgrade wizard that is part of the Visual Studio IDE. Just open the VB6 solution in Visual Studio and just follow the steps. But there's obviously more to it than just running the wizard. I found extensive documentation...
You all know the problem. You run FxCop on your project or solution and it keeps throwing messages at you that for some reason you want to ignore for this project. Say you're building a WinForms application and in the click event for your button, you want to catch all exceptions and display a message...
I was assigned to a .Net web project some years ago to see why the application continued to allocate more and more memory untill IIS thought it was to time to restart the application. I solved a lot of the problems in that project simply by calling the Dispose method on any object that implemented one...
If you're not interested in someone expressing his feelings about checking code and code quality, please skip this post. If you're still reading this, then I assume you're interested and I would really like you to comment on this subject. I've been working on several projects for various clients of the...
We've been discussing string use in .Net on several occasions. You can use this link as a starting point. I just read an interesting article on MSDN, with recommendations for string use in .Net 2.0 . The document focuses on string comparisons. From that document: DO: Use StringComparison.Ordinal or OrdinalIgnoreCase...