询问者
What is wrong with that Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteException?

问题
-
Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteException
Set connectionId threw an exception.
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Microsoft.Expression.DesignSurface.UserInterface.PlatformPane.PlatformPane.InitializeComponent()
at Microsoft.Expression.DesignSurface.UserInterface.PlatformPane.PlatformPane..ctor(DesignerContext context)
at Microsoft.Expression.DesignSurface.UserInterface.WindowContext.<.ctor>b__b()
at Microsoft.Expression.DesignSurface.UserInterface.WindowContext.GetToolWindow(String identifier)
at Microsoft.Expression.DesignSurface.DesignerService.GetToolWindow(String identifier)
at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.GetToolWindow>b__f()
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass19`1.<MarshalIn>b__18()
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.Invoke()
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.InvokeCall(Call call)
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.ProcessQueue(CallQueue queue)
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.ProcessInboundQueue(Int32 identity)
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.OnWindowMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at Microsoft.Expression.DesignHost.Isolation.Remoting.MessageOnlyHwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Microsoft.Expression.DesignHost.Isolation.IsolationProcess.RunApplication()
at Microsoft.Expression.DesignHost.Isolation.IsolationProcess.DesignProcessViewProvider.<>c__DisplayClass7.<applicationView_Activated>b__6()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteException
无法将类型为“System.Windows.Controls.CheckBox”的对象强制转换为类型“Microsoft.Expression.Utility.ValueEditors.ChoiceEditor”。
at Microsoft.Expression.DesignSurface.UserInterface.PlatformPane.PlatformPane.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
全部回复
-
你是开发Metro风格应用程序的时候遇到了问题吗? 还是你使用Remote的时候遇到的问题? 请详细描述下,光一个Exception Stack 信息,我无法判定。 不过从这个Call Stack中,我没有找到关于Metro App的call, 都是WPF中相关的组件。
另外,如果并非是Metro开发问题,请根据此贴来选择合适的论坛 http://social.msdn.microsoft.com/Forums/zh-CN/metroappzhcn/thread/2e5ac29b-8b99-4ee3-8fa8-8dc2b5e8e03e 谢谢。
Bob Bao [MSFT]
MSDN Community Support | Feedback to us
-
Well, 我看见重复的问题了: http://social.msdn.microsoft.com/Forums/zh-CN/metroappzhcn/thread/7c6e5cd5-252e-4a99-89ac-29a383858b26 似乎是VS打开Metro应用时候报出的错误, 是吗?
请能够较详细描述问题,猜谜语不利于问题的解决。
Bob Bao [MSFT]
MSDN Community Support | Feedback to us