The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

MissingManifestResourceException

Last post 08-06-2008, 7:18 AM by iVirtualDocket. 9 replies.
Sort Posts: Previous Next
  •  08-06-2008, 5:40 AM 10589

    MissingManifestResourceException

    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
  •  08-06-2008, 6:06 AM 10590 in reply to 10589

    Re: MissingManifestResourceException

    Hi

    The error message implies it's something to do with localisation - do you have localisation turned on in your form or are you referencing any embedded resources at all? That (and potential namespace issues) seem to be the only hits returned back from google for the error anyway

    Cheers

    Martin

  •  08-06-2008, 6:16 AM 10591 in reply to 10590

    Re: MissingManifestResourceException

    Thanks, but I'm not using any localization or referencing any embedded resources.

    Current Projects:
    iVirtualDocket | iWontRemember
  •  08-06-2008, 6:43 AM 10592 in reply to 10591

    Re: MissingManifestResourceException

    Try using the Loader instead of the LoaderMT

    [Modified]

    Also, you need to link with the VistaDB CF dll


    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  08-06-2008, 6:48 AM 10593 in reply to 10591

    Re: MissingManifestResourceException

    Hi

    It might be worth posting about this on the VistaDB forum as a quick search over there shows that this is a common problem with VistaDB on the compact framework - the following threads may help but a search over there may be more productive

    http://www.vistadb.net/forums/viewtopic.php?t=2854&highlight=missingmanifestresourceexception

    http://www.vistadb.net/forums/viewtopic.php?t=2434&highlight=manifest

    Cheers

    Martin

  •  08-06-2008, 6:52 AM 10594 in reply to 10593

    Re: MissingManifestResourceException

    Mike, I've tried both Loader and LoaderMT and both fail with the same error. Is everything in my configless execution correct?


    Current Projects:
    iVirtualDocket | iWontRemember
  •  08-06-2008, 6:58 AM 10595 in reply to 10594

    Re: MissingManifestResourceException

    Thanks for the links pritcham. I now believe this is the solution:

    VistaDB 3.3 Build 57 - CF Non XML

    How do I get that version of VistaDB.CF20 to be used by the EntitySpaces.VistaDBProvider.Dll?


    Current Projects:
    iVirtualDocket | iWontRemember
  •  08-06-2008, 6:58 AM 10596 in reply to 10594

    Re: MissingManifestResourceException

    Hi

    It may be nothing to do with EntitySpaces as I don't believe ES uses any embedded resources (could be wrong though) - the VistaDB forums make mention of an embedded XML file so worth a scout over there for sure (as per my post above)

  •  08-06-2008, 7:12 AM 10597 in reply to 10596

    Re: MissingManifestResourceException

    Also make sure your EntitySpaces.VistaDBProvider.CF is being copies over, mobile apps are such a pain sometimes. Pritcham might be right on that xml file, though I created a VistaDB mobile app and didn't have any issues
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  08-06-2008, 7:18 AM 10598 in reply to 10596

    Re: MissingManifestResourceException

    I dumped the corrected version of the VistaDB.CF20 into my references and now all seems to be OK...!

    Thanks for your help! 

    Can I suggest this gets put into some highlighted post or something for us CF users and VistaDB? Just dump the correct non-xml version of the DLL of VistaDB into your app directory and all is well.

    You can also only use Exclusive Opening Modes ReadOnly and ReadWrite.


    Current Projects:
    iVirtualDocket | iWontRemember
View as RSS news feed in XML