Hi Guys,

I've got an MVC application where I'm attempting to apply your server-side progress bar example. However, instead of using ThreadPool I'm using Tasks.

My Long Action is being run in a Task, which has a ContinueWith call to present the result of the long action. e.g.

var t = new Task<int>(() => Validation<int>(userId));
t.Start();
t.ContinueWith(task => Result(task.Result));
The Long Action saves its progress to the database, and my Refresh method used by my task manager picks that up and refreshes the progress bar great.
However, my Result method which runs in the ContinueWith call can't seem to use the X.GetCmp<> method. Whenever I call it I get a NullReferenceException
"An exception of type 'System.NullReferenceException' occurred in Ext.Net.dll but was not handled in user code

Additional information: Object reference not set to an instance of an object."
Is it simply not possible to use GetCmp in a different thread? I don't need to get any values, I just need to change some values/settings.

Thanks,