从oracle网站上说我们不需要引用Oracle.ManagedDataAccessDTC.dll,
Installing Oracle Data Provider for .NET, Managed Driver
对于我的项目,当我没有将 dll 放入我的 Bin 目录时它会抛出异常。
Could not load file or assembly 'Oracle.ManagedDataAccessDTC, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
我设置了 Oracle.ManagedDataAccess.dll 'Copy Local' = true...
有什么我错过的吗?
我在 windows 7 64 位中使用 oracle 12c 客户端 32 位
请您参考如下方法:
只有在使用分布式事务时,Oracle.ManagedDataAccessDTC.dll 才是(或应该是)必需的。但是,如果您使用 System.Transactions 来管理您的数据库事务,您的事务可能会自动升级为分布式事务。
您可以通过添加来关闭此行为 征募=假 到您现有的连接字符串。
