'How can I get code example from 'Moving to Visual Studio 2010' working?

Using code example in free ebook Moving to visual studio 2010. I am unable to get the code to run. Getting error copied in below.

The code example and ebook is downloadable here

Link

This is the code I am trying to get to run: 'the correct solution can be found at Documents\Microsoft Press\Moving to Visual Studio 2010\Chapter 6\ in a folder called UserInterface-Start.'

Thanks



Solution 1:[1]

I can give you some advise when it comes to using samples and example code from a book.

Read the code, understand what is being done from a conceptual understanding, given some knowledge of the programming language and the framework they might be using, you should be able to start a new project and type out the code and use the example code, only as a reference.

I personally find it difficult to work any other way. I have always had problems opening up solutions from a couple of years ago, and sure, this solution might be in visual studio 2010, I just don't find it beneficial. The problem is that you might find yourself struggling getting the solution to open instead of actually learning the topic at hand.

I suggest you open up a blank solution using the ASP.NET template and press F5 to build and run and then work with the example code from there.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pieter Germishuys