sql ce native exception 0xc0000005

夙愿已清 提交于 2019-12-06 15:09:55

SOLVED IT

The error was caused by corruption of the sqlce native dll. By uninstalling and re-installing the sqlce everything worked. Better yet it is quicker, because of the time spent on optimizing the flow of code, instead of using stock VS boilerplate code

Is the SqlCeConnection being used at the same time on another thread?

If that is the case, you may need a lock there too. To test, make a new connection (temporarily) and see if it fixes it.

I had exactly the same error and was pulling my hair out with frustration, not getting anywhere. I references the SQL CE dlls directly and copied them all to the device during deploy, so after I read the above solution I tried to remove all the files and redeploy from scratch. That also did not work. In the end I installed SQL Server CE 3.5 SP2 directly on to the device with the CAB file found in

C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i\sqlce.wce5.armv4i.cab

(ARMv4 in my case, your's may vary). After installing this to the device everything ran fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!