当我试图在Windows 8中的visual studio 2011中创建一个metro风格时,设计师没有加载

时间:2012-04-25 09:39:20

标签: wpf silverlight xaml windows-8

我在设计界面上收到以下错误消息:

An unhandled exception has occured
Details:
System.Runtime.Remoting.RemotingException
[2108] Designer process terminated unexpectedly!
   at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain.Microsoft.Expression.DesignHost.Isolation.IIsolationDomain.CreateInstance(String assemblyName, String assemblyCodeBase, String typeName)
   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.DesignerViewWrapper.<>c__DisplayClass54.<EnsureViewTask>b__52()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

我怎样摆脱这个?

3 个答案:

答案 0 :(得分:1)

答案 1 :(得分:1)

以上链接已停止,但我found a page引用该链接并将复制此处的步骤:

* Shut down all running instances of Visual Studio.
* Launch a command prompt as an Administrator.
* Type the following in sequence:
    pushd %VS110COMNTOOLS%
    icacls ..\IDE /grant "ALL APPLICATION PACKAGES":(OI)(F)
    icacls ..\IDE /grant "ALL APPLICATION PACKAGES":(CI)(F)
    icacls ..\IDE\PrivateAssemblies /grant "ALL APPLICATION PACKAGES":(OI)(F)
    icacls ..\IDE\PrivateAssemblies /grant "ALL APPLICATION PACKAGES":(CI)(F)
    icacls ..\IDE\PublicAssemblies /grant "ALL APPLICATION PACKAGES":(OI)(F)
    icacls ..\IDE\PublicAssemblies /grant "ALL APPLICATION PACKAGES":(CI)(F)
* Restart Visual Studio and try your scenario again.

话虽这么说,但这并没有解决我的特殊问题,这个问题与此问题相似但并不完全相同。也许这会帮助别人。

答案 2 :(得分:0)

我也面对这个令人困惑的错误。删除一个TextBox在一个页面,瞧..我在这个页面中解释了错误的对话框,说错误:[3028] Designer process terminated unexpectedly! Unable to load xaml designer pages。解决方案?删除控件后,尝试重建解决方案。 CTRL + SHIFT + B

适合我!

  • 现在我可以继续解决我的这个任务;)