February 15, 2011 | In Development | No Comments
When using log4net in a .NET 4 project, when you compile the project you can get an error saying that it cannot find ‘log4net’ or ILog.
The solution seems to be that the framework for the project is set to ‘.NET Framework 4 Client Profile’, while what it needs is ‘.NET Framework 4′. You can change this in the project properties page.
It seems to be something to do with System.Web, but haven’t narrowed it down more than that.
February 8, 2011 | In Development | No Comments
If you want to debug more than one of the projects in your solution in Visual Studio 2010, you can set multiple startup projects. Obviously this does not apply to projects such as class libraries, which will be loaded as per your single startup project, but if you have if you have multiple independent projects, say a WPF project and a web service project, then this can be useful.
The option is available from the right-click menu on the Solution:

Which opens a dialogue allowing you to pick which projects to start:

February 3, 2011 | In Development | No Comments
When running a web application on Windows 64-bit you may receive the following the error message:
'Could not load file or assembly xxxxxx or one of its dependencies. An attempt was made to load a program with an incorrect format.'
The reason for this is the Appliction Pool in IIS is not allowing 32-bit application to run.
You can fix this in IIS Manager by selecting the Application Pool and opening the Advanced Settings dialogue, link on the right of the IIS Manager:

You can then toggle the option for 32-bit applications:
