Error: host aspnet framework doesn't include class

Last post 08-11-2003 7:29 PM by hermitw. 0 replies.

Sort Posts:

  • Error: host aspnet framework doesn't include class

    08-11-2003, 7:29 PM
    • Member
      705 point Member
    • hermitw
    • Member since 07-18-2003, 7:43 AM
    • Posts 141
    For some reason, an application that runs fine on localhost produces the following error on my hosting provider. Opening the "project from web" in Visual Studio shows 'hlNavToUrl' as a member of redirecturl class in the class view / browser. This is driving me a bit crazy as I can't figure out or find any changes between the two in terms of code, database entries, etc.

    What is the "ASP." prefix? Does this mean the compiler is looking for redirecturl in the wrong class library? If so, what code causes that to happen?

    Here is the compiler error report and below is the code from the redirecturl.ascx.

    Server Error in '/home' Application.
    --------------------------------------------------------------------------------

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC30456: 'hlNavToUrl' is not a member of 'ASP.redirecturl_ascx'.

    Source Error:



    Line 1: <%@ Register TagPrefix="uc1" TagName="DesktopModuleTitle" Src="../../controls/DesktopModuleTitle.ascx" %>
    Line 2: <%@ Control Language="vb" AutoEventWireup="false" Codebehind="RedirectURL.ascx.vb" Inherits="RedirectURL" %>
    Line 3: <%@ Register TagPrefix="Portal" TagName="Title" Src="~/controls/DesktopModuleTitle.ascx"%>

    --------------------------------
    Redirect.ascx

    <%@ Register TagPrefix="Portal" TagName="Title" Src="~/controls/DesktopModuleTitle.ascx"%>
    <%@ Control Language="vb" AutoEventWireup="false" Codebehind="redirecturl.ascx.vb" Inherits="redirecturl" %>
    <%@ Register TagPrefix="uc1" TagName="DesktopModuleTitle" Src="../../controls/DesktopModuleTitle.ascx" %>
    <uc1:DesktopModuleTitle id="DesktopModuleTitle1" runat="server" EditText="Edit"></uc1:DesktopModuleTitle>
    <asp:label runat="server" id="lbWelcomMessage"></asp:label>
    <asp:hyperlink runat="server" id="hlNavToUrl"></asp:hyperlink>

    -------------------------------------------------
    Redirect.ascx.vb

    Public MustInherit Class redirecturl
    Inherits System.Web.UI.UserControl
    Protected WithEvents lbWelcomMessage As System.Web.UI.WebControls.Label
    Protected WithEvents hlNavToUrl As System.Web.UI.WebControls.HyperLink

    #Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
    'CODEGEN: This method call is required by the Web Form Designer
    'Do not modify it using the code editor.
    InitializeComponent()
    End Sub

    #End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    'Put user code to initialize the page here
    End Sub

    End Class

Page 1 of 1 (1 items)