Tag Archives | c#
server-side-solution

Solving the html word wrapping problem in DayPilot Lite

A while ago I ported the DayPilot Lite calendar/schedule control into a Monorail view component and everything went smooth except for the word wrapping. Whenever an event in the calendar/schedule contained a word that did not fit the placeholder the entire description was hidden from the end user. It looked like this: When it should [...]

Comments { 0 }

The call to method ‘Deserialize’ needs to be dynamically dispatched, but cannot be because it is part of a base access expression

Error 66 The call to method ‘Deserialize’ needs to be dynamically dispatched, but cannot be because it is part of a base access expression. Consider casting the dynamic arguments or eliminating the base access.

Comments { 0 }

NHibernate.HibernateException: instance not of expected entity type

Given:

[ActiveRecord(DiscriminatorValue = "OnState")]
class OnState: UnitState {
//…
}

I got

NHibernate.TransactionException: An error occured when trying to dispose the transaction —> NHibernate.HibernateException: instance not of expected entity type: Model.OnState is not a: Model.UnitState

Hmmm?

Comments { 0 }