Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
  #2 (permalink)  
Old March 14th, 2009, 02:43 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

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

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
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

All times are GMT -4. The time now is 02:15 AM.

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