I have created a managed C++ extension that uses the Crypto APIs. The first call is to CryptAcquireContext(hProv, CSP_KEYSET, MS_DEF_PROV, PROV_RSA_FULL, 0)<BR>When this managed C++ extensn DLL is called from a C# application everything works.<BR>However, when using the same code in a ASPX.CS page the call to AcquireContext fails.<BR>I am sure this has something to do with security. I added code in the ASPX.CS page to request SecurityPermission to call unmanaged code, but it still fails.<BR>Anyone have any ideas about this?