Category Archives: .NET Framework

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 Enterprise .NET, General | Tagged , , , | 3 Comments

Intro to PLINQ

I recently had the opportunity to attend the Microsoft launch event for the new Visual Studio 2010. I was impressed with everything 2010 is bringing to the table, but what really caught my eye is the new Parallel FX library. Parallel FX provides developers with a set of tools which promises faster and [...]

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

Handle asp.net MVC session expiration

Here is a really simple way to handle a session expiration in asp.net MVC using a base controller.  Having all controller inherit from a basecontoller and overriding the OnActionExecuting event allows for checking the session before all actions are executed.
Here is the code

public class BaseController : Controller

{

protected override void OnActionExecuting

[...]

Posted in .NET Framework | Tagged | 2 Comments

EF4 and WCF Data Services presentation materials from Hartford Code Camp 3

As some of you know, I presented on Entity Framework 4 and WCF Data Services 4 at Hartford Code Camp back on June 19th. I have posted the material from the code camp here.

Also posted in Enterprise .NET, Presentations, User Groups, WCF | Tagged , , , , , | 1 Comment

ASP.NET MVC Primer – Presentation Materials

Here are the links to the material from the ASP.NET MVC 2 Primer presentation given at the 3rd Annual Hartford Code Camp on Saturday, June 19, 2010:
Powerpoint Slides: Primer.pptx
Source Code: PrimerDemoSource.zip
Disclaimer:
I have done some Very Bad Thingsâ„¢ in this code in order to speed up the presentation that are always considered bad practice.   The most [...]

Also posted in Enterprise .NET, Presentations, User Groups | Tagged , , | 5 Comments

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 General | 4 Comments

RESTFul Services in Silverlight – CT Code Camp June 2009

Downloade the Presentation and CodeÂ
The Connecticut User Group organized a full day code camp event in Bloomfield, CT. The topic I presented on was “RESTFul Services and Silverlight”. The presentation was organized around the following main topics:

Web Services via SOAP
RESTFul Services
Creating a WCF RESTFul Service
Consuming a Custom WCF RESTFul Service in Silverlight

The attached slide deck will [...]

Also posted in Presentations, User Groups, WCF | Tagged , , , | Leave a comment

Content from LINQ Code Camp Presentation (6/13/09)

On June 13, 2009 I was privileged to give a presentation at the Hartford Code Camp at New Foundations in Bloomfield, CT.   The event was a great success, with 29 presenters,  35 sessions, and more than 150 people in attendance.  I’d like to say thank you to anyone who was able to attend my session [...]

Also posted in Presentations | Tagged , , , , | 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 General | 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 General | 2 Comments