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."
SqlCeConnection conn = new SqlCeConnection(connectionString) conn.Open();I did some googling and went to MSDN to find out the solution and got that , SqlCe 4.0 is not supported in XP Service Pack 2 and Previous Versions, So why this problems is coming in 2 systems only. 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 is not installed) this exception is coming. But in all system in which Visual studio is installed is working fine, while i am installing the application using setup.
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)
So, What setting or changes or fix i have to do for this problem ?????
Ashutosh Tiwari