I uploaded an aspx page to my web hosting site for the first time and get a server error when I request the page. The error report says the error is on line 1 of Buy.aspx.vb:
"Make sure that the class defined in this code file matchesthe 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)"
The first several lines of Buy.aspx.vb are:
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Calculate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calculate.Click
Dim serNumB64 As String = UserSerNumB64.Text
Dim serNum, serNumEnc As Long
Dim i As Integer
Dim ctrlByte As Byte
Dim byteToEncode As Byte
This code works fine locally thorugh Visual Web Developer so I'm thinking there must be some library or framework component that's missing on the server. The hosting company is telling me that they've set up my account for ASP.NET 2.0 and I should be able to specify VB coding, but they don't know what more to say do because they don't have any ASP coders there.
Does anyone have an idea what might be going on?
Thanks,
steva
Start Free Trial