本文介绍了没有Metro应用程序的设计视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我无法设计任何东西我总是会收到此错误...


System.Runtime.InteropServices.COMException


此Metro风格应用程序不支持合同指定或未安装。 (HRESULT异常:0x80270254)



  在Microsoft.Expression.HostUtility.AppPackage.NativeMethods.IApplicationActivationManager.ActivateApplication(String appUserModelId,String activationContext,ActivateOptions options,Int32& processId)  
at Microsoft.Expression.HostUtility.AppPackage.WrtUtility.ActivateApplication(String appUserModelId,String activationContext,Object site)   at Microsoft.Expression.HostUtility.Platform.TailoredDomainFactory.CreateDesignerProcess(String applicationPath,
String clientPort,Uri hostUri,IDictionary environmentVariables,Int32& processId,Object& processData)  在Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory,
IIsolationBoundary boundary,AppDomainSetup appDomainInfo,FrameworkName targetFramework,String identifier)  在Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)  
at Microsoft.Expression.HostUtility.Platform.TailoredDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)  在Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()  在Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance [T](键入
type)  在Microsoft.Expression.DesignHost.Isolation.IsolatedExportProvider.Initialize()  在Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateExportProvider(IIsolationTarget isolationTarget,ICatalogFactory catalogFactory,
IExportFilter过滤器)  在Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)  在Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget,
DesignerServiceEntry& entry)  在Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateDesignerViewInfo(IIsolationTarget isolationTarget,IHostSourceItem item,IHostTextEditor editor,CancellationTokenSource cancelSource)  
at Microsoft.Expression.DesignHost.IsolatedDesignerService。<> c__DisplayClass1b。< CreateDesigner> b__19()  在System.Threading.Tasks.Task`1.InnerInvoke()  在System.Threading.Tasks.Task.Execute()



解决方案是什么?


解决方案

I cannot design anything I always get this error...

System.Runtime.InteropServices.COMException

This Metro style application does not support the contract specified or is not installed. (Exception from HRESULT: 0x80270254)

   at Microsoft.Expression.HostUtility.AppPackage.NativeMethods.IApplicationActivationManager.ActivateApplication(String appUserModelId, String activationContext, ActivateOptions options, Int32& processId)   at Microsoft.Expression.HostUtility.AppPackage.WrtUtility.ActivateApplication(String appUserModelId, String activationContext, Object site)   at Microsoft.Expression.HostUtility.Platform.TailoredDomainFactory.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)   at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)   at Microsoft.Expression.HostUtility.Platform.TailoredDomainFactory.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.IsolatedExportProvider.Initialize()   at Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateExportProvider(IIsolationTarget isolationTarget, ICatalogFactory catalogFactory, IExportFilter filter)   at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)   at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, DesignerServiceEntry& entry)   at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateDesignerViewInfo(IIsolationTarget isolationTarget, IHostSourceItem item, IHostTextEditor editor, CancellationTokenSource cancelSource)   at Microsoft.Expression.DesignHost.IsolatedDesignerService.<>c__DisplayClass1b.<CreateDesigner>b__19()   at System.Threading.Tasks.Task`1.InnerInvoke()   at System.Threading.Tasks.Task.Execute()

What is the solution?

解决方案


这篇关于没有Metro应用程序的设计视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 16:41