Author Archives: Tudor

On assumptions and formats

In .NET (and any other framework for that matter), it’s better to never assume anything, but to check twice. Let’s take an example – what do you think, will the following unit test always pass? . . . . . … Continue reading

Posted in .NET, C# | Tagged , , , | Leave a comment

How developers start to ignore code smells

Many people wonder how some developers blissfully ignore some best practices when writing code, or aren’t too bothered when they see a code smell in their project. There are many explanations, but an old one is the code they see … Continue reading

Posted in .NET, IT | Tagged , , , , | Leave a comment

Service Bus for Windows Server: How to define authorization rules at topic level

This is just a ‘reminder’ post for myself (and maybe others) when encountering the same issue. For Service Bus 1.0 for Windows Server (not Azure), at least on a server not joined to a domain, when using local (workgroup) Windows … Continue reading

Posted in .NET | Tagged , , , , | 1 Comment

On confusing error messages

This morning I stumbled upon a strange error message, while running a .NET console application: The application has failed to start because its side-by-side configuration is in correct. Please see the application event log or use the command-line sxstrace.e xe … Continue reading

Posted in .NET, C# | Tagged , , , | Leave a comment

ADO.NET connection resiliency

In a previous post I mentioned a new feature that was going to be added in .NET Framework 4.5.1: ‘ADO.NET connection resiliency’. Now that .NET 4.5.1 is RTM, I decided to check what exactly is this all about.I wrote a … Continue reading

Posted in .NET, C# | Tagged , , , | 3 Comments

Connection resiliency in Entity Framework 6

The EF team has recently announced the new features added to EF 6 beta 1, and among them is one I found interesting: connection resiliency. Despite the fancy name, it’s a simple concept: having built-in support for automatically retrying an … Continue reading

Posted in .NET, Azure, Entity Framework, SQL Server | Tagged , , , | 1 Comment

Some multi-threading gotchas

Most programmers know that they must make their code thread-safe when accessing shared data from multiple threads at the same time. However, there are some cases which are not so obvious and which might cause very subtle bugs that appear … Continue reading

Posted in .NET, C# | Tagged , , | Leave a comment