.net错误 resourcepool is not supported on the current platform

来源:互联网 发布:韩国网络直播平台 编辑:程序博客网 时间:2024/05/22 09:44

网络搜索两种解决办法

1、注册DLL

开始菜单-运行输入 
regsvr32  C:/WINDOWS/system32/comsvcs.dll
regsvr32  C:/Program Files/Common Files/System/Ole DB/oledb32.dll
2、更改数据库连接字符串

在Connection的ConnectionString   中加上Pooling=False

sqlConn.ConnectionString   = " workstation   id= 'KM-IT-S07 ';packet   size=4096;user   id=sa;data   source= '192.168.169.254 ';persist   security   info=False;initial   catalog=Test;password=sa;Pooling=False "

 

原创粉丝点击