问题描述
解决方案
解决方案二:
图片看不清你应该发完整图片,不要自己缩放
解决方案三:
System.NullReferenceExceptionObjectreferencenotsettoaninstanceofanobject.在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContextnestedCallContext,BlockingCallcall,WaitHandletimeoutSignal)在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Actionaction,Int32targetApartmentId,WaitHandleaborted,WaitHandletimeoutSignal)在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Actionaction,Int32targetApartmentId,WaitHandleaborted,CallSynchronizationModesyncMode,WaitHandletimeoutSignal)在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1targetObject,Actionaction,CallSynchronizationModesyncMode)在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1targetObject,Func`2func,CallSynchronizationModesyncMode)在Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Typetype)在Microsoft.Expression.DesignHost.Isolation.IsolatedExportProvider.Initialize()在Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateExportProvider(IIsolationTargetisolationTarget,ICatalogFactorycatalogFactory,IExportFilterfilter)在Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTargetisolationTarget)在Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTargetisolationTarget,CancellationTokencancelToken,DesignerServiceEntry&entry)在Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationTokencancelToken)在Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfoculture,Func`2func,CancellationTokencancelToken)在Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()在System.Threading.Tasks.Task`1.InnerInvoke()在System.Threading.Tasks.Task.Execute()System.NullReferenceExceptionObjectreferencenotsettoaninstanceofanobject.Serverstacktrace:atMicrosoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContextnestedCallContext,BlockingCallcall,WaitHandletimeoutSignal)atMicrosoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Actionaction,Int32targetApartmentId)atMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObjecttargetObject,Actionaction)atMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObjecttargetObject,Func`1func)atMicrosoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.RemoteIsolationContext.Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.IRemoteContext.CreateInstance(StringassemblyName,StringassemblyCodeBase,StringtypeName)atSystem.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtrmd,Object[]args,Objectserver,Object[]&outArgs)atSystem.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessagemsg)Exceptionrethrownat[0]:在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessagereqMsg,IMessageretMsg)在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&msgData,Int32type)在Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.IRemoteContext.CreateInstance(StringassemblyName,StringassemblyCodeBase,StringtypeName)在Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.<>c__DisplayClassa`1.<CreateInstance>b__9(IRemoteContextc)在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()System.NullReferenceExceptionObjectreferencenotsettoaninstanceofanobject.atMicrosoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.RemoteIsolationContext.<>c__DisplayClass18.<Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.IRemoteContext.CreateInstance>b__17()atMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()atMicrosoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
解决方案四:
界面就像是这样的:发生了未经处理的错误!单击重新加载设计器!System.NullReferenceExceptionObjectreferencenotsettoaninstanceofanobject.在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContextnestedCallContext,BlockingCallcall,WaitHandletimeoutSignal)在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Actionaction,Int32targetApartmentId,WaitHandleaborted,WaitHandletimeoutSignal)在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Actionaction,Int32targetApartmentId,WaitHandleaborted,CallSynchronizationModesyncMode,WaitHandletimeoutSignal)在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1targetObject,Actionaction,CallSynchronizationModesyncMode)在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1targetObject,Func`2func,CallSynchronizationModesyncMode)在Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Typetype)在Microsoft.Expression.DesignHost.Isolation.IsolatedExportProvider.Initialize()在Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateExportProvider(IIsolationTargetisolationTarget,ICatalogFactorycatalogFactory,IExportFilterfilter)在Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTargetisolationTarget)在Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTargetisolationTarget,CancellationTokencancelToken,DesignerServiceEntry&entry)在Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationTokencancelToken)在Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfoculture,Func`2func,CancellationTokencancelToken)在Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()在System.Threading.Tasks.Task`1.InnerInvoke()在System.Threading.Tasks.Task.Execute()System.NullReferenceExceptionObjectreferencenotsettoaninstanceofanobject.Serverstacktrace:atMicrosoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContextnestedCallContext,BlockingCallcall,WaitHandletimeoutSignal)atMicrosoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Actionaction,Int32targetApartmentId)atMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObjecttargetObject,Actionaction)atMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObjecttargetObject,Func`1func)atMicrosoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.RemoteIsolationContext.Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.IRemoteContext.CreateInstance(StringassemblyName,StringassemblyCodeBase,StringtypeName)atSystem.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtrmd,Object[]args,Objectserver,Object[]&outArgs)atSystem.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessagemsg)Exceptionrethrownat[0]:在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessagereqMsg,IMessageretMsg)在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&msgData,Int32type)在Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.IRemoteContext.CreateInstance(StringassemblyName,StringassemblyCodeBase,StringtypeName)在Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.<>c__DisplayClassa`1.<CreateInstance>b__9(IRemoteContextc)在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()System.NullReferenceExceptionObjectreferencenotsettoaninstanceofanobject.atMicrosoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.RemoteIsolationContext.<>c__DisplayClass18.<Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.IRemoteContext.CreateInstance>b__17()atMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()atMicrosoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
解决方案五:
各位大虾请指教