Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie Public Class Global not recognized?

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
this is the Global.asax.vb located in the App_code folder of the WEB site. I did nothing to this file. I just had my ISP load .NET 2.0 and was trying to learn it.
here is the url to a test page, delete spaces in URL
http : // pcsupportguru . com/test . aspx
using VS 2005 .NET 2.0
Error showing environment is "Keyword is not a valid identifier"
Code:
Imports System.Web
Imports System.Web.SessionState

Public Class [COLOR=Blue]Global[/color]< blue squiggly
    Inherits System.Web.HttpApplication

#Region " Component Designer Generated Code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Component Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Required by the Component Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Component Designer
    'It can be modified using the Component Designer.
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        components = New System.ComponentModel.Container()
    End Sub

#End Region

    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
        ' Fires when the application is started
    End Sub

Any ideas
TIA
PS this site has been a test site and a bunch of different .NETs have been loaded over time. Perhaps I need to clear it all out?


DougP
[r2d2] < I Built one
 
When I do that, there is a blue squiggly under the last "S" in class saying "Identifier expected"

I did not make this file, it was made by something? If its wrong something else made it wrong?

DougP
[r2d2] < I Built one
 
if this is the Global.asax, then it is wrong. There is no class declaration in a global.asax file. Try creating a new one and add everything except the class declaration.
 
There is no Global.asax.vb it is just one file. Like I said, create a new one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top