-
Arguably, one of the most powerful features of UppercuT (UC) is the ability to extend any step of the build process with a pre, post, or replace hook. This customization is done in a separate location from the build so you can upgrade without wondering if you broke the build. There is a hook before each...
-
Have you ever noticed that out of the box NHibernate’s DateTime type will truncate/ignore your milliseconds for DateTime fields? If you do not believe me check out this post . If you think about why it does this it will become clear, NHibernate runs against MANY databases and each one of them stores...
-
Have you ever run into the following error while trying to host (start) a WCF service inside a Windows Service? Starting WCF Services step has caused the following error HTTP could not register URL http://+:9997//Services/HashGenerationService/ . Your process does not have access rights to this namespace...
-
The other day I refreshed one of our WCF services (right click the service and do a Update Service Reference) and all of a sudden I got a metric crap-ton of build errors. In each place I received the error it told me that the type was not found. At first I could not understand what was going on, in fact...
-
What if there was a tool out there that could let you specify a structure for a project (visual studio solution + everything else) and save you up to 3+ hours of work every time you started a new project? Warmup was an idea by Dru Sellers to remove all of the setup work required every time you set up...
-
Have you ever received the following exception while using MEF ? Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. if you have received this error did you scratch your head and wonder ‘what the F does this mean’? Well the long and short...
-
Today I was adding some new logic to some older code and I noticed there was very little test coverage on the logic so I decided to add some. As I was adding coverage I wanted to add some tests that proved out our Contract style bound checks. However there was one slight problem. The...
-
When you are setting up your NHibernate mappings you must pay close attention to the way you setup your relationships between your entities. Recently I started profiling some of our statements and was shocked to see how some of them had a metric-crap ton of joins when they only needed one or two...
-
Today as I was creating a new NHibernate Criteria statement everything was working fine UNTIL I added the where clause. At this point I started to get the following exception (which was seen via NHibernate Profier ). WARN: System.Data.SqlClient.SqlException: The multi-part identifier "doc2_...
-
The Classic Infinite Email Loop When building an email parser, one must think about validating an email address that sends you a message. Why? Just because an email message has a from address does not already mean that it is a valid email address. When you're building an auto-responder, not validating...
-
Background Sending email has long been easy to do with the .NET Framework. There really hasn’t been a facility for checking email though. I recently had a need to be able to check email with and send a response with Bombali (a monitoring tool). I went searching for examples or a solution I could...
-
Good patterns of development really make maintenance even easier. And since we are all doing maintenance after we write our first line of code, we really should keep maintenance concerns in mind at all times. When you do interfaced based development, it allows you to swap out behaviors without changing...
-
In this great post by Jimmy Bogard or this Dimecasts on the subject we take a look at how to add IoC (Inversion of Control) support to your WCF application in order to support DI (Dependency Inversion). However, the one thing both the post and Dimecasts fail to take into account is what if you are not...
-
When you have command line arguments to parse (whether in Windows or Linux), the place to look is Mono.Options . To date, I have not found anything better to get the job done. It is a single C# file if you do not want to download the entire Mono Library to use it. I was first introduced in Mono 2.2 ...
-
I’m a huge fan of NHibernate . It has excellent documentation and just makes the whole job of getting things into and out of the database much more enjoyable. There is a whole series of posts on NHibernate from one of the committers, Ayende . When Fluent NHibernate (FNH) came out, it was...