I've finally got my code out and building correctly for VistaDB build 57 on the compact framework. However, I am getting the error "MissingManifestResourceException" when trying to load a collection.
I have this code on load:
Code:
1 Modules.EsInitialisation.InitialiseEs();
2 iVirtualDocket.Dal.RefFaultCollection faults = new iVirtualDocket.Dal.RefFaultCollection();
3 faults.LoadAll();
Code:
1 /// <summary>
2 /// Initialises the EntitySpaces connection.
3 /// </summary>
4 public static bool InitialiseEs()
5 {
6
7 // Get the database path
8 string path = @"Program Files\iVirtualDocket\Database\iVirtualDocket.vdb3";
9 bool exists = File.Exists(path);
10 if (exists)
11 {
12
13
14 // Initialise the loader
15 esProviderFactory.Factory = new EntitySpaces.LoaderMT.esDataProviderFactory();
16
17 // Manually register a connection
18 esConnectionElement conn = new esConnectionElement();
19 conn.Name = "VistaDb";
20 conn.ConnectionString = "Data Source=" + path + ";";
21 conn.Provider = "EntitySpaces.VistaDBProvider.CF";
22 conn.ProviderClass = "DataProvider";
23 conn.SqlAccessType = esSqlAccessType.DynamicSQL;
24 conn.ProviderMetadataKey = "esDefault";
25
26 // Assign the Default Connection
27 esConfigSettings.ConnectionInfo.Connections.Add(conn);
28 esConfigSettings.ConnectionInfo.Default = "VistaDb";
29
30
31 return true;
32
33 }
34 else
35 {
36 return false;
37 }
38
39 }
I have tried both EntitySpaces.VistaDBProvider.CE and .CF. Why am I getting this error?
I am using ES 2008 and MyGeneration 1.2.
Current Projects:
iVirtualDocket | iWontRemember