Saturday, February 25, 2012

operating system does not support encryption

Hi All,

Iam using HP iPAq hw6500 series PDA. My application in installed in the PDA and when i try to open the application by taping on the application icon, Iam getting the following error.

Error: 0x80004005 E_FAIL
Native Error: (25080)
Description: The operating system does not support encryption. [,,,,,]
Interface defining error: IID_IDBInitialize
Param. 0: 0
Param. 1: 0
Param. 2: 0
Param. 3:
Param. 4:
Param. 5:

The application is builded on embedded VC++4.0

Can anyone help to figure out the possible reason for this error?

Thanks & Regards

Rajeev

It appears this is coming from SQL Server CE, moving to respective forum.

Please post some code in which this failure happens.

|||

Hi,

Thanks for replying.

Below mentioned is the code snippet (in red) where we are encountering the error:

void CStartUp::CreateDatabase(){
CString path = Application.GetDatabasePath();
path = path.Left(path.ReverseFind('\\'));
CreateDirectory(path, NULL);
CWaitCursor cur;

TRY{
// Create database
DeleteFile(Application.GetDatabasePath());
{
CComVariant vtConn;
CComQIPtr<_Catalog> catalog;
ThrowADOException(catalog.CoCreateInstance(__uuidof(Catalog)), constSourceFile);
CString str;
#if defined(_WIN32_WCE_EMULATION) || defined(_WIN32_WCE_CEPC)
str.Format(L"provider=microsoft.sqlserver.oledb.ce.2.0;data source=%s", Application.GetDatabasePath());
#else
str.Format(L"provider=microsoft.sqlserver.oledb.ce.2.0;data source=%s;SSCE:Database Password='test';SSCE:Encrypt Database=TRUE", Application.GetDatabasePath());
#endif
ThrowADOException(catalog->Create((WCHAR*)(LPCTSTR) str, &vtConn));
}
m_Database->Open(Application.GetDatabasePath());

.....

.....

......

Regards

Rajeev

|||

OK, so it is SQL CE. It looks like your device does not support encryption you've requested in the connection string. Normally PPC 2003 should have required 128 bit encryption pack, but perhaps this one does not (e.g. due to export restrictions).

Please try it without encryption to make sure everything else works. If it does, you probably would need another device to run encryption as I'm not aware of separate encryption pack availability for PPC 03. You also may try PPC 2000/2002 one – search Microsoft’s downloads to find it.

|||

Hi All,

I am working on a PPC 2003 application.

The problem that I am encountering is that,when I install my application the root certificates on the PDA are getting deleted.

In my application, I am using an encrypted database(.sdf),So the application is not working,instead the database is getting deleted.

My application istallation package consists of :

The application,adoce 3.1 and ssce 2.0.

But When I uninstall my application,the root certificates are re-appearing on the PDA.

Please let me know what could be the possible reason for this scenario.

Any suggestion to resolve this will be greatly helpful.

Thanks & Regards

Rajeev

No comments:

Post a Comment