Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2019, 11:01 AM
joshuagomes
Guest
 
Posts: n/a
Default How to run the example source code???

Sorry, this is a newbie issue.

I've worked up to chapter 15 and my code works fine.

However, I would like to see what the final site looks like. I have downloaded the source code from Wrox. How do I run the code for Chapter 19? I tried creating a new Web Application project in Visual Studio 2010. I copied and pasted the files from the Chapter 19 folder into my Visual Studio project (overwriting existing folders/files), but when I try to view Default.aspx in the browser I get the following kinds of errors:

Error 9 The type or namespace name 'BasePage' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Fei\Documents\Visual Studio 2010\Projects\WebApplication1\WebApplication1\Logi n.aspx.cs 8 30 WebApplication1Error 8
The type or namespace name 'PlanetWroxModel' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Fei\Documents\Visual Studio 2010\Projects\WebApplication1\WebApplication1\Revi ews\Default.aspx.cs 7 7 WebApplication1

Why would these errors appeared when I had copied and pasted the source code into my project?

What do I need to do to run the Wrox source code?
 
Old July 2nd, 2019, 02:09 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Judging by the error message, it looks like you created a Web Application (File | New Project) instead of a web site (File | New Website).

Chapter 1 discusses the differences in detail, while the intro shows you how to open the source code.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!




Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to save html page source code? Jaymond Flurrie Access VBA 2 July 2nd, 2019 06:04 PM
Source Code? basementjack BOOK: Professional PHP Design Patterns 3 July 17th, 2013 05:07 AM
How to see source code of open-source C# in microsoft visual studio ? fakedead C# 2012/5.0 General Discussion 3 January 13th, 2013 01:18 AM
VB Source code in 98 vs. XP amitmohod Beginning VB 6 2 December 8th, 2005 07:42 PM
source code redeye2 Pro VB.NET 2002/2003 0 October 26th, 2004 09:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.