문제

다음 예외의 가능한 원인은 무엇입니까?

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()

플랫폼은 Windows 2003 Server SP2입니다.동일한 코드가 Windows XP SP2에서도 문제 없이 테스트되었습니다.그러나 플랫폼에 관계없이 이러한 예외가 발생하는 이유가 무엇인지 아는 것은 흥미로울 것입니다.

도움이 되었습니까?

해결책

Reflector를 사용하여 소스를 찔렀는데 ResourcePool의 정적 생성자에서 Platform.Assert에 대한 호출을 찾을 수 없는 것 같습니다.

Windows 2003 서버는 64비트입니까?그게 문제일 수도 있습니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top