2015-12-30 11 views
9

Właśnie zainstalowałem aktualizację Visual Studio 2015 1 i nie mogę już używać widoku projektanta WPF. Mówi, że wystąpił nieobsługiwany wyjątek. Oto ślad stosu. :Nie można załadować pliku lub zespołu "Microsoft.Windows.Design.Interaction, wersja = 4.3.0.0, PublicKeyToken = b03f5f7f11d50a3a '

System.IO.FileLoadException 
Could not load file or assembly 'Microsoft.Windows.Design.Interaction, Version=4.3.0.0, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 
    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 
    at System.Reflection.Assembly.Load(AssemblyName assemblyRef) 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.AppDomainFactory.AddBindingRedirectForAssembly(String assemblyName, String publicKeyToken, String oldVersion, String newVersion) 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.AppDomainFactory.ConfigureMandatoryAssemblies() 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.AppDomainFactory.ConfigureAppDomain() 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.AppDomainFactory.CreateAppDomainInfo() 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary) 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize() 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type) 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize() 
    at Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog) 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget) 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry, IServiceProvider serviceOverrides) 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken) 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken) 
    at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0`1.<StartTask>b__0() 
    at System.Threading.Tasks.Task`1.InnerInvoke() 
    at System.Threading.Tasks.Task.Execute() 

Przed rozpoczęciem aktualizacji VS2015 bardzo dobrze działało. Jak mogę to naprawić?

+0

naprawiłeś to? –

+0

@ Simon_Weaver, nie mogłem. Próbowałem odinstalować i zainstalować jak 2 razy. Więc zrezygnowałem i odinstalowałem Update 1. –

Odpowiedz

1

Zrobiłem naprawę Visual Studio 2015 i zadziałało.

Nie spodziewałem się, że będzie szczery, ale tak się stało. To jest funkcja naprawy w "Programy i funkcje". Zajęło to około 45 minut, a następnie wymaga ponownego uruchomienia komputera.

Może być konieczne zamknięcie wszystkich otwartych okien i przebudowanie rozwiązania.

Po naprawie, filestamp z

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ 
    PublicAssemblies\Microsoft.Windows.Design.Interaction.dll" 

poszedł od lipca do listopada - tak to na pewno był uszkodzony zainstalować.

+0

Dzięki. Spróbuję tego jutro i zobaczę, czy to działa. –

+0

Najprawdopodobniej, jeśli spojrzysz na ten katalog, zobaczysz datę lipca w bibliotece DLL. Podczas pierwszej aktualizacji miałem pewne błędy, ale oczywiście te błędy nigdy nie miały sensu, dopóki nie napotkasz problemu. –

+0

Zainstalowałem Update 1 ponownie, ale dostałem błąd tutaj: http://prntscr.com/9nh1jq Czy otrzymałeś błąd? 'Error code: 0x80091007' –

Powiązane problemy