Err.Number is always 0

Discussion in 'Classic ASP' started by xrum, Feb 17, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. What I am trying to do is to include a file in all my other files, that will catch errors.

    my Err.number always shows up as 0, and everything else is always blank, even if the error occurs.

    i tried putting it on the page that gives the error, but i'm getting the same thing.

    Code:
     Response.Buffer=True 
    'On Error Resume Next 
    response.Write(Err.number) 
    response.Write(Err.description)
    on the screen i see the following:


    Code:
    PHP Code:
     0 
    Microsoft OLE DB Provider for SQL Server error '80040e14' 
    
    Invalid column name 'mmm'. 
    
    /includes/xxxx.asp, line 11
    am i missing something? i went through some tutorials but can't figure it out...
    is there something i need to include for this to work?

    Thanks again!
     
  2. mjp

    mjp

    Well...it would appear that you are missing column name 'mmm' in your database.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page