Problems with the forward mapping wizard

5 posts, 1 answers
  1. Christian
    Christian avatar
    81 posts
    Member since:
    Aug 2008

    Posted 28 Jan 2009 Link to this post

    Hi,
    I am working on a complex data model and changed the properties of one field in one class and then I get one NotSupportetException. Now I am not longer able to change the properties of the fields in the wizard.
    The goal was to save a string as a unlimited text field in the database.

    Fehler  126 System.NotSupportedException: Die angegebene Methode wird nicht unterstützt.  
       bei Telerik.OpenAccess.Sdk.CodeModelWrapper.CMWClass.IsStruct()  
       bei Telerik.OpenAccess.Sdk.CodeModelWrapper.DesigntimeClass.IsStruct()  
       bei OpenAccessRuntime.metadata.MetaDataBuilder.createMetaData(PackageMetaData pmd, DataObjectsClass dataObjectsCls, Boolean quiet)  
       bei OpenAccessRuntime.metadata.MetaDataBuilder.buildMetaData(DataObjectsRoot[] roots, Boolean ignoreNoClasses)  
       bei OpenAccessRuntime.Relational.RelationalMetaDataBuilder.buildMetaData(DataObjectsRoot[] roots, Boolean ignoreNoClasses)  
       bei OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b)  
       bei OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()        
     

    I have no problems to build the project.

    I need a tip what the reason for this problem is.

    Thanks.
    Christian
  2. Ady
    Admin
    Ady avatar
    588 posts

    Posted 28 Jan 2009 Link to this post

    Hi Christian,

    The above mentioned exception could occur if the forward mapping wizard cannot load a persistent type (maybe due to a missing assembly/project reference), but this doesn't seem to be your case as you say you can build the project successfully.

    Can you provide us with the mapping (app.config section) for your project or if possible a sample project where we can reproduce the error?

    All the best,
    Ady
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Ady
    Admin
    Ady avatar
    588 posts

    Posted 29 Jan 2009 Link to this post

    Hello Christian,

    Any update on the status of your problem.

    Another suggestion is you could try using the 'Refresh' button on the mapping dialog to recalculate the metadata for your project. It might be the case that the cached model information is in an invalid state due to some reason and clicking 'Refresh' will clear the caches and recalculate everything.

    If that doesn't work you can try restarting Visual Studio.

    Hope this helps.

    Regards,
    Ady
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Christian
    Christian avatar
    81 posts
    Member since:
    Aug 2008

    Posted 29 Jan 2009 Link to this post

    Hi,
    thanks for the quick reaction and the question.
    At the moment I have a working environment for developing after go back some steps of code generation. Maybe restarting my machine helps either.
    I want to find out, what the reason was. It's a little bit difficult, because I have no idea what the crucial step was. The problems began at the moment where I changed properties of the field and  chose 'text' for the db-typ.

    I would just like to know what cliff I must circumnavigate.

    Thanks.
    Christian

  6. Answer
    Ady
    Admin
    Ady avatar
    588 posts

    Posted 30 Jan 2009 Link to this post

    Hi Christian,

    It's a bit difficult to point out the exact reason for that behavior. One reason could be uncompilable code (where a type cannot be resolved for instance) but you said you could build the project, so that possibility can be ruled out.

    What I can ensure is that , that problem was not caused by  changing the properties of the field ( choosing 'text' as db-type).

     Please let us know if you experience something similar again.

    Greetings,
    Ady
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
DevCraft banner