我们这里有一个应用程序,它使用PostSharp来包装某些方法,并在MethodInterceptionAspect中派生出事务方面。我们使用NHibernate 2.0作为应用程序的ORM。此代码块中存在故障,
public override void OnInvoke(MethodInterceptionArgs args)
{
using (TransactionScope transaction = CreateTransactionScope())
{
args.Proceed();
transaction.Complete();
}
}
出现以下错误:System.BadImageFormatException: 尝试加载格式不正确的程序。(HRESULT 异常: 0x8007000B)。这似乎仅在调用保存时发生,而不是删除或获取调用。
我想知道是否有人遇到过类似的情况?