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

.net错误 resourcepool is not supported on the current platform_第1张图片

网络搜索两种解决办法

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 "

 

你可能感兴趣的:(.net错误 resourcepool is not supported on the current platform)