I am posting in this forum because I think the issue is something I am doing or not doing as the code comes from a book. I have a simple sample page from a book. Everything works like it should when ran within visual studio, but when I build the site and try accessing it from outside VS I get the above error.
From the aspx.vb file:
Imports System.Data Partial Class Order Inherits System.Web.UI.Page Private selectedProduct As Product
From product.vb in App_Code is a class that was added to the solution:
Imports Microsoft.VisualBasic Public Class Product Public Property ProductID As String Public Property Name As String Public Property ShortDescription As String Public Property LongDescription As String Public Property UnitPrice As Decimal Public Property ImageFile As String End Class
It works within VS, but when I build the site it craps out.
The Private selectedProduct As Product errors with BC30002. Line 4: Inherits System.Web.UI.Page Line 5: Line 6: Private selectedProduct As Product Source File: aspx.vb Line 6
I added the class to the project, but it seems the main page doesn't know it is there. Any ideas what I might have missed?