Hello everyone!
I just can not cope with a seemingly foolish error. It seems to google already, but many of the fixes that were offered on Stackoverflow did not fit. Still just did not have time to try, because some of them require enough time and digging into the system. I do not think that everything is so difficult.
In general, I created a Windows Forms test project and tried to connect to MS SQL Server Compact 4.0 via ADO.NET EDM. However, when I try to get information from the table, I get the above error.
Connection string quote:
<connectionStrings> <add name="MyBDEntities" connectionString="metadata=res://*/testModel.csdl|res://*/testModel.ssdl|res://*/testModel.msl;provider=System.Data.SqlServerCe.4.0;provider connection string="data source=C:\Users\Work\Documents\MyBD.sdf"" providerName="System.Data.EntityClient" /> <add name="TestADOApp2.Properties.Settings.MyBDConnectionString" connectionString="Data Source=|DataDirectory|\MyBD.sdf" providerName="Microsoft.SqlServerCe.Client.4.0" /> </connectionStrings>
Hope that maybe you can help.
Thank you in advance!