我一直在关注 MS 网站上的教程并来到这里:
http://msdn.microsoft.com/en-us/library/windows/apps/jj129435.aspx
当我切换回混合时,我遇到了一个巨大的错误,我不知道这意味着什么或如何继续:
发生了未处理的异常:
System.InvalidCastException 返回参数的类型无效。在 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall 调用,WaitHandle timeoutSignal)在 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(操作动作,Int32 targetApartmentId,WaitHandle 中止,WaitHandle timeoutSignal ) 在 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal) 在 Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle 1 targetObject, Action action, CallSynchronizationMode syncMode)
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle
1个目标对象,动作1 action, CallSynchronizationMode syncMode)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.Initialize()
at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func
2 func, CancellationToken cancelToken) 在 Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa 1.<StartTask>b__6()
at System.Threading.Tasks.Task
1.InnerInvoke() 在 System.Threading.Tasks.Task.Execute()
System.InvalidCastException 返回参数的类型无效。
服务器堆栈跟踪:位于 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId) 处的 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action) 在 Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.Initialize() 在系统.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) 在 System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
在 [0] 处重新引发异常:在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 在 Microsoft.Expression 的 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)。 Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.b_a (IRemoteDesignerService d) 在 Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c _DisplayClass1`1 的 DesignHost.Isolation.Remoting.IRemoteDesignerService.Initialize()。 b__0() 在 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.InvalidCastException 返回参数的类型无效。在 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall 调用,WaitHandle timeoutSignal)在 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(操作动作,Int32 targetApartmentId,WaitHandle 中止,WaitHandle timeoutSignal ) 在 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal) 在 Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle1 targetObject, Action action, CallSynchronizationMode syncMode)
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle
1 targetObject, Func`2 func, CallSynchronizationMode syncMode) 在 Microsoft.Expression.DesignHost.Isolation.Remoting.LocalHostProject.Microsoft.Expression.DesignHost.IHostProject.get_TargetAssemblyPath() 在 Microsoft.Expression.DesignSurface.DesignerService.GetComponentName(IHostProject 项目) 在Microsoft.Expression.DesignSurface.DesignerService.InitializePrimaryProject() 在 Microsoft.Expression.DesignSurface.DesignerService.Initialize() 在 Microsoft.Expression.DesignHost.Isolation.Remoting 的 Microsoft.Expression.DesignSurface.DesignerService.InitializeWindowsRuntimeContext(IHostProject contextProject, IHostAppPackage appPackage) .RemoteDesignerService.b__0() 在 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.InvalidCastException 返回参数的类型无效。在 System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType) 在 System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue) 在 System.Runtime.Remoting。 Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 在 Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteHostProject.get_TargetAssemblyPath() 在 Microsoft。 Expression.DesignHost.Isolation.Remoting.LocalHostProject.b_ 1a(IRemoteHostProject p) 在 Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c_DisplayClass4`2.b__3() 在 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
有没有人遇到过这个/知道发生了什么?非常感谢