2

我在设计屏幕上收到以下错误消息:

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()

我怎样才能摆脱这个?

4

2 回答 2

1

上面的链接已失效,但我找到了一个引用该链接的页面,并将在此处复制步骤:

* 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.

话虽如此,这并没有解决我的特定问题,该问题与此类似但不完全相同。也许这会帮助别人。

于 2013-11-13T02:22:48.550 回答
0

我也面临这个令人困惑的错误。在页面中放置一个文本框,瞧.. 我得到了无样式对话框,如本页所述错误:[3028] 设计器进程意外终止!无法加载 xaml 设计器页面。解决方案?删除控件后,尝试重建解决方案。CTRL+SHIFT+B

为我工作!

  • 现在我可以继续解决我的这个任务;)
于 2014-04-22T09:59:11.543 回答