asp.net - Unable to load the native components of SQL Server Compact -


i've installed sql server compact edition 4.0 on win7 x64 , runs both asp.net , desktop applications. pc have visual studio 2010 sp1 installed. server 2008 r2 produces following error asp.net applications, although can run desktop applications:

unable load native components of sql server compact corresponding ado.net provider of version 8482. install correct version of sql server compact. refer kb article 974247 more details. 

i've tried both sqldatasource , sqlceconnection. same error. web.config below:

<?xml version="1.0"?> <configuration>     <connectionstrings>        <add name="sqlce" connectionstring="data source=|datadirectory|\a.sdf"         providername="system.data.sqlserverce.4.0" />     </connectionstrings>     <system.web>         <compilation debug="true" targetframework="4.0">             <assemblies>                 <add assembly="system.data.sqlserverce, version=4.0.0.0,                 culture=neutral, publickeytoken=89845dcd8080cc91"/>             </assemblies>         </compilation>     </system.web> </configuration> 

also tried copy dll's sugested here no effect.

finally got sql server compact edition 4.0 working under iis 7.5. problem permission issue. current application pool's identity iwam_plesk(default) didn't have access sql server compact 4.0 folders:

c:\program files\microsoft sql server compact edition\v4.0

c:\program files (x86)\microsoft sql server compact edition\v4.0

i granted read & execute , list folder contents permissions , works charm.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -