I have an Encryption App which works with VB6. No errors - squeaky Clean.
When I access the DLL using classic ASP, the CryptAcquireContext Fails.

CryptAcquireContext(m_CSP_Provider, ByVal sContainer, ByVal sProvider, PROV_RSA_FULL, 0)
and
CryptAcquireContext(m_CSP_Provider, ByVal sContainer, ByVal sProvider, PROV_RSA_FULL, CRYPT_NEWKEYSET)

The definitions for this are:
Private m_CSP_Provider As Long
Private Enum EC_PROVIDER
[No Providers]
[Microsoft Base Cryptographic Provider v.1]
[Microsoft Enhanced Cryptographic Provider]
End Enum

Private Const MS_DEF_PROV = "Microsoft Base Cryptographic Provider v1.0"
Private Const MS_ENHANCED_PROV = "Microsoft Enhanced Cryptographic Provider v1.0"
Private Const PROV_RSA_FULL = 1
Private Const CRYPT_NEWKEYSET = &H8

Private Declare Function CryptAcquireContext Lib "advapi32.dll" Alias "CryptAcquireContextA" ( _
phProv As Long, pszContainer As String, pszProvider As String, _
ByVal dwProvType As Long, ByVal dwFlags As Long) As Long


Both calls fail to get the provider.

Anyone got some ideas?