Microsoft Blend 2013 "Could not find Windows Runtime type 'Windows.ApplicationModel.Package'" 错误
Microsoft Blend 2013 "Could not find Windows Runtime type 'Windows.ApplicationModel.Package'" error
当我在 Blend 中为 Visual Studio 2013 打开任何 Windows 8.1 项目(包括在应用程序本身中创建的空白新项目)时,我遇到以下针对 XAML 文件的设计器问题:
An unhandled exception has occured
Click here to reload the designer
Details:
System.TypeLoadException
Could not find Windows Runtime type 'Windows.ApplicationModel.Package'.
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.Expression.DesignHost.Isolation.IsolationService.AttachEvents(IsolatedObjectFactory objectFactory)
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()"
windows 8.1 项目过去加载没有问题,我已经有几个星期没有使用设计器了,现在我得到这个错误。我是 运行 Windows 10. WPF 项目加载正常。
有没有人遇到过类似的问题或知道如何解决?预先感谢您的帮助。
我还没有找到错误的原因,但是卸载并重新安装应用程序解决了问题。请注意,我不得不卸载程序,当我第一次尝试修复时 Visual Studio 它没有解决问题。
当我在 Blend 中为 Visual Studio 2013 打开任何 Windows 8.1 项目(包括在应用程序本身中创建的空白新项目)时,我遇到以下针对 XAML 文件的设计器问题:
An unhandled exception has occured
Click here to reload the designer
Details:
System.TypeLoadException
Could not find Windows Runtime type 'Windows.ApplicationModel.Package'.
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.Expression.DesignHost.Isolation.IsolationService.AttachEvents(IsolatedObjectFactory objectFactory)
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()"
windows 8.1 项目过去加载没有问题,我已经有几个星期没有使用设计器了,现在我得到这个错误。我是 运行 Windows 10. WPF 项目加载正常。
有没有人遇到过类似的问题或知道如何解决?预先感谢您的帮助。
我还没有找到错误的原因,但是卸载并重新安装应用程序解决了问题。请注意,我不得不卸载程序,当我第一次尝试修复时 Visual Studio 它没有解决问题。