Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 15, 2011 12:48 AM by vbkid
Apr 15, 2011 12:48 AM|LINK
This one is driving me crazy, am following through TBH from the book and how to try and build the shopping cart.
But I keep having a fatal error pointing to:
"Profile is not a member of Global_asax"
The problem originates in this piece of code:
Sub Profile_MigrateAnonymous(ByVal sender As Object, ByVal e As ProfileMigrateEventArgs)
‘ get a reference to the previously anonymous user’s profile
Dim anonProfile As ProfileBase = ProfileBase.Create(e.AnonymousID)
‘ if set, copy its Theme and ShoppingCart to the current user’s profile
If anonProfile.GetPropertyValue(“ShoppingCart”).Items.Count > 0 Then
Me.Profile.ShoppingCart = anonProfile.GetPropertyValue(“ShoppingCart”)
Now, the book happens to say that the Profile is built at run-time, but this is impossible as I can't get it to run with this error.
The problem is with Me.Profile on line 6.
What's the solution?