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 [...]
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 |
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 |
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 [...]
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 [...]
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
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: [...]
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 |
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 [...]
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 [...]