1
Vote

PartialView.IsContentEnabled throwing thread based exception

description

The PartialView dependency property IsContentEnabled is throwing an InvalidOperationException: "{The calling thread cannot access this object because a different thread owns it.}"

comments

JakeGinnivan wrote Mar 9, 2012 at 2:26 AM

Hi, thanks for the report. Could you send me a small repo solution, or a stack trace so i can resolve the issue.

Thanks,
Jake

m_Marlon_Smith wrote Mar 9, 2012 at 2:31 PM

Hi Jake,

I just run any of the sample apps with your source and the exception shows up immediately... Should I be using a different changeset?

StackTrace:

at System.Windows.Threading.Dispatcher.VerifyAccess()
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Phoenix.Frames.PartialView.set_ContentOpacity(Double value) in C:\phoenix\phoenixframework_c272e37be80f\src\net40\Phoenix\Frames\PartialView.cs:line 146
at Phoenix.Frames.ContentFrameController.BeginForegroundOperation() in C:\phoenix\phoenixframework_c272e37be80f\src\net40\Phoenix\Frames\ContentFrameController.cs:line 94
at Phoenix.Frames.PartialView.BeginForegroundOperation() in C:\phoenix\phoenixframework_c272e37be80f\src\net40\Phoenix\Frames\PartialView.cs:line 205
at Phoenix.Framework.ActionExecution.Execute() in C:\phoenix\phoenixframework_c272e37be80f\src\net40\Phoenix\Framework\ActionExecution.cs:line 39
at Phoenix.Framework.ActionInvoker.InvokeInternalAsync(InvokeActionRequest invokeActionRequest, Action1 contextSetup) in C:\phoenix\phoenixframework_c272e37be80f\src\net40\Phoenix\Framework\ActionInvoker.cs:line 96
at Phoenix.Framework.ActionInvoker.InvokeInternal(InvokeActionRequest invokeActionRequest, Action
1 contextSetup) in C:\phoenix\phoenixframework_c272e37be80f\src\net40\Phoenix\Framework\ActionInvoker.cs:line 88
at Phoenix.Framework.ActionInvoker.InvokeAction(InvokeActionRequest request) in C:\phoenix\phoenixframework_c272e37be80f\src\net40\Phoenix\Framework\ActionInvoker.cs:line 37
at Phoenix.PhoenixHostBuilder.<>c__DisplayClassa.<InvokeDefaultControllerAction>b__7(Task1 t) in C:\phoenix\phoenixframework_c272e37be80f\src\net40\Phoenix\PhoenixHostBuilder.cs:line 159
at System.Threading.Tasks.Task
1.<>c__DisplayClass1a1.<ContinueWith>b__19()
at System.Threading.Tasks.Task
1.InvokeFuture(Object futureAsObj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

JakeGinnivan wrote Mar 12, 2012 at 6:55 AM

Ah, this is due to some refactoring I have been doing to remove the async CTP. Will have a push fixed up shortly