Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

BC30002 error

$
0
0

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?



Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>