-
This blogpost is part of a series Template Method Pattern explanation Template Method Pattern example Template Method Pattern advanced So we’ve looked at the Template Method Pattern with an implementation as really simple example, and another real world implementation. We have additional requirements...
-
This blogpost is part of a series Template Method Pattern explanation Template Method Pattern example Template Method Pattern advanced So in my previous post I explained how I change the template method pattern a bit with protected abstract methods. In this post I’ll explain why I used this pattern and...
-
When building an ASPapplication that generates Word documents, it was working fine on the local machine. A windows XP installation with Office 2007. When we deployed it to windows 2008 (64 bit) and Word 2007 we saw that Documents.Open returned null. Other than this, there are no exceptions. The code...
-
When installing SQL Server 2008 R2 on a Windows XP development machine that has been around for quite some time, I got an error stating an unhandled exception occured in the application (see image). The error showed up directly upon startup and read: An error occurred creating the configuration section...
-
How do I test a method that returns void? For example a method like this. public void Process(int leadId) { decimal price = _calculator.CalculateNormalLead(leadId); Lead lead = new Lead(leadId, price); _leadRepository.Save(lead); } How to test what the state of the lead object is? This is a question...
-
I’ve written about transactions, the TransactionScope in .NET before. System.Transactions : An introduction System.Transactions : Unit Testing System.Transactions : Promotable Enlistment System.Transactions still not working System.Transactions : Read Uncommitted System.Transactions : What to choose...
-
When writing WCF services, most of us find ourselves writing quick test applications. To give you more time to do what a developer should be doing (adding business value to the project) the Visual Studio team added a WCF test client that can help you reach goals faster. This is not a very difficult application...
-
When starting to dig into nServiceBus, you’ll notice almost every single example is executed via the NServiceBus.Host.exe instead of doing it in-process. In my opinion this might be more likely on the receiving side (the subscriber) that just does some stuff in the background. But on the sending side...
-
Saving a file from Silverlight using the SaveFileDialog , added in Silverlight 3, is easy. If you’re used to desktop development however, you might find yourself getting a SecurityException with the message ‘File operation not permitted. Access to path 'xxx' is denied.’. Here’s why: In desktop...
-
Here’s a quick Visual Studio tip for you… I frequently search for a specific text in my solution because I need to do something in all places where that text occurs. Today I found out how you can open all the files that are mentioned in the Find Results window. Search for the text you’re...
-
Recently I was working on a sandboxes solution, which included a WebTemplate ( Vesa "Vesku" Juvonen wrote a really nice post about it), but I couldn't deploy it, the followin error was displayed into Visual Studio 2010: Error occurred in deployment step 'Add Solution': Exception...
-
Just a small post to start the new year... and let it be a good one! When opening a XAML document in Visual Studio, it opens in split view by default. This might become annoying when you have a large XAML document, because all the content needs to be rendered before you can get some work done. Here’s...
-
For those working on Silverlight project (including myself) this list comes in very handy when setting up your development environment. http://www.timmykokke.com/silverlight-downloads/ Thanks Timmy.
-
Although the feature has been around since ASP.NET 2.0, I still meet people that don't know and/or use app_offline.htm. Do you know (and use) the feature...? When working on an ASP.NET web application, you should notify your visitors in a decent way that your application is down. There's a nice...
-
Because we were still using an old Visual Studio 2005 solution which included a Web Site project, it was time to upgrade. We upgraded our Visual Studio 2005 solution to Visual Studio 2010 (and .NET 4.0), converted the Web Site Project to a Web Application Project and then, of course, the AjaxControlToolkit...