Ad

Why Is The 'Resource Pool' Not Supported On The Current Platform?

- 1 answer

What could be the possible causes for the following exception?

System.PlatformNotSupportedException: 'ResourcePool' is not supported on the current platform.
   at System.EnterpriseServices.Platform.Assert(Boolean fSuccess, String function)
   at System.EnterpriseServices.Platform.Assert(Version platform, String function)
   at System.EnterpriseServices.ResourcePool..ctor(TransactionEndDelegate cb)
   at System.Data.SqlClient.ConnectionPool..ctor(DefaultPoolControl ctrl)
   at System.Data.SqlClient.PoolManager.FindOrCreatePool(DefaultPoolControl ctrl)
   at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction)
   at System.Data.SqlClient.SqlConnection.Open()

The platform is Windows 2003 Server SP2. The same code has been tested on Windows XP SP2 without any problems. However, it would be interesting to know what reasons cause this exception regardless of the platform.

Ad

Answer

I've poked at the sources using Reflector and I can't seem to find any call to Platform.Assert in the static constructor of ResourcePool.

Is the Windows 2003 server 64bit? That may be the problem.

Ad
source: stackoverflow.com
Ad