none
SQL CE 4.0 Exception. System.Data.SqlServerCe.SqlCeSHA256.Initialize()....

    Question

  • Hi All,

    I created a Setup of basic WPF application (By using SqlCe as backend) with login window, but when I open the connection with SqlCe DataBase to check the credentials getting this Exception:  "Operation is not supported on this platform."

    With my application setup I have integrated the following things :

    1. Microsoft .Net Framework 4.0

    2. Microsoft .Net Framework 4.0 Client Profile

    3. SQL Server Compact 4.0

    4. Windows Installer 3.1

    as Prerequisite,  Even then this exception is coming. 

    I checked the application in various system with window 7, it is working fine. but only 2 systems (2 window 7 in which Visual Studio 2010 is not installed) this exception is coming. This application's target platform is Windows 7

    Here is Exception message.

    Operation is not supported on this platform
    
    at System.Data.SqlServerCe.SqlCeSHA256.Initialize()
       at System.Data.SqlServerCe.SqlCeSHA256..ctor()
       at System.Data.SqlServerCe.HashProvider.CalculateHash(String filePath)
       at System.Data.SqlServerCe.HashProvider.MatchHash(String filePath)
       at System.Data.SqlServerCe.NativeMethods.IsValidBinary(String filename)
       at System.Data.SqlServerCe.NativeMethods.ValidateNativeBinary(String modulePath)
       at System.Data.SqlServerCe.NativeMethods.LoadValidLibrary(String modulePath)
       at System.Data.SqlServerCe.NativeMethods.LoadNativeBinariesFromPrivateFolder(String privateInstall)
       at System.Data.SqlServerCe.NativeMethods.LoadNativeBinaries()
       at System.Data.SqlServerCe.SqlCeConnection..ctor()
       at System.Data.SqlServerCe.SqlCeConnection..ctor(String connectionString)
       at POP.Data.DBManager.AuthenticateLogin()
       at POP.Business.POPBusiness.AuthenticateLogin(UsersEntity obj)

    Please help me.

    Thank you in advance.

    Thursday, September 05, 2013 1:30 PM

Answers

  • It could be related to broken registry keys relating to encryptuion providers, or the presence of SmartCard software, that breaks the built-in encryption libraries.

    Please mark as answer, if this was it. Visit my <a href="http://erikej.blogspot.com"> SQL Server Compact blog</a>

    Tuesday, September 10, 2013 6:42 AM
    Moderator

All replies

  • Who can help me? ??
    Friday, September 06, 2013 1:57 PM
  • Could you provide more details about the OS where this occurs (Language edition, is it an "N" version, SP1 installed) ?

    Please mark as answer, if this was it. Visit my <a href="http://erikej.blogspot.com"> SQL Server Compact blog</a>

    Monday, September 09, 2013 12:11 PM
    Moderator
  • Hi ErikEj,

    Thank you very much for replying me.

    Here is my OS information:

    Windows 7 Professional 64 bit, Language: English.

    I have installed SP1. But I don't know what is 'N' version.

    Thank you.

    Monday, September 09, 2013 2:12 PM
  • It could be related to broken registry keys relating to encryptuion providers, or the presence of SmartCard software, that breaks the built-in encryption libraries.

    Please mark as answer, if this was it. Visit my <a href="http://erikej.blogspot.com"> SQL Server Compact blog</a>

    Tuesday, September 10, 2013 6:42 AM
    Moderator
  • Thank you ErikEj.

    Finally, I installed VS 2012, and this issue fixed.

    Friday, September 13, 2013 11:26 AM