Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9
This is the forum to discuss the Wrox book Professional ASP.NET 3.5: In C# and VB by Bill Evjen, Scott Hanselman, Devin Rader; ISBN: 9780470187579
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 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 March 13th, 2009, 09:19 AM
Authorized User
Points: 66, Level: 1
Points: 66, Level: 1 Points: 66, Level: 1 Points: 66, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2009
Posts: 12
Thanks: 5
Thanked 0 Times in 0 Posts
Unhappy [newbie] ProfileCommon ?

1. Listing 16-8

Does ProfileCommon require some namespace?
..
<%@ Page Language="C#" Import="System.Web.Profile.ProfileBase"%>
..

2. According to Pg.13 the Page Directive can have a Import attribute, however, I am getting the following error when trying to build Listing 16-8:

Error 2 Error parsing attribute 'import': Type 'System.Web.UI.Page' does not have a public property named 'import'. c:\inetpub\wwwroot\TestWebSite\Default.aspx 1

Web Profile Builder at (http://weblogs.asp.net/joewrobel/arc...-projects.aspx)
for VS 2005, seems to be related to the issue, but I'm not too sure, can you help?


Environment notes
Visual Studio 2008 SP1 + .NET 3.5 SP1

Last edited by jon80; March 13th, 2009 at 09:43 AM.. Reason: update #1
 
Old March 14th, 2009, 02:43 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

Hi there,

Import is not an attribute of the Page directive; it's an element on its own:

<%@ Page Language="C#" .... %>
<%@ Import Namespace="YourNamespace" %>

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!
The Following User Says Thank You to Imar For This Useful Post:
jon80 (March 14th, 2009)




Similar Threads
Thread Thread Starter Forum Replies Last Post
ShoppingCart is not a member of ProfileCommon sstuber BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 May 21st, 2008 04:55 PM
Why docodeSubDirectories cause ProfileCommon error Joe@Tulsa BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 March 3rd, 2008 12:15 PM
ProfileCommon not defined error flyer ASP.NET 2.0 Basics 0 September 26th, 2007 08:07 PM
ProfileCommon Compilation Error bleitner ASP.NET 2.0 Professional 1 January 15th, 2006 03:03 PM





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