November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
I haven't tried this myself, but I think that the problem might be remedied if you change
return (PageEntity)EntityProviderHandler.GetEntityProvider(typeof(PageEntity)).GetEntityInstance(entityType, reader);
to
return (PageEntity)EntityProviderHandler.GetEntityProvider(entityType).GetEntityInstance(entityType, reader);
Or, add the fully qualified type PageEntity to the supportedTypes list for the 'PageEntity' provider,
<add type="Namespace.UI.Public.PageEntity.PageEntity, Namespace" provider="PageEntity" />
/Kristoffer
Installed the SQL-tables and SP's. Modifed the PageEntity code and added the provider and supportTypes to web.config.
I added a property (private PageEntity _currentPageEntity;) to my page base class and implemented the get/set as Per did in the WikiX example.
When I try to get the currentPageEntity from the current page I get an exception in the PageEntityFactory class, method ConstructPageEntity which calls GetEntityProvider.
"The entity provider does not exist for type Namespace.UI.Public.PageEntity.PageEntity."
the method looks like this:
GetEntityProvider gets it's info from web.config so I have probably done something wrong there but I can't figure out what.
Here's the relevant sections from web.config
I did some reflecting and debugging. GetEntityProvider reads from a private member m_entityProviderHash.
It contains (among several others) [{Namespace.UI.Public.PageEntity.ArticlePageEntity}]: {Namespace.UI.Public.PageEntity.PageEntityProvider}
but should contain Namespace.UI.Public.PageEntity.PageEntity right?
Anyone got any ideas?
/Fredrik, confused