Splitting Configuration Files - Error

Thread is closed for posting
3 posts, 0 answers
  1. David Hollins
    David  Hollins avatar
    15 posts
    Member since:
    Dec 2009

    Posted 30 Jul 2010 Link to this post

    Since my main domain library was becoming too big, I wanted to seperate it into multiple.  So I created a new project and created a config file in it and copied a few of the classes from the original assembly to the new assembly and also copied some of the applicable configuration from the original assembly's config file into the new assembly.

    Now when I go to bring up the Forward Mapping dialog in the new assembly, I get the error:

    Error 126 OpenAccess: System.NullReferenceException: Object reference not set to an instance of an object.
       at OpenAccessRuntime.Relational.metadata.RelationalRefField.SetupInMemoryHandling()
       at OpenAccessRuntime.metadata.FieldMetaData.SetupInMemoryHandling()
       at OpenAccessRuntime.metadata.ClassMetaData.SetupInMemoryHandling()
       at OpenAccessRuntime.metadata.MetaDataBuilder.SetupInMemoryHandling(ClassMetaData[] classes)
       at OpenAccessRuntime.metadata.MetaDataBuilder.buildMetaData(DataObjectsRoot[] roots, Boolean ignoreNoClasses)
       at OpenAccessRuntime.Relational.RelationalMetaDataBuilder.buildMetaData(DataObjectsRoot[] roots, Boolean ignoreNoClasses)
       at OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b)
       at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()  

    If I turn off persistance for the classes I copy into the new assembly and try to remap them it still gives the error and a lot of the data in the Forward Mapping dialog is empty (i.e. table name, column type info, etc.)

    Has anyone else receieved this error and if so, is there a way around it?

    Thanks in advance!
  2. David Hollins
    David  Hollins avatar
    15 posts
    Member since:
    Dec 2009

    Posted 30 Jul 2010 Link to this post

    I updated to the latest release of Open Access and it resolved my issue.
  3. Alexander
    Alexander avatar
    727 posts

    Posted 02 Aug 2010 Link to this post

    Hi David Hollins,

    We are glad to see that you have solved the problem. Such errors might occur in case of insufficient information in the configuration file but it seems in this case it could be something already fixed in the latest version.
    Please do not hesitate to contact us if you face any further difficulties.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top