Results 1 to 2 of 2

Thread: ASP Err.Number?

  1. #1

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    ASP Err.Number?

    Have this code in an ASP which calls functions in a dll:

    'Check for error values
    If Err <> 0 Then
    Select Case Err.Number
    Case (ERR_INVALID_USER_PASSWORD_SUPPLIED)
    :
    :
    :
    End If


    The problem is, that for some reason, the ASP is not picking up the Err.Number properly or something, as it ALWAYS uses the first Case in the Select block. I have reordered the Cases, and it always chooses the first one, despite the fact that the internals of the dll raise completely different errors.


    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  2. #2

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    I think the problem is something to do with the ERR constants I created in my .dll.

    I have tried to include the .dll type library with the following in the global.asa file:

    <!-- METADATA
    TYPE="typelib" FILE="C:\Inetpub\wwwroot\nrr\NRRDBAccess.dll" VERSION="1.0"
    -->

    but it doesn't appear to work...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width