1

私はMSサイトのチュートリアルに従っていて、ここにたどり着きました。

http://msdn.microsoft.com/en-us/library/windows/apps/jj129435.aspx

ブレンドに切り替えたとき、それが何を意味するのか、どのように進めるのかわからないという大きなエラーが発生しました。

未処理の例外が発生しました:

System.InvalidCastException戻り引数の型が無効です。Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContextnestedCallContext、BlockingCall call、WaitHandle timeoutSignal)at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action、Int32 targetApartmentId、WaitHandle )at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action、Int32 targetApartmentId、WaitHandle aborted、CallSynchronizationMode syncMode、WaitHandle timeoutSignal)at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TValue](RemoteHandle 1 targetObject, Action action, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle1 targetObject、アクション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, Func2 func、CancellationToken cancelToken)atMicrosoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler。<>c__DisplayClassa 1.<StartTask>b__6() at System.Threading.Tasks.Task1.InnerInvoke()at System.Threading.Tasks.Task.Execute()

System.InvalidCastException戻り引数の型が無効です。

サーバースタックトレース:Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContextnestedCallContext、BlockingCall call、WaitHandle timeoutSignal)at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action、Int32 targetApartmentId) Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject、Action action)at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.Initialize()at System .Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md、Object [] args、Object server、Object []&outArgs)at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

[0]で再スローされた例外:System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg、IMessage retMsg)at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&msgData、Int32 type)atMicrosoft.Expression。 DesignHost.Isolation.Remoting.IRemoteDesignerService.Initialize()at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.b_ a(IRemoteDesignerService d)atMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。<> c_DisplayClass1`1。 Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()のb__0()

System.InvalidCastException戻り引数の型が無効です。Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContextnestedCallContext、BlockingCall call、WaitHandle timeoutSignal)at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action、Int32 targetApartmentId、WaitHandle )at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action、Int32 targetApartmentId、WaitHandle aborted、CallSynchronizationMode syncMode、WaitHandle timeoutSignal)at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TValue](RemoteHandle1 targetObject, Action action, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle1 targetObject、Func`2 func、CallSynchronizationMode syncMode)at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalHostProject.Microsoft.Expression.DesignHost.IHostProject.get_TargetAssemblyPath()at Microsoft.Expression.DesignSurface.DesignerService.GetComponentName(IHostProject project)at Microsoft.Expression.DesignSurface.DesignerService.InitializePrimaryProject()のMicrosoft.Expression.DesignSurface.DesignerService.Initialize()のMicrosoft.Expression.DesignSurface.DesignerService.Initialize(IHostProject contextProject、IHostAppPackage appPackage) Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()の.RemoteDesignerService.b__0()

System.InvalidCastException戻り引数の型が無効です。System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg、Type paramType)at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg、Object [] outArgs、Object returnValue)atSystem.Runtime.Remoting。 Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg、IMessage retMsg)at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&msgData、Int32 type)at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteHostProject.get_TargetAssemblyPath() Expression.DesignHost.Isolation.Remoting.LocalHostProject.b_ 1a(IRemoteHostProject p)atMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。<>cMicrosoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()の_DisplayClass4`2.b__3()

誰かが以前にこれに直面した/何が起こっているのか知っていますか?どうもありがとう

4

1 に答える 1

1

Microsoftが2012年9月11日14:05に投稿

他のユーザーからも同様のスタックトレースが見られます。プロジェクトで.Net2.0アセンブリを参照していますか?残念ながら、デザイナは古い(.Net 2.0)アセンブリの型を処理できないため、デザイナがクラッシュします。.Net 2.0アセンブリを削除してみて、それで修正されるかどうかを確認してください。

問題は、.Net2.0を対象としたリンクされたプロジェクトです。誰が知っているでしょう。デザイナーがいつもクラッシュしていないときに作業するのにとても便利です。

http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/f4af2020-ed43-4139-9dc9-759ce3b38377/

于 2013-03-26T12:00:16.197 に答える