-
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.
:confused:
-
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...
:confused: