Summary
When the LaserFiche server connects to an instance of Microsoft SQL Server, you may receive the following error message:
MSSQL Server Logon. Connection failed. SQL State 42000 SQL Server error 552
[Microsoft][ODBC SQL Server Driver][SQL Server]CryptoAPI function 'CryptAcquireContext' failed.
Error 0x8009001d: Provider DLL failed to initialize correctly.
Cause
This error can occur because of a problem with the OLE32.dll file. If the default load address is occupied, the OLE32.dll file dynamically changes, which returns this error message.
This error can occur if the server machine meets all of the following conditions:
Resolution
This is a documented Microsoft issue. Configure Microsoft SQL Server or MSDE to load the OLE32.dll file during the server startup process. This workaround is taken from the Microsoft article listed in the More Information section.
cmd
osql -E -S Computer_Name\Laserfiche
If successful, go to step 12.Note: If you are using the full version of SQL Server, remove Laserfiche from the previous line.
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows NT" /maxmem=96
osql -U username -P password -S Computer_Name\Laserfiche
Note: If you are using the full version of SQL Server, remove Laserfiche from the previous line.
SP_PROCOPTION 'sp_MSgetversion', 'STARTUP', 'TRUE'
GO
2002-04-30 12:09:28.00 spid 3 Launched startup procedure 'sp_MSgetversion'
The Errorlog file can be found in the LOG folder of your SQL Server Installation folder. The default for MSDE is C:\Program Files\Microsoft SQL Server\MSSQL$LASERFICHE\LOG. The default for SQL Server is C:\Program Files\Microsoft SQL Server\MSSQL\LOG. If you do not see this in the Errorlog file, repeat step 10 through step 13.Important: If you performed step 6 to reduce the memory that the operating system registers, modify the Boot.ini file, but remove the /maxmem parameter that you originally added in step 6. Restart the computer, and then verify that Windows NT 4.0 can now see all the physical memory that is on the computer.
More Information
For additional information on error 0x8009001d, visit the Microsoft Knowledge Base and search for article 321459 or click the article number below:
321459 PRB: The CryptoAPI Function Generates an Error When You Try to Connect to an Instance of SQL Server 2000