我在Visual Studio 2012中创建一个新的全景应用程序我在Designer中看到了下面提到的错误:
以下是错误的详细信息。 详情:
System.NullReferenceException
你调用的对象是空的。
在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal)
在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(操作操作,Int32 targetApartmentId,WaitHandle中止,WaitHandle timeoutSignal)
在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(操作操作,Int32 targetApartmentId,WaitHandle中止,CallSynchronizationMode syncMode,WaitHandle timeoutSignal)
在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TValue](RemoteHandle 1 targetObject, Action action, CallSynchronizationMode syncMode)
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle
1 targetObject,Func 2 func, CallSynchronizationMode syncMode)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func
2 func)
在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem项目,IHostTextEditor编辑器,CancellationToken cancelToken)
在Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
System.NullReferenceException
你调用的对象是空的。
服务器堆栈跟踪:
在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal)
在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action,Int32 targetApartmentId)
在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject,Action action)
在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn [TResult](IRemoteObject targetObject,Func 1 func)
at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.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.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d)
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4
2.b__3()
在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.NullReferenceException
你调用的对象是空的。
在Microsoft.Expression.Platform.PlatformService.PlatformEntry.get_PlatformCreator()
在Microsoft.Expression.Platform.PlatformService.GetPlatformCreator(String frameworkSpec)
在Microsoft.Expression.Platform.PlatformService.IsCompatibleFramework(FrameworkName hostFramework,FrameworkName guestFramework)
在Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject项目,IPlatform平台,布尔创建)
在Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem)
在Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem项目,IHostTextEditor编辑器,CancellationToken cancelToken)
在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService。&lt;&gt; c__DisplayClass10。&lt;&gt; c__DisplayClass12.b__f(CancellationToken cancelToken)
在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation [TResult](IRemoteCancellationToken remoteToken,Func 2 func)
at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e()
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16
1.b__15()
在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
更多详情:
我在基于C#的Windows Phone(全景,数据绑定应用,HTML5等)中创建的每种类型的项目都存在错误
我尝试了什么:
如果你想要一个包含重新安装的解决方案,那么请不要打扰。我已经尝试了太多次了。
更多信息
我刚刚安装了Visual Studio 2012 with blend。在安装时我取消选中Blend。然后创建了一个新的Windows Phone项目。下载了SDK 4小时(慢速网..不相关)然后我重新启动计算机一旦完成。然后我为windows phone创建了一个新项目。并得到了同样的错误。如果我遗失了什么,请指导我。
答案 0 :(得分:0)
已向Microsoft报告此错误。请看here。
然而re-installation did trick for most of them
。请确保按照报告的here执行这些步骤,以便重新安装VS2012。
如果有帮助(Source) -
,请尝试此操作我也有这个问题。我能够通过添加来修复它
<loadFromRemoteSources enabled="true"/>
到xdesproc.exe.config(如 Marco声明)和devenv.exe.config。这两个文件都在C:\ Program中 文件(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE。