wpf - SQL server CE 4.0 windows XP -
i have made wpf application works fine on windows7 , xp. however, after adding functionality related databases , entity framework still runs under windows 7 not on windows xp. every time tries use database "operation not supported on platform".
i have added dlls needed , modified .config can see app can run without sql server ce 4.0 installed. have tried installing sql ce on windows xp machine , edit .config use instead of dlls, same result.
more info: app made run on .net framework 4.0
should try embedded db?
<configuration> <configsections> <!-- more information on entity framework configuration, visit http://go.microsoft.com/fwlink/?linkid=237468 --> <section name="entityframework" type="system.data.entity.internal.configfile.entityframeworksection, entityframework, version=4.4.0.0, culture=neutral, publickeytoken=b77a5c561934e089" requirepermission="false" /> </configsections> <system.data> <dbproviderfactories> <remove invariant="system.data.sqlserverce.4.0"/> <add name="microsoft sql server compact data provider 4.0" invariant="system.data.sqlserverce.4.0" description=".net framework data provider microsoft sql server compact" type="system.data.sqlserverce.sqlceproviderfactory, system.data.sqlserverce, version=4.0.0.1, culture=neutral, publickeytoken=89845dcd8080cc91"/> </dbproviderfactories> </system.data> <connectionstrings> <add name="conexion" connectionstring="data source=|datadirectory|database.sdf" providername="system.data.sqlserverce.4.0" /> </connectionstrings> <entityframework> <defaultconnectionfactory type="system.data.entity.infrastructure.localdbconnectionfactory, entityframework"> <parameters> <parameter value="v11.0" /> </parameters> </defaultconnectionfactory> </entityframework> </configuration>
ok found problem. seems sql server ce 4.0 needs windows xp sp3, , test machine had sp2, shame on me!
Comments
Post a Comment