This is a migrated thread and some comments may be shown as answers.

Problems with the forward mapping wizard

4 Answers 86 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christian
Top achievements
Rank 1
Christian asked on 28 Jan 2009, 11:54 AM

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

4 Answers, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 28 Jan 2009, 01:35 PM
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.
0
Ady
Telerik team
answered on 29 Jan 2009, 10:59 AM
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.
0
Christian
Top achievements
Rank 1
answered on 29 Jan 2009, 11:55 AM
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

0
Accepted
Ady
Telerik team
answered on 30 Jan 2009, 02:01 PM
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.
Tags
Development (API, general questions)
Asked by
Christian
Top achievements
Rank 1
Answers by
Ady
Telerik team
Christian
Top achievements
Rank 1
Share this question
or