Archive for the ‘.NET’ Category

Debugging ADO.NET Datatables

Do you ever had the famous error message :
“Failed to enable constraints. One or more rows  contain values violating non-null, unique, or foreign-key  constraints.”
when using ADO.NET Datasets ?
Tthis is an incredibly useful message isn’t it ?
So what can you do to spare you some headaches ? Retrieve a more useful message sure !
You have to [...]

More »

FreeImage and x64 projects : Yes you can !

A few words about FreeImage
According to the website, FreeImage (http://freeimage.sourceforge.net) is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today’s multimedia applications.
FreeImage is easy to use, fast, multithreading safe, compatible with all 32-bit versions of Windows, and [...]

More »

The IX509CertificateRequestPkcs10 InitializeFromTemplateName adventure

This week has been researches, tests and headaches to be able to make request on a Certificate Authority server from a web application.
My client has a Win server 2008 CA server for my developments
On this server I have a certificate template named “User Template”

My assignment was to request a certificate via an ASP.NET application.
After researches [...]

More »

Visual Studio Default Key binding posters

The visual studio 2010 keybinding poster is available since a few weeks.
Visual C# 2010 default key bindings preview :

Shortcuts are grouped by category (debuging, refactoring, editing, navigation, …)
Here is the Visual Studio Keyboard shortcuts posters for C#:
Visual Studio 2010

Download the pdf
Go to the msdn page

Visual Studio  2008

Download the pdf
Go to the msdn page

Visual Studio [...]

More »

Custom paging with Subsonic 3 and ObjectDataSource in ASP.NET

Here is how I created a paged items list in ASP.NET 3.5 using Subsonic for data access, and ASP.NET Controls for the display.
I use Subsonic 3.0.0.4 with ActiveRecord and ASP.NET 3.5 SP1 webforms.
For this example, we are creating a blog post list and that the DAL is created (the data class we use is “DAL.BlogPost”).
The [...]

More »