[Visual Studio]_解決VS 2013 With update 4(或者全版本)遭遇 System.Exception Package failed updates, dependency or conflict validation. 的問題

前幾天重灌w81系統,都設定好後,從msdn抓vs 2013 with update 4 ultimate英文版下來安裝

安裝一路順暢…可以順利運行就放著了,直到今天上班打開project…在XAML Designer 又吐了一串錯誤…

System.Exception

Package failed updates, dependency or conflict validation.Windows cannot install package App.a4fd541fc.a343c.a4287.ab85b.afc6a0fff8b1d because this package depends on another package that could not be found. This package requires minimum version 0.0.0.0 of framework Microsoft.VCLibs.120.00.Debug published by any publisher to install. Provide the framework along with this 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.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)   at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)   at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)   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()

 

FileDownloadHandler

如上圖,因為解決完才想到要發文,但已經沒有錯誤的圖…所以圖來自:

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/4c8d61d5-8e5b-4825-8b95-865a8a8828e6/visual-studio-2013-professional-update-2-rc-designer-error?forum=vssetup

 

 

google了一下,沒有結果,但有找到在stackoverflow有人說是project的開發人員license有問題所導致

但並沒有清楚指出解決的作法…,所以瞎搞了一陣子,歸納出解法並且回應msdn上有個朋友也遇到此問題:

https://social.msdn.microsoft.com/Forums/zh-CN/894ce215-e3e0-4e26-a442-31dcb1bc46f0/xaml?forum=winstoreappzhcn

 

  1. 用administrator的身分執行Powershell
  2. 打入指令Unregister-WindowsDeveloperLicense 註銷當前的開發人員權限。
  3. 重新使用administrator的身分(重要)開啟VS
  4. 重新登入開發人員帳戶
  5. 登入後會告知XAML需要提升權限建立一些相關的檔案及資料夾,這時候確定,會跳出命令提示符。
  6. 稍等一下後,按下迴車框框消失,這時XAML DESIGNER就會正常運作了。

 

開發人員授權reference:

http://msdn.microsoft.com/zh-tw/library/windows/apps/hh974578.aspx

Leave a comment 取消回覆

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料

Exit mobile version