C# 未处理的异常阻止我在Blend 2012中打开项目
我一直在遵循MS站点上的教程,并来到这里: 当我切换回blend时,我遇到了一个巨大的错误,我不知道这意味着什么,也不知道如何继续: 发生未处理的异常: System.InvalidCastException 返回参数的类型无效。 位于Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext NestedCallContext,BlockingCall调用,WaitHandle timeoutSignal) 位于Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(操作操作,Int32 TargetPartmentId,WaitHandle中止,WaitHandle timeoutSignal) 位于Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(操作操作,Int32 TargetPartmentId,WaitHandle中止,CallSynchronizationMode syncMode,WaitHandle timeoutSignal) 在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.Marshallout[TValue](RemoteHandleC# 未处理的异常阻止我在Blend 2012中打开项目,c#,visual-studio,blend,C#,Visual Studio,Blend,我一直在遵循MS站点上的教程,并来到这里: 当我切换回blend时,我遇到了一个巨大的错误,我不知道这意味着什么,也不知道如何继续: 发生未处理的异常: System.InvalidCastException 返回参数的类型无效。 位于Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext NestedCallContext,BlockingCall调
1 targetObject,Action Action,CallSynchronizationMode syncMode)
在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.Marshallout[TValue](RemoteHandle
1 targetObject,Action1 Action,CallSynchronizationMode syncMode)
在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.Initialize()中
在Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget、CancellationToken cancelToken、DesignerServiceEntry&entry)中
位于Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerInfo(CancellationToken cancelToken)
在Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo区域性,Func
2 Func,CancellationToken cancelToken)
在Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.c_uuDisplayClassA1.b_uu6()中
在System.Threading.Tasks.Task中
1.InnerInvoke()
在System.Threading.Tasks.Task.Execute()中
System.InvalidCastException
返回参数的类型无效
服务器堆栈跟踪:
位于Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext NestedCallContext,BlockingCall调用,WaitHandle timeoutSignal)
位于Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action Action,Int32 TargetPartmentId)
位于Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject,Action)
在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.Initialize()中
在System.Runtime.Remoting.Messaging.StackBuilderSink.\u PrivateProcessMessage(IntPtr md,对象[]参数,对象服务器,对象[]和输出参数)
在System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)中
在[0]处重试异常:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)
at System.Runtime.Remoting.proxy.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型)
在Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.Initialize()中
位于Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.b_a(IRemoteDesignerService d)
在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.c_DisplayClass1`1.b_u0()中
在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 TargetPartmentId,WaitHandle中止,WaitHandle timeoutSignal)
位于Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(操作操作,Int32 TargetPartmentId,WaitHandle中止,CallSynchronizationMode syncMode,WaitHandle timeoutSignal)
在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.Marshallout[TValue](RemoteHandle1 targetObject,Action Action,CallSynchronizationMode syncMode)
在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.InitializeWindowsRuntimeContext(IHostProject contextProject,IHostAppPackage appPackage)
在Microsoft.Expression.DesignSurface.DesignerService.InitializePrimaryProject()中
在Microsoft.Expression.DesignSurface.DesignerService.Initialize()中
在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.b__0()中
在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()中
System.InvalidCastException
返回参数的类型无效。
at System.Runtime.Remoting.proxy.RealProxy.ValidateReturnArg(对象参数,类型paramType)
在System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg,Object[]outArgs,Object returnValue)上
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)
at System.Runtime.Remoting.proxy.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型)
在Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteHostProject.get_TargetAssemblyPath()中
在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalHostProject.b_1a(I