This website is intended as archive for old content and forums.
Please visit http://opf3.codeplex.com for the project's new website.

General Discussion

FORUM TOPIC

What is Opf3? Why is Opf3? How is Opf3? All these burning questions and issues discussed here.

RSS
Vikram Manne
Posted on the 01/30/08 8:19 PM
No Persistent Type Error
Reply Quote
 Hi ,

I am receiving this error every time I try to load

There is no persistent type registered for the interface type: ASE.Domain.IAdmins

What could be the issue here?



Christian Liensberger [Moderator]
Posted on the 01/31/08 7:43 AM
RE: No Persistent Type Error
Reply Quote
 Can you please give me more information on this one here...

Greetings,
Christian

Vikram Manne
Posted on the 01/31/08 6:58 PM
RE: No Persistent Type Error
Reply Quote
 sure,



Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Chili.Opf3.Mapping.MappingException: There is no persistent type registered for the interface type: BEngine.Domain.IAdmins.

Source Error:

Line 58: ObjectQuery<IAdmins> oQuery = new ObjectQuery<IAdmins>(query, adminid);
Line 59:
Line 60: return Context.GetObject<IAdmins>(oQuery);
Line 61: }
Line 62:



here is the stack trace

[MappingException: There is no persistent type registered for the interface type: BEngine.Domain.IAdmins.]
Chili.Opf3.Mapping.MappingContainer.GetPersistentType(Type type) +240
Chili.Opf3.Mapping.MappingContainer.GetTypeMapping(Type type) +130
Chili.Opf3.Mapping.TypeMapping.GetTypeMapping(Type type) +29
Chili.Opf3.Query.OPathParser.OPathParser`1.Parse(ObjectQuery`1 query) +207
Chili.Opf3.Query.OPath.Parse(ObjectQuery`1 query) +172
Chili.Opf3.Query.ObjectQuery`1.ToCompiledQuery(IStorage storage) +148
Chili.Opf3.Storages.SqlStorageBase.ExecuteReader(ObjectContext context, IQuery query) +495
Chili.Opf3.Storages.MsSql.MsSqlStorage.ExecuteReader(ObjectContext context, IQuery query) +104
Chili.Opf3.ObjectContext.GetObjectReader(IQuery query, Boolean ignoreCache) +260
Chili.Opf3.ObjectContext.GetObjectReader(IQuery query) +77
Chili.Opf3.ObjectContext.GetObject(IQuery query) +129
BEngine.Domain.Searcher.AdminsSearcher.GetByPK_Admins(Int32 adminid)

Christian Liensberger [Moderator]
Posted on the 01/31/08 10:58 PM
RE: No Persistent Type Error
Reply Quote
 You need to register the interface with the actual persistent type to make it work. Opf3 needs to understand what type needs to be created when objects are loaded from the database. You can't create an instance of an interface...

Please have a look here for further details: http://www.opf3.com/Opf3/Community/Topic.aspx?Forum=5&Topic=570

Greetings,
Christian

All times are in GMT.