<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="0.92">
<channel>
	<title>cmb-web.co.uk</title>
	<link>http://www.cmb-web.co.uk</link>
	<description></description>
	<lastBuildDate>Sat, 07 May 2011 15:18:52 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Using NuGet with Ninject MVC3</title>
		<description>If you have not used NuGet yet I strongly recommend you have a look.  It's a Visual Studio extension that simply takes the hassle out of having to download, install, reference etc. libraries and third party tools.  It will automatically update everything for you in your project.  Have a look ...</description>
		<link>http://www.cmb-web.co.uk/index.php/2011/05/using-nuget-with-ninject-mvc3/</link>
			</item>
	<item>
		<title>Error finding &#8216;log4net&#8217; library</title>
		<description>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 ...</description>
		<link>http://www.cmb-web.co.uk/index.php/2011/02/error-finding-log4net-library/</link>
			</item>
	<item>
		<title>Multiple startup projects in Visual Studio 2010</title>
		<description>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 ...</description>
		<link>http://www.cmb-web.co.uk/index.php/2011/02/multiple-startup-projects-in-visual-studio-2010/</link>
			</item>
	<item>
		<title>Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format.</title>
		<description>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 ...</description>
		<link>http://www.cmb-web.co.uk/index.php/2011/02/could-not-load-file-or-assembly-or-one-of-its-dependencies-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/</link>
			</item>
	<item>
		<title>Formatting text directly in XAML</title>
		<description>You can format text strings directly in the XAML code of a WPF application.

For example, you can use standard .NET formatting such as currency and date:

&#60;TextBlock Text="{Binding Amount, StringFormat={}{0:C}}"/&#62;
&#60;TextBlock Text="{Binding Date, StringFormat={}{0:dd/MM/yyyy}}"/&#62;

The empty {} after the StringFormat= escapes the text before the formatting string.

You can add text in front of ...</description>
		<link>http://www.cmb-web.co.uk/index.php/2010/08/formatting-text-directly-in-xaml/</link>
			</item>
	<item>
		<title>Unit testing internal methods</title>
		<description>When unit testing applications you write tests for the exposed public methods.  Philosophically this is correct as you need to test the functionality exposed by your class to the consuming application, and any private or internal functions that use functionality that also needs testing should be discrete from this class. ...</description>
		<link>http://www.cmb-web.co.uk/index.php/2010/08/unit-testing-internal-methods/</link>
			</item>
	<item>
		<title>Android numeric input</title>
		<description>To restrict the input for an EditText to a numeric value, you can add the following to the layout file:

&#60;EditText
...
android:singleLine="true"
android:inputType="numberDecimal"
...
&#62;

Then use, for example, Double.parseDouble(...) to retrieve the value in code.

Incidentally, the documentation recommends avoiding floats and using double instead. </description>
		<link>http://www.cmb-web.co.uk/index.php/2010/07/android-numeric-input/</link>
			</item>
	<item>
		<title>main.out.xml: Error parsing XML: no element found</title>
		<description>When you build and run your Android application in Eclipse you can get the following error message:

...res\layout\main.out.xml:1: error: Error parsing XML: no element found

This occurs when you try and run the application from the main.xml layout file. The application cannot run from here and needs to be run from the ...</description>
		<link>http://www.cmb-web.co.uk/index.php/2010/04/mainoutxml-error-parsing-xml-no-element-found/</link>
			</item>
	<item>
		<title>Error registering WCF host in Windows Vista (HTTP could not register URL http://+:80)</title>
		<description>This is an error encountered by one of my team when trying to run up a WCF host on a Windows Vista machine.  The actual exception is an

AddressAccessDeniedException

with the error message

HTTP could not register URL http://+:80/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)

The ...</description>
		<link>http://www.cmb-web.co.uk/index.php/2010/03/error-registering-wcf-host-in-windows-vista-http-could-not-register-url-http80/</link>
			</item>
	<item>
		<title>C# Image from a byte array (and back again)</title>
		<description>Quick code sample for transforming a .NET System.Drawing.Image into a byte array:

public byte[] imageToByteArray(Image imageIn)
{
    MemoryStream ms = new MemoryStream();
    imageIn.Save(ms,System.Drawing.Imaging.ImageFormat.Gif);
    return ms.ToArray();
}
and conversely, turning a byte array into an image:

public Image byteArrayToImage(byte[] byteArrayIn)
{
    MemoryStream ms = new MemoryStream(byteArrayIn);
    Image returnImage = Image.FromStream(ms);
    return returnImage;
}
 </description>
		<link>http://www.cmb-web.co.uk/index.php/2010/03/c-image-from-a-byte-array-and-back-again/</link>
			</item>
</channel>
</rss>

