Error Extending System.Web.UI.Page arrgghhh HELP Please ;)

Last post 11-14-2007 3:30 AM by dudesdoingdotnet. 2 replies.

Sort Posts:

  • Error Extending System.Web.UI.Page arrgghhh HELP Please ;)

    09-07-2007, 6:27 AM
    • Member
      21 point Member
    • DottyWelsh
    • Member since 02-21-2007, 9:18 AM
    • Wales
    • Posts 45

    I am doing everything right i think, but my system keeps throwing stupid errors and i could really do with fixing it, cos its stopping me develop.

    I have had NO problem doing this, but today my system is playing up, anyone got any ideas

     

    costingHelper.aspx.vb

      

    1    Namespace Blah
    2
    3 Partial Public Class costingHelper
    4
    5 Inherits System.Web.UI.Page
    6
    7
    8 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    9
    10 End Sub
    11
    12 End Class
    13
    14 End Namespace
     
     

    costingHelper.aspx

     

    1    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="costingHelper.aspx.vb" Inherits="Blah.costingHelper" %>
    2
    3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    4
    5 <html xmlns="http://www.w3.org/1999/xhtml" >
    6 <head runat="server">
    7 <title>Untitled Page</title>
    8 </head>
    9 <body>
    10 <form id="form1" runat="server">
    11 <div>
    12
    13 </div>
    14 </form>
    15 </body>
    16 </html>



    costingHelper.aspx.designer.vb

     

    1    Option Strict Off
    2 Option Explicit On
    3
    4
    5
    6 '''<summary>
    7 '''costingHelper class.
    8 '''</summary>
    9 '''<remarks>
    10 '''Auto-generated class.
    11 '''</remarks>

    12 Partial Public Class costingHelper
    13
    14 '''<summary>
    15 '''form1 control.
    16 '''</summary>
    17 '''<remarks>
    18 '''Auto-generated field.
    19 '''To modify move field declaration from designer file to code-behind file.
    20 '''</remarks>

    21 Protected WithEvents form1 As Global.System.Web.UI.HtmlControls.HtmlForm
    22 End Class
    23

    I have tried messing about with namespaces / no namespaces. Deleting Bin files etc but it comes up with the following error on Compile, even though the VB file inherits

    Inherits System.Web.UI.Page
     
    grr anyone got any ideas cheers
     
    Error  
     

    Parser Error Message:
    'Blah.costingHelper' is not
    allowed here because it does not extend class
    'System.Web.UI.Page'.

    Source Error:


    Line 1:  <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="costingHelper.aspx.vb" Inherits="Blah.costingHelper" %>
    Line 2:
    Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    Source File: /"folders removed"/Integration/costingHelper.aspx    Line: 1

     

    Im sure it was working yesterday

     

    Andrew 

     
     
     

     

  • Re: Error Extending System.Web.UI.Page arrgghhh HELP Please ;)

    09-07-2007, 10:26 PM
    Answer
    • Star
      14,584 point Star
    • david wendelken
    • Member since 07-27-2005, 11:47 PM
    • Fayetteville, NC, USA
    • Posts 2,082
    • Moderator

    I noticed that in some places you mention Blah.costingHelper and in others you have 

    Blah.VPSecure.costingHelper.
     
    It needs to match everywhere. 
    If this answered your question, be sure to mark it as the answer. That way, everybody after you will know it's the answer also!
  • Re: Error Extending System.Web.UI.Page arrgghhh HELP Please ;)

    11-14-2007, 3:30 AM

     thanks guys for giving the light...

    ..sort of same scenario...

     3/4 solved my probs

Page 1 of 1 (3 items)