Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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 October 30th, 2018, 03:06 PM
Registered User
Join Date: May 2018
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default CS0246 The type or namespace name 'BasePage' could not be found

I was getting this error in Chapter 6 and I figured I made a mistake. After lots of time and frustration, I decided to open the Planet Wrox site that I had downloaded. I was hoping that code would not have errors (since I didn't write it). However, I am still getting the error, CS0246 The type or namespace name 'BasePage' could not be found.
Is there a system setting I need to change to make this work?
Any help would be greatly appreciated!
Old October 30th, 2018, 04:53 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

Can you be more specific as to when you get this error?

BasePage is a class file you added yourself. Do you have it under App_Code/BasePage.vb/cs?

Also, how did you open the project's source that came with the book? If you open it as a Web site, it compiles fine for me and BasePage can be found.

If you provide more detail (detailed steps, VS version, how you're opening the site, when/where you get the error) I might be able to help you better.


Imar Spaanjaars
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
Ch4 unable to cast object of type asp.default_aspx to type basepage Dex69 BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 0 July 5th, 2011 05:04 PM
The type or namespace name 'connection' could not be found skhan ASP.NET 3.5 Basics 7 August 26th, 2009 12:15 PM
"The type or namespace name 'TheBeerHouse' could not be found " philthy BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 1 July 15th, 2009 06:16 PM
Compiler Error Message: CS0246: The type or namesp frmsasp All Other Wrox Books 0 September 17th, 2005 09:13 AM
error CS0246: 'AppException' could not be found Gjerstad BOOK: ASP.NET Website Programming Problem-Design-Solution 1 July 10th, 2003 02:02 AM

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