Hi,

We have an issue we just discovered.  We are running Nop 1.60 and Telerik Reports in the same site.  When we launch a report it uses caching for its data and after about 30 seconds the reports just die.  We did a lot of troubleshooting and discovered that if we turn off TaskManager.Instance.Start(); for Application_Start in the Global.asax the problem goes away.

It seems that TaskManager.Instance is somehow killing the cache being used by other applications.

Our question is: what negative effects will we see in the store if we don't have TaskManager.Instance.Start(); in our Application_Start?  Will things like emails still go out when orders are placed?  Since this solves our issues, can we just leave that off?

Thanks a lot!

Ben

PS Here is the code we have in our Global.asax now and it works.

    void Application_Start(object sender, EventArgs e)
    {
        NopConfig.Init();

        if (InstallerHelper.ConnectionStringIsSet())
        {

            TaskManager.Instance.Initialize(NopConfig.ScheduleTasks);

           // REPORTING ONLY WORKS IF THE NEXT LINE IS COMMENTED OUT!
           // TaskManager.Instance.Start();

        }
    }

And here is the stacktrace for the error we get after 30 seconds if TaskManager.Instance is started

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.ReportViewer.WebForms.StreamManager.GetStreamData(String streamName) +41
   Telerik.ReportViewer.WebForms.StreamManager.GetHtmlPage(Int32 pageIndex) +163
   Telerik.ReportViewer.WebForms.ReportPageOperation.WriteHtmlPage(StreamManager streamManager, Int32 pageIndex) +173
   Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperationOverride() +156
   Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +74
   Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +276
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044