Recently I’ve been asked if it would be possible to replace the assemblies loaded by a .NET Windows Service application while it was running like with ASP.NET . Like with ASP.NET, an application start and end events where needed. The solution is quite simple. The Windows Service application is just a...
When writing my unit tests I don’t like to use hard coded fixed values because I either end up using the same values or, because of that, tests may succeed by coincidence. Over time, I have developed an helper class to generate random values for testing. namespace PauloMorgado.VisualStudio.TestTools...
On previous posts [ ^ ][ ^ ] I mentioned the size of ASP.NET validators and validation summary rendering and the fact that expando attributes are being used to add properties. Mohamed also mentions this issue. Besides the fact that custom attributes aren't XHTML conformant, Firefox differs from Internet...
Everyone knows (or, should know) that values values retrieved from the GetHashCode method should not be persisted for later use, specially with strings , because: The behavior of GetHashCode is dependent on its implementation, which might change from one version of the common language runtime to another...
Justin Van Patten has posted on BCL Team Blog about the .NET Framework Client Profile . In this post he goes through the list of the assemblies that will and will not be part of this client profile. If you know how classes are packaged in the .NET Framework , you know that sometimes they are packaged...
Yesterday I blogged about the cause of ASP.NET validators and validation summary slowness . At that point I wasn't aware of the existence of the XHTML conformance configuration (thanks Nuno ). With the XHTML conformance configuration set to Legacy , the rendering of controls works like it worked...
When building ASP.NET pages, if you use too many validators and validation summaries your pages can become very slow. Have you ever wondered why? Lets build a simple page web page with a few validators. Something like this: The page is composed of: 2 TextBox es 1 RequiredFieldValidator for each TextBox...
Ok, first a disclaimer: I'm a Microsoft MVP with a competency in Visual Basic. Normally I would not give this much thought, I've always favored VB (I started using it back when it was in version 3) over all other languages and thought very little of the debates that went on online comparing it...
The tool space for software architecture has been growing. There are new tools and continuous improvement in the existing ones. Framework Design Studio Last month Krzysztof Cwalina from Microsoft released the Framework Design Studio at MSDN Code Gallery . The tool allows comparing two versions of an...
The Northeast Roadshow We're at it again! It's time to pack our laptops and gear to head out across the northeast for our fifth Roadshow! Only this time, you're getting three of us for the price of, well, zero - the events are free after all... Jim O'Neil, our new colleague here in the...