This software needs to run on Windows XP. So I set up a vitual machine running XP on my workstation. The program has been crashing during the initialization phase, so today I installed Visual Studio 2010 on the VM & debugged the code.
I've traced the issue into the Entity Framework. My first call to instantiate the model has been terminating. I've added a try-catch around the constructor call and, with the help of Google, I've worked through one issue after another, including not having all required assemblies copied into the bin/Debug folder, adding a missing configuration section to app.config, and adding a licenses.licx file to the application.
The latest issue I'm having has to do with the meta data in the Entity Framework connection string. Here's the stack trace for the exception:
Code: Select all
Unable to load the specified metadata resource.
at System.Data.Metadata.Edm.MetadataArtifactLoaderCompositeResource.LoadResources(String assemblyName, String resourceName, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver)
at System.Data.Metadata.Edm.MetadataArtifactLoaderCompositeResource.CreateResourceLoader(String path, ExtensionCheck extensionCheck, String validExtension, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver)
at System.Data.Metadata.Edm.MetadataArtifactLoader.Create(String path, ExtensionCheck extensionCheck, String validExtension, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver)
at System.Data.Metadata.Edm.MetadataCache.SplitPaths(String paths)
at System.Data.Common.Utils.Memoizer`2.c__DisplayClass2.b__0()
at System.Data.Common.Utils.Memoizer`2.Result.GetValue()
at System.Data.Common.Utils.Memoizer`2.Evaluate(TArg arg)
at System.Data.EntityClient.EntityConnection.GetMetadataWorkspace(Boolean initializeAllCollections)
at System.Data.Objects.ObjectContext.RetrieveMetadataWorkspaceFromConnection()
at System.Data.Objects.ObjectContext..ctor(EntityConnection connection, Boolean isConnectionConstructor)
at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName)
at CarSystem.LPRDataAccess.DataModel.CarSystemEntities..ctor() in C:\ElsagTFS\EOC4\Client UI\LPRDataAccess\CarSystemModel.Designer.cs:line 77
at CarSystem.LPRDataAccess.DataAccessModel..ctor() in C:\ElsagTFS\EOC4\Client UI\LPRDataAccess\DataAccessModel.cs:line 43
Code: Select all
Thanks
Tony