Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

CE 4.0 delay when CoCreateInstance on PC without internet

$
0
0

Hi,

When I load the sqlceoledb40.dll on a machine without internet connectivity (using CoCreateInstance) there is a 10s delay while the system tries to check the Certificate Revocation List.

The only way around this I have found is to call WintrustSetRegPolicyFlags to set the global WTPF_IGNOREREVOKATION flag. However I do not really want to change a global setting.

SQL CE 3.5 does not have the delay. have tried 4.0sp1 and it is the same.

Is this a bug with 4.0? Is there a cleaner way around this problem?

Sample C++ code below.

Thanks - Phil

IDBInitialize* pIDBInitialize = NULL;

    HRESULT hr = E_FAIL;

    // Create an instance of the OLE DB Provider
    hr = CoCreateInstance(CLSID_SQLSERVERCE4_0,
                          0,
                          CLSCTX_INPROC_SERVER,
                          IID_IDBInitialize,
                          (LPVOID*)&pIDBInitialize);


Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>