I currently have 3 tiers to my application: 1) Entities (decorated with NHV attributes) 2) Data (Contains my session manager and Data access objects. Validate objects prior to save/update in the DAOs.) 3) Web (Calls data access objects to get/save/update entities)
The error below gets thrown when I attempt to validate my entity. Does the error give any ideas as to what is going on? Server Error in '/' Application. -------------------------------------------------------------------------------- Operation could destabilize the runtime. 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: System.Security.VerificationException: Operation could destabilize the runtime. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [VerificationException: Operation could destabilize the runtime.] NHibernate.Validator.Engine.InvalidMessageTransformer.GetEfectiveValidatorMatchTags () +64 NHibernate.Validator.Engine.InvalidMessageTransformer.GetMatchTags () +28 NHibernate.Validator.Engine.InvalidMessageTransformer.<Transform>b__4 (<>f__AnonymousTypec`2 <>h__TransparentIdentifier1) +70 System.Linq.<>c__DisplayClass12`3.<CombineSelectors>b__11(TSource x) +32 System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +184 System.Linq.<SelectManyIterator>d__31`3.MoveNext() +273 System.Linq.<ConcatIterator>d__71`1.MoveNext() +309 System.Linq.<ConcatIterator>d__71`1.MoveNext() +128 System.Linq.<ConcatIterator>d__71`1.MoveNext() +309 System.Linq.Buffer`1..ctor(IEnumerable`1 source) +259 System.Linq.Enumerable.ToArray(IEnumerable`1 source) +81 NHibernate.Validator.Engine.ValidatorEngine.Validate(Object entity, Object[] activeTags) +23 Tectonic.Data.SessionManager.Validate(Object entity) +34 Tectonic.Data.UserDao.Save(User u) +48 Tectonic.Web._Default.btnCreate_Click(Object sender, EventArgs e) +296 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
