gpt4 book ai didi

c# - Visual Studio 2015 XAML 设计器因 System.Exception 而失败

转载 作者:太空狗 更新时间:2023-10-29 23:30:17 24 4
gpt4 key购买 nike

我在 Windows 10 专业版正式版上运行 Visual Studio 2015 Community。 Visual Studio 安装没有任何问题或错误,但 XAML 设计器崩溃并出现以下错误:

enter image description here

System.Exception
Install failed. Please contact your software vendor.

Deployment Register operation with target volume C: on Package 74da95b4-525a-49a9-99a1-472cc815a148_1.0.0.0_x86_NorthAmerica_8wekyb3d8bbwe from: (AppXManifest.xml) failed with error 0x8E5E0408. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, IIsolationTarget isolationTarget, String baseDirectory)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry, IServiceProvider serviceOverrides)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0`1.<StartTask>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

我正在开发 Windows Phone 8.1 应用程序,但问题与我的应用程序无关,因为我尝试创建一个空白的 Windows 10 UWP 应用程序和一个空白的 Windows 8.1 通用应用程序,两者在尝试时都出现相同的错误为默认的 MainPage.xaml 打开 XAML 设计器。

我还尝试用它的另一个实例调试 Visual Studio,但它没有抛出任何异常。

这似乎是 XAML 设计器中的错误,但如果有人知道解决方法,请与我分享。

提前致谢!

编辑:

问题已由 Visual Studio 2015 Update 1 解决

最佳答案

对于许多其他人,在系统->高级系统设置->环境变量中删除“平台”环境变量已经解决了这个问题(主要是在 HP PC 或笔记本电脑上)。

您可能想试一试。有关详细信息,请参阅 XAML designer crash in VS 2015 on Windows 10

关于c# - Visual Studio 2015 XAML 设计器因 System.Exception 而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31901472/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com