Weird override problem with Fluent NHibernate and .NET 4

后端 未结 1 704
既然无缘
既然无缘 2020-12-11 22:08

I recently asked a question about using Fluent NHibernate with .NET 4 - I solved that problem, but met a new one.

Summary
My main problem (at th

1条回答
  •  无人及你
    2020-12-11 22:36

    From the Microsoft Connect issue:

    Security attributes need to be re-applied on types that derive from other types that also have security attributes.

    Maybe FluentConfigurationException needs to apply a [SecurityPermission] attribute to its GetObjectData() method.

    Else check out this blog post.

    EDIT: The final solution was adding [SecurityCritical] to FluentConfigurationException.GetObjectData()

    0 讨论(0)
提交回复
热议问题