Hi every Body ,
I need your help , my friend left office leaving ASP.net website uncompleted.
I am facing problem with this line:

1---:> This File: GenericError.aspx

'ASP.global_asax' does not contain a definition for 'exception'
D:\ICTM_PRO\ict-edu\GenericError.aspx 24

<% Response.Write("<br/><div style=\"color:#C6E2FF\">" + 
ASP.global_asax.exception.StackTrace + "</div><br/>"); %>

2---:> This File: Global.asax

<%@ Application Inherits="ict_Edu.Global" Language="VB" %>



2---:> This File Global.asax.vb


[code]


Imports System.Web
Imports System.Web.SessionState


Namespace ict_Edu


Public Class [Global]
    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

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

    Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
        ' Fires at the beginning of each request
    End Sub

    Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs)
        ' Fires upon attempting to authenticate the use
    End Sub

    Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
        ' Fires when an error occurs
    End Sub

    Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
        ' Fires when the session ends
    End Sub

    Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
        ' Fires when the application ends
    End Sub

End Class

End Namespace

How to resolve this Issue Plz Help.

Looks like your global.asax.vbis not a proper one. It does not have the exception definition.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.