We have an application that uses postharp to transfer certain methods to the transaction aspect derived from MethodInterceptionAspect. We use NHibernate 2.0 as the ORM for the application. There is a failure in this code block,
public override void OnInvoke(MethodInterceptionArgs args) { using (TransactionScope transaction = CreateTransactionScope()) { args.Proceed(); transaction.Complete(); } }
resulting in the following error: System.BadImageFormatException: An attempt was made to load a program with the wrong format. (Exception from HRESULT: 0x8007000B) This occurs only for calls to save, and not to delete or receive calls.
I was wondering if anyone had seen such a thing like that?
asp.net-mvc postsharp
intervigil
source share