Category Archives: General

Multi Tenant Architecture via Dependency Injection: Part 3

Using Ninject and Dependency Injection to enhance your ASP.Net MVC application’s Multi-Tenant Application.

Also posted in .NET Framework, Enterprise .NET | Tagged , , , | Leave a comment

Multi Tenant Architecture via Dependency Injection: Part 2

Using Ninject and Dependency Injection to enhance your ASP.Net MVC application’s Multi-Tenant Application.

Also posted in .NET Framework, Enterprise .NET | Tagged , , , | 3 Comments

Multi Tenant Architecture via Dependency Injection: Part 1

Discover how to use Inversion of Control and Dependency Injection to enhance your web application’s Multi-Tenant Application.

Also posted in .NET Framework, Enterprise .NET | Tagged , , , | 2 Comments

Learning WPF

As a .net developer that has recently spent over a year helping to design and build a SCSF winforms application, I have been looking to branch out into different techniques and technologies to improve my skill set.  With Visual Studio 2010 coming out, the latest support for WPF and a push, by Microsoft, toward its [...]

Posted in General | Leave a comment

Transform System.Drawing.ContentAlignment property to System.Drawing. StringFormat Alignment property

Recently we had the need to transform System.Drawing.ContentAlignment property to System.Drawing. Stringformat alignment property for creating a Graphic object with text drawn on it inside a given rectangle.  Assuming that you want the text printed from left to right, you can use the ContentAlignment Enum values to obtain the desired StringAlignment Enum value.  For example:

[...]

Posted in General | Leave a comment

Adding SQLite to a Windows Mobile Application

Using SQLite in a Windows Mobile Application provides a simple way to add pre-populated data for consumption by the application.  There are a couple of configuration considerations when adding the database to the project.
1. Adding reference to SQLite.dll. After installing SQLite there will be a Compact Framework folder in the following path :C:\ProgramFiles\SQLite.NET\bin.  This folder [...]

Posted in General | Leave a comment

Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. Access is denied.

Problem: Recently i came across this problem while switching to a new Windows 7 64 bit m/c. The web site at hand was working fine on my previous m/c Windows 7 64 bit RC1. The error and the event log were basically not very helpful either.
Resolution:
So here is what I did to fix the issue [...]

Also posted in .NET Framework | 3 Comments

WCF Exception Shielding Error

While using the WCF Exception Shielding policy in Enterprise Library’s Exception Handler Block to shield exceptions and return Fault Contracts I came across an error. I named the shielding policy “WCF Shielding Policy” and implemented a FaultContract for each type of desired or expected exception.
While testing the policy, we were unable to return a proper [...]

Posted in General | Leave a comment

Write iPhone Applications in C# using MonoTouch

The mono project has released a new Mono edition for Apple’s iPhone and iPod Touch.  This allows you to write full featured applications for the iPod touch using C#. 
This is not a JIT Compiler, but is a static compiler that turns .NET executables into native applications. 
For more information, check out the project at [...]

Posted in General | Leave a comment

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