Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 1st, 2019, 11:01 AM
Banned
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jul 2019
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #2 (permalink)  
Old July 2nd, 2019, 02:09 PM
Imar's Avatar
Wrox Author
Points: 72,035, Level: 100
Points: 72,035, Level: 100 Points: 72,035, Level: 100 Points: 72,035, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,079
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.