Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

Cannot load SqlCe components at runtime

$
0
0

Hi all,

I 'm writing a small Windows Application use SqlCe 3.5 as a Database.

The Application works fine as long as all DLL of SqlCe locate in the same directory (of my application file).

An now, I want to deploy my application just only one EXE file and i put all SqlCe DLL in EmbeddedResource of my project and load these DLL at runtime by using AssemblyResolve Event from Application Object.

Result:

My Application could not operate with Database.

Exception:

Unable to load the native components of SQL Server Compact corresponding to the ADO.NET provider of version 8080. Install the correct version of SQL Server Compact. Refer to KB article 974247 for more details.

Note:

As soon as i copy all DLL (The same DLL as in EmbeddedResource) in to the Directory of my application, everything work fine again.

I also use the same method to load another assembly at runtime and i get no problem.

Question:

Can anyone help me? What did i do wrong?

S. Promma



Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>