当我在Windows Phone项目中打开xaml时,会显示错误:
System.Runtime.Remoting.RemotingException
[3392] Designer sudenly stoped running!
点击"重新加载页面"按钮显示另一个错误:
System.InvalidCastException指定的强制转换无效。 在MS.Internal.XcpImports.CheckHResult(UInt32 hr)中 在MS.Internal.XcpImports.DependencyProperty_GetDefaultValue(DependencyProperty) dp,DependencyObject propertyOwner,UInt32 propertyOwnerTypeId) 在System.Windows.CoreDependencyProperty.GetMetadata(UInt32 propertyOwnerTypeId)中 在System.Windows.CoreDependencyProperty.GetMetadataCore(Type forType)中 在Microsoft.Expression.SilverlightPlatform.SilverlightDependencyPropertyImplementation.GetDefaultValue(IType TARGETTYPE) 在Microsoft.Expression.DesignModel.Metadata.DependencyPropertyReferenceStep.GetDefaultValue(IType TARGETTYPE) 在Microsoft.Expression.SilverlightPlatform.SilverlightDesignTimeProperties.ResolveImplementation(IPlatformMetadata) platformMetadata,DesignTimePropertyId neutralProperty,IType declaringType,PropertyChangedCallback回调) 在Microsoft.Expression.SilverlightPlatform.SilverlightDesignTimeProperties.RegisterProperty(IPropertyId) neutralPropertyKey,IType declaringType,PropertyChangedCallback 打回来) 在Microsoft.Expression.SilverlightPlatform.SilverlightMiscDesignTimeProperties.Initialize(SilverlightDesignTimeProperties) designTimeProperties) 在Microsoft.Expression.SilverlightPlatform.SilverlightDesignTimeProperties..ctor(IPlatformTypes) platformMetadata) 在Microsoft.Expression.SilverlightPlatform.SilverlightPlatformMetadata.Initialize()中 在Microsoft.Expression.SilverlightPlatform.SilverlightPlatform.Initialize()中 在Microsoft.Expression.Platform.PlatformCreatorBase.CreatePlatform(IPlatformReferenceAssemblyResolver)中 referenceAssemblyResolver) 在Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject)中 项目,IPlatform平台,布尔创建) 在Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem)中 sourceItem) 在Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem)中 item,IHostTextEditor编辑器,CancellationToken cancelToken) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService。<> c_ DisplayClass13.b _12(CancellationToken cancelToken) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService。<> c__DisplayClass3
1.<MarshalInWithCancellation>b__2() in Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker() System.InvalidCastException Specified cast is not valid. Server stack trace: in Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) in Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalInSynchronous(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallModality callModality, String methodName, String filePath, Int32 lineNumber) in Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, String methodName, String filePath, Int32 lineNumber) in Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, ApartmentState apartmentState, String memberName, String filePath, Int32 lineNumber) in Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.MarshalInWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func
2 func,ApartmentState apartmentState) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostProject remoteProject,IRemoteHostSourceItem remoteItem,IRemoteHostTextEditor remoteEditor,IRemoteCancellationToken remoteToken) 在System.Runtime.Remoting.Messaging.StackBuilderSink。 PrivateProcessMessage(IntPtr) md,Object [] args,Object server,Object []&amp; outArgs) 在System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage中) MSG) 在[0]处重新抛出异常: 在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) 在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke中(MessageData&amp; msgData,Int32类型) 在Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostProject)中 remoteProject,IRemoteHostSourceItem remoteItem,IRemoteHostTextEditor remoteEditor,IRemoteCancellationToken cancelToken) 在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IRemoteDesignerService)中 ds,IHostSourceItem项,IHostTextEditor编辑器, RemoteCancellationToken remoteCancelToken) 在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService。&lt;&gt; c _DisplayClass19.b_ 18(IRemoteDesignerService) ds,RemoteCancellationToken remoteToken) 在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService。&lt;&gt; c _DisplayClass51.<MarshalOutWithCancellation>b__4(IRemoteDesignerService ds) in Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass1
1.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(Action action,Int32 targetApartmentId,WaitHandle aborted,WaitHandle timeoutSignal,CancellationToken cancelToken,String methodName, String filePath,Int32 lineNumber) 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action,Int32 targetApartmentId,WaitHandle aborted,CancellationToken cancelToken,CallSynchronizationMode syncMode,WaitHandle timeoutSignal,String methodName,String filePath,Int32 lineNumber) 在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TValue](RemoteHandle1 targetObject, Action action, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber) in Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle
1 targetObject,Action1 action, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber) in Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.MarshalOutWithCancellation[TResult](CancellationToken cancelToken, Func
3 func,ApartmentState apartmentState) 在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem)中 item,IHostTextEditor编辑器,CancellationToken cancelToken) 在Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
我尝试重新安装VS2013,Silverligth 5 SDK,但它没有t help.
Rebuilding project also didn
帮助。