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...
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...
Note: Code in italics is not actual C# 3.0 syntax. Local Variable Type Inference C# 3.0 brought us local variable type inference mainly because of LINQ . The output of a query can vary from an IEnumerable<T> or an IQueryable<T> to a single instance of T where T can even be a projection which...
I just came across this today: Framework Design Studio is a set of tools for reusable library designers. The package contains a GUI tool for viewing, reviewing, and comparing versions of managed APIs. It also contains a command line tool for generating API diff reports. This seems to be a great tool...
While preparing the demos for my session at TechDays Portugal 2008 , I've noticed some changes in the Web Client Software Factory 2.0 that prevented the EventBroker Extension from compiling and running. The problem ended out just being a little change in the WebClientApplication class. The virtual...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
03-12-2008
Filed under: .NET, ASP.NET, Community, SoftDev, Microsoft, MSDN, Web, WCSF, Tools, PnP, SoftwareFactories, Techdays, TechdaysPT08
While preparing the demos for my session at TechDays Portugal 2008 , I've noticed that the Web Client Software Factory 2.0 doesn't work with IIS7 in integrated pipeline mode because it's trying to access the Request property of the current HTTP Context from the HTTP Application Start "event"...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
03-11-2008
Filed under: .NET, ASP.NET, Microsoft, MSDN, Web, WCSF, PnP, SoftwareFactories, IIS, Techdays, TechdaysPT08, IIS7