Hi there, I still use and love this book, and I'm hoping someone can help - I have built and used the shoppingcart code and it works perfectly - however when I create the code within a web application project (VS2010), I get an error of "Unable to cast object of type 'SHOPPINGCART' to type 'fasc.SHOPPINGCART.":
Code:
HttpContext.Current.Session("Shoppingcart") = New SHOPPINGCART()
End If
Return CType(HttpContext.Current.Session("ShoppingCart"), SHOPPINGCART)
End Get
End Property
What am I missing? I'm converting a website I used the code in to the web application project model, but I'm stuck at this bit. Very frustrating!