.NET Serialization Choices

Introduction

Serialization is not a trivial problem in any language. In .NET there are quite some choices available for serializing/deserializing objects. Each available option has it’s strengths and weaknesses.

I’ve started a project on git hub SerializationTests where i’m trying to determine what is supported by which library and draw a few conclusions that should be helpful when designing serializable objects and in general when dealing… read full article

Verify that the current user is granted access in the appropriate allowAccounts section of SMSvcHost.exe.config

Quick tip that maybe will save others time:

In Windows 7 ( and maybe Vista) when hosting a WCF Service in a console application AS A USER and not as administrator, you might get an exception telling you that you don’t have access to register with the net.tcp port sharing service.

To resolve this problem:

- Download PsGetSid ( this will give you the … read full article

New Github account

I’ve opened a Github account where i keep some stuff I’ve been playing with recently. At the moment is mostly related to doing DDD with CQRS and Event Sourcing.

I’ve created a sample project to demonstrate the concepts. Here is a short description of the sample:

Sample project demonstrating CQRS & Event Sourcing =================================================

The sample uses the following projects from Jonathan Oliver (https://github.com/joliver)

*… read full article

Hardware-based brute force attacks

I’ve found this image in a PDF presentation document and i feel like sharing:

Hardware Brute Force Attacks

Hardware-based brute force attacks

Source: http://www.tarsnap.com/scrypt/scrypt-slides.pdf by Colin Percival… read full article

Log4Net not logging errors to db

This is a short post about logging errors to db with log4net.

I’ve recently been bitten by a bug or better said miss configuration of log4net. I’m using log4net with database logging and file logging in a project and i was wandering why there are no error messages logged in the db when they are logged in the log files configured.

At one point it hit me: Transactions… read full article

Context Matters

The next paragraph made me remember of a lot of hours of discussions with various developers:

If you’re arguing with me that NHibernate is the wrong tool because you’re writing reporting applications, just say “I write reporting applications.”  And when I say “I think NHibernate is the best tool for persisting domain models,” I should probably talk about that specific context.  And definitely, when you say “Linq to Sql rocks!”… read full article

NServiceBus with NHibernate and MySQL

In the last project I have been working i finally got a chance to design and implement a solution based on NServiceBus and NHibernate, two tools I’ve been watching for a while but never got a chance to play with in more than sample applications. For some external reasons I’ve been forced to use MySQL as a database server in this project.