我使用IBM2.0应用程序(在Windows 2003环境中运行)使用连接到informix。
这个应用程序运行得很好,而且速度很快,但我遇到了随机的oledb连接错误,如下所示:
没有可用的错误消息,结果代码:-2147417851(0x80010105)。 堆栈跟踪:在system.data.oledb.oledbconnectioninternal..ctor(oledbconnectionstring constr,oledbconnection )在system.data.oledb.oledbconnectionfactory.createconnection(dbconnectionoptions选项处,对象池群提供信息,dbconnectionpool池池,dbconnectionpoolgroup (在system.data.providerbase.dbconnectionfactory.createnonpooledconnection(dbconnection owningconnection,dbconnectionpoolgroup池组),在system.data.providerbase.dbconnectionfactory.getconnection(dbconnection owningconnection) (在system.data.providerbase.dbconnectionclosed.openconnection(dbconnection外部连接),( c:\hltdesktop\hltdesktop.legacy\oledbdatabase.cs:line 62中的system.data.oledb.oledbconnection.open() at hltlib.oledbdatabase.initcommand()
使此错误消失的唯一方法是重置IIS。
有没有人有过这样的问题?是否有windows oledb调试器和/或跟踪程序可用于解决此问题?
发布于 2011-11-08 05:07:59
我猜这可能是由OLEDB连接池/它在提供程序中的实现引起的。尝试禁用注册表中的OLEDB服务,以防止提供程序的连接池。请参阅MS关于如何实现此操作的文档。HTH
发布于 2012-11-21 02:02:59
因为我们不知道更多关于您的系统架构和应用程序的功能。这个问题的真正原因尚不清楚。
根据这个,我认为您必须转换整个代码才能使用ODBC.NET数据提供程序。从那以后,再也没有错误了。
https://stackoverflow.com/questions/7016518
复制相似问题