none
Visual Studio 2013在Windows10下无法启动XAML设计器 RRS feed

  • 问题


  • 系统是Windows10 10074版,IDE为Visual Studio 2013(Community, with Update4)。无论是VS还是Blend的工程(包括新工程),XAML设计器都会报错An Unhandled Exception has occurred。尝试过更改resources文件名,envdev回复,以及安全启动模式均未解决。然而编译运行后的程序界面正常。

    Blend的报错信息为:
    ——————————————————————————
    无法安装。请联系你的软件供应商。

    从  (C:\Users\{用户名}\AppData\Local\Microsoft\VisualStudio\12.0\Blend\ShadowCache\jt2pakfd.vdb\kjsuqae3.zrw\AppXManifest.xml)  使用程序包 App.a02f00819.ab996.a4143.a83c2.a00b73f39034b_1.0.0.0_x86_NorthAmerica_8wekyb3d8bbwe 中的目标卷 C: 执行的部署 注册 操作失败,错误为 0x80070002。有关诊断应用部署问题的帮助,请参阅 http://go.microsoft.com/fwlink/?LinkId=235160。



    VS的报错Details信息为:
    ————————————————————————
    System.ArgumentException
    An item with the same key has already been added.
       at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at MS.Internal.FontFace.PhysicalFontFamily.ConvertDictionary(IDictionary`2 dictionary)
       at MS.Internal.FontFace.PhysicalFontFamily.MS.Internal.FontFace.IFontFamily.get_Names()
       at System.Windows.Media.FontFamily.get_FamilyNames()
       at Microsoft.Expression.WpfPlatform.Views.WpfSceneView.SetViewContentInternal(ViewContentType contentType, ViewNode target, Object content)
       at Microsoft.Expression.XamlPlatform.Views.XamlSceneView.PostViewUpdate(Object rootInstance, ViewContentType oldContentType, Object error)
       at Microsoft.Expression.XamlPlatform.Views.XamlSceneView.UpdateReferencesInternal()
       at Microsoft.Expression.XamlPlatform.Views.XamlSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences)
       at Microsoft.Expression.WpfPlatform.Views.WpfSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences)
       at Microsoft.Expression.XamlPlatform.Views.XamlSceneView.ProcessPostponedUpdateInternal()
       at Microsoft.Expression.XamlPlatform.Views.XamlSceneView.ProcessPostponedUpdate(Boolean onlyIfActive)
       at Microsoft.Expression.XamlPlatform.Views.XamlSceneView.EnsureActiveViewUpdated()
       at Microsoft.Expression.WpfPlatform.Views.WpfSceneView.EnsureActiveViewUpdated()
       at Microsoft.Expression.XamlPlatform.Views.XamlSceneView.SetVisible(Boolean visible)
       at Microsoft.Expression.WpfPlatform.Views.WpfSceneView.SetVisible(Boolean visible)
       at Microsoft.Expression.DesignSurface.DocumentViewContext.CreateAndOpenViewInternal(SceneDocument document, CancellationToken cancelToken, Boolean activate, Boolean ensureOpenInHost)
       at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass13.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__12(CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass3`1.<MarshalInWithCancellation>b__2()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

    System.ArgumentException
    An item with the same key has already been added.

    Server stack trace: 
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalInSynchronous(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallModality callModality, String methodName, String filePath, Int32 lineNumber)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, String methodName, String filePath, Int32 lineNumber)
       at 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)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.MarshalInWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func, ApartmentState apartmentState)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostProject remoteProject, 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(IRemoteHostProject remoteProject, IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IRemoteDesignerService ds, IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass19.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__18(IRemoteDesignerService ds, RemoteCancellationToken remoteToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass5`1.<MarshalOutWithCancellation>b__4(IRemoteDesignerService ds)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass1`1.<MarshalOut>b__0()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

    System.ArgumentException
    An item with the same key has already been added.
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal, CancellationToken cancelToken, String methodName, String filePath, Int32 lineNumber)
       at 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)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action`1 action, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.MarshalOutWithCancellation[TResult](CancellationToken cancelToken, Func`3 func, ApartmentState apartmentState)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
    ————————————————————————————————————
    2015年5月2日 7:20

答案

  • 正常安装VS,需要以管理员身份运行的。

    >>Enable Developer Mode For Windows 10....说要到设置中选择Developer Mode,但是系统根本就打不开这个选项


    VS2013 在当前的windows 10版本上,确实有这个问题,我记得之前我是安装中文语言包就有类似的问题。

    因为大家都遇到了同样的问题,我建议你到Connect report提交一个反馈。

    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx

    产品组应该会解决这种问题的。因为是英文的report,可能需要用英文提交。

    谢谢你们的合作和反馈!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年5月8日 8:37
    版主

全部回复

  • 您好,

    对于windows10的问题,当前毕竟不是正式版本,而且官方也没有说明在windows10上,VS2013 是完全支持的,建议你用VS2015 RC版本试试。

    你是在创建WPF程序遇到的问题吗?

    我会试着搭一个环境试试,如果我有最新的消息,我会及时更新的。

    另外,你有没有以管理员身份安装VS2013 community版本? 有没有试着修复一下VS,然后重新创建一个新的项目?


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年5月5日 10:52
    版主
  • 我的VS2015 RC和VS2013安装后都出现同样的问题。不过我都没有以管理员身份安装。XAML设计窗口出现这个错误

    System.Exception
    包无法进行更新、相关性或冲突验证。

    Windows 无法安装程序包 App.a3e1cbfa0.a0dfb.a458b.a930b.a89bb226cd5fb,因为找不到此程序包所依赖的另一个程序包。此程序包需要具有 any publisher 发布的框架 Microsoft.VCLibs.120.00.Debug 的最低版本 0.0.0.0 才能安装。请随此程序包提供该框架。
       at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
       at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, FrameworkName targetFramework, String identifier, String baseDirectory)
       at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
       at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
       at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()
       at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
       at Microsoft.Expression.DesignHost.Isolation.IsolatedObjectFactory.Initialize()
       at Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
       at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
       at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
       at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry)
       at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()

    另外刚进入VS也有这个提示:

    Enable Developer Mode For Windows 10....说要到设置中选择Developer Mode,但是系统根本就打不开这个选项

    2015年5月8日 4:29
  • 正常安装VS,需要以管理员身份运行的。

    >>Enable Developer Mode For Windows 10....说要到设置中选择Developer Mode,但是系统根本就打不开这个选项


    VS2013 在当前的windows 10版本上,确实有这个问题,我记得之前我是安装中文语言包就有类似的问题。

    因为大家都遇到了同样的问题,我建议你到Connect report提交一个反馈。

    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx

    产品组应该会解决这种问题的。因为是英文的report,可能需要用英文提交。

    谢谢你们的合作和反馈!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年5月8日 8:37
    版主