Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 February 22nd, 2007, 08:10 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default createuserwizard / incorporating personalisation..

ref Professional ASP.net 2.0 book page 592

I did add steps in the createuserwizard control to add additional step and textbox control to add user personal info (adress,first name......). I did modified the web.config and add properties. VSWD 2005 tell me the following errors

Error 80 'FirstName' is not a member of 'System.Web.Profile.DefaultProfile'.


How can I fix this error

note: my SQL2005 db includes the ASPNETDB.MDF tables and the createuserwizard was working fine before to add additional steps.

Also, I would like to know where this contol will save the additional info.



portion of the web.config file

 <profile>
        <properties>
          <add name="FirstName"/>
        </properties>
 </profile>

note: my SQL2005 include the ASPNETDB.MDF tables and the createuserwizard was working fine before to add additional steps.
 
Old February 23rd, 2007, 07:00 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did finally resolved my problem

in the web.config the profile definition was pointing to a different
path (and different system.web).

Was
<location path="Admin">
        <system.web>
                  <profile enabled="true">
                    <properties>
                         <add name="FirstName" type="string"/>
                    </properties>
                  </profile>
            <authorization>
                <allow roles="Administrators"/>
                <deny users="*"/>
            </authorization>
        </system.web>
    </location>


Now it point to the root
</connectionStrings>
    <system.web>
    <profile enabled="true">
      <properties>
        <add name="FirstName" type="string"/>
      </properties>
    </profile>:)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Incorporating lookup function in macro mikelever Excel VBA 12 November 13th, 2007 01:25 PM
VB: Ch4 p123 How It Works (Personalisation) Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 October 19th, 2007 07:23 AM
Chapter 1 exercise questions: incorporating date dcr BOOK: Beginning SQL 0 October 11th, 2007 09:07 AM
CreateUserWizard michaelcode ASP.NET 2.0 Basics 1 August 19th, 2006 09:04 AM
CreateUserWizard zoltac007 ASP.NET 2.0 Basics 4 June 1st, 2006 04:08 PM





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