Category Archives: General

Spring and Functional Tests

Recently on our project we created a “functional” unit test for some services. The test was designed to check the entire call stack from the service layer to the DAO and return some expected results. We are using Spring for dependency injection through our entire application. This functional test initially only referenced the service DLL’s [...]

Posted in General | Leave a comment

Convert Multi-page image to Collection of Bitmaps

Recently on a project, we had the need to convert a saved multi-page tiff to a collection of bitmaps for viewing in a UI using standard GDI+ methods. These bitmaps also needed to be printed in a high quality way for submission to a government agency.  This method ensures that no quality will be lost [...]

Also posted in .NET Framework | Leave a comment

Windows Worfklow: Error 1342 Activity X validation failed: Can not find the condition Y

This is just a small tip for anyone doing any WWF work:  The workflow’s name property MUST MATCH file workflow filename or rules and conditions will not be found, and the workflow will not be instantiated.
Example:
Create a sequential workflow.  Call it WorkflowA.cs.
Click the workflow in the designer mode, and change the name of the workflow [...]

Also posted in .NET Framework | 2 Comments

Bitmap Default resolution

Recently I encountered a problem regarding default resolution for Images. An image that had been stored in a database as a multi-page tiff needed to be split into individual bitmaps for display and print on a winform using standard GDI+. While spliting the tiffs and creating the new bitmaps, the resolution was lost and was [...]

Posted in General | Leave a comment

Creating a Project Installer for a Windows Service

I recently had to create a Windows Service for a project I’m currently working on.  Rather than installing/uninstalling using InstallUtil, I decided to create a project installer to do the work for me.  It took a little bit of digging to gather all of the necessary steps, so here is what I did to get [...]

Also posted in .NET Framework | Tagged , | 1 Comment

.NetTiers Component Business Layer Architecture

I posted a blog on my blog site that takes a look at the Patterns used in the .NetTier Service Layer Architecture.  Check it out at …
http://www.stanfordkennedy.com/2009/05/nettiers-architecture-design-patterns.html
~Stan Kennedy

Posted in General | Leave a comment

Recover from a WCF Service Fault

I’ve been looking for an elegant way to recover from a WCF Service Client’s channel going into a Faulted state, and after searching for some time came across a great simple quick and dirty example:
When creating your WCF Service Client, add an event handler to the ICommunicationObject.Faulted event on your service client:

1: [...]

Posted in General | 1 Comment

Unable to launch the ASP.NET Development Server because port ‘n’ is in use.

This error displays itself when trying to debug a Web Application or Web Service project from within Visual Studio 2005 and/or Visual Studio 2008 on machines running ESET NOD32 Antivirus.  This problem seems to occur every couple of months on our team, and for some reason we always go round and round trying to troubleshoot [...]

Also posted in .NET Framework | 3 Comments

Interesting Links – RoR and MVC.NET

A couple topics I have been looking into lately are Ruby on Rails and ASP.NET MVC.
Here are some helfpul links I found along the way.
Visual Studio Add-ins – I have heard of quite a few of these. The link is kind of old but some of the tools are still relevant.
http://msdn.microsoft.com/en-us/magazine/cc300778.aspx

Free Chapter on MVC in [...]

Posted in General | Leave a comment

Java could be a pain to C# developers (Pass by Reference)

In C++ and C#, developers have freedom to modify variables by directly having access to memory location.
In C++,
#include <stdio.h>
void swapnum(int &i, int &j)
{
int temp = i;
i = j;
j = temp;
}

int main(void)
{
int a [...]

Also posted in How To Guide | Tagged , | Leave a comment