My Oracle Support Banner

SSRS 2008 Raises ThreadStateException - Unable To Set Thread Priority When Running Reports With ODP.NET (Doc ID 1214113.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Data Provider for .NET - Version: and later   [Release: 9.2 and later ]
Microsoft Windows (32-bit)
Microsoft Windows x64 (64-bit)


Upgraded to SQL Server Reporting Services (SSRS) 2008 from a previous version and the reports you previous ran successfully are no longer working.  If you check the SSRS log files folder:

     C:\Program Files\Microsoft SQL Server\MSRS10_50.SQLSERVER2008R2\Reporting Services\LogFiles

You notice that there is an error...

     System.Threading.ThreadStateException:  Unable to set thread priority.

in one of the SSRS log files:

library!ReportServer_0-6!9a4!06/18/2010-09:46:36:: e ERROR: Unhandled exception in Appdomain ReportServer_SQLSERVER2008R2_0-6-129213526810937500: System.Threading.ThreadStateException: Unable to set thread priority.
at System.Threading.Thread.SetPriorityNative(Int32 priority)
at Oracle.DataAccess.Client.ConnectionPool.PopulatePool(Object state)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.