Error "Providing a non-null 'timeoutHandler' or a true 'executeInParallel' parameter value to the PageAsyncTask constructor is unsupported in the current application configuration" occurs when trying to receive purchase order items
search cancel

Error "Providing a non-null 'timeoutHandler' or a true 'executeInParallel' parameter value to the PageAsyncTask constructor is unsupported in the current application configuration" occurs when trying to receive purchase order items

book

Article ID: 278520

calendar_today

Updated On:

Products

IT Management Suite Asset Management Suite

Issue/Introduction

When trying to receive items from a purchase order (under the Receive Items page):

the following generic error page is displayed (or an error about a resource has a duplicated field) :

"Symantec Management Server Error
An error has occurred that prevents the Symantec Management Console displaying correctly."

The NS logs show the following error entry:

HTTP Request failed:
 /Altiris/AssetControl/Receiving/Wizards/ReceiveItems.aspx?itemguid=f2a4f7f5-93ad-450d-a181-e2ce4227b486

Providing a non-null 'timeoutHandler' or a true 'executeInParallel' parameter value to the PageAsyncTask constructor is unsupported in the current application configuration. To work around this, add the following configuration switch in Web.config:
<appSettings>
  <add key="aspnet:UseTaskFriendlySynchronizationContext" value="false" />
</appSettings>
For more information, see http://go.microsoft.com/fwlink/?LinkId=252465.
   [InvalidOperationException @ System.Web.dll]
   at System.Web.Util.SynchronizationContextUtil.ValidateMode(SynchronizationContextMode, SynchronizationContextMode, string)
   at System.Web.UI.PageAsyncTask..ctor(BeginEventHandler, EndEventHandler, EndEventHandler, object, bool, SynchronizationContextMode)
   at Altiris.AssetControl.Web.Receiving.Wizards.PageAsync.Setup(PageAsync, AsyncCallback, Page, int, HttpContext, EndEventHandler, EndEventHandler, EndEventHandler)
   at Altiris.AssetControl.Web.Receiving.Wizards.ReceiveItems.ReceivingItemsGrid_receiveBtnClicked(object, EventArgs)
   at Altiris.Receiving.Controls.ReceivingEditableGridControl.OnReceiveBtnClicked(object, EventArgs)
   at Altiris.Receiving.Controls.ReceivingEditableGridControl.btnGenerate_Click(object, EventArgs)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(string)
   at System.Web.UI.Page+<ProcessRequestMainAsync>d__523.MoveNext()

Exception logged from:
   at Altiris.Profiling.Support.LogSupport.BuildExceptionMessage(string, Exception, string, bool)
   at Altiris.NS.UI.AltirisWebApplication.ReportApplicationError(HttpContext)
   at Altiris.NS.UI.AltirisWebApplication.Application_Error(object, EventArgs)
   at System.Web.HttpApplication.RaiseOnError()
   at System.Web.HttpApplication.RecordError(Exception)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest, HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, int)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, int)

-----------------------------------------------------------------------------------------------------
Date: 1/24/2024 10:56:34 AM, Tick Count: 312186203 (3.14:43:06.2030000), Size: 3.06 KB
Process: w3wp (30252), Thread ID: 2924, Module: Altiris.NS.UI.dll
Priority: 1, Source: WebApplication

Environment

ITMS 8.7.x

Resolution

The actual error entry in the NS log shows what is suggested for you to do:

Providing a non-null 'timeoutHandler' or a true 'executeInParallel' parameter value to the PageAsyncTask constructor is unsupported in the current application configuration. To work around this, add the following configuration switch in Web.config:
<appSettings>
  <add key="aspnet:UseTaskFriendlySynchronizationContext" value="false" />
</appSettings>
For more information, see http://go.microsoft.com/fwlink/?LinkId=252465.

Try the following:

  1. On your SMP Server, go to ...\Program Files\Altiris\Asset\AssetControlWeb
  2. Open web.config
  3. Look for the section that starts with <appSettings> as seen here:



  4. Add this line to the <appSettings> section as show below:

    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="false" />



  5. Save change
  6. Restart IIS - from the command prompt, run IISRESET
  7. Try again to receive the asset item