Transaction Scope in Oracle with ASP.NET

本小妞迷上赌 提交于 2020-01-05 08:16:17

问题


using (System.Transactions.TransactionScope ts = new System.Transactions.TransactionScope())
{
TableAdapter.Insert("test","test");
ts.Complete();
}

I am getting this error :Unable to load DLL 'oramts.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I have Oracle Client installed with Oracle services for Windows Transaction even the DLL file oramts.dll is in [ORALCE_HOME]/bin

Thanks in advance


回答1:


http://jelle.druyts.net/2006/06/25/UnableToLoadOramtsdllTryTheReleaseVersion.aspx

It turns out that the version of oramts.dll (which provides DTC transaction support for Oracle) as installed by the Oracle 9i Release 2 CD is a debug build, rather than a release build. (Let that sink in for a moment: Oracle is shipping debug builds of their software...). As you can see in the following screenshot of the dll in DependencyWalker, this debug build has a dependency on MSVCRTD.DLL, which is a debug build of the Microsoft C Runtime Library

This solved my issue



来源:https://stackoverflow.com/questions/17264265/transaction-scope-in-oracle-with-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!