2017-10-29 2 views
0

Ich bin ein WPF-Projekt in VS2015 erstellen, alles funktioniert, sogar App kompiliert und läuft erfolgreich, aber ich konnte den Designer nicht laden. Ich erhalte die folgende Ausnahme:VS2015 WPF Designer konnte nicht geladen werden FileLoadException HRESULT: 0x80131040

System.IO.FileLoadException Datei oder Assembly nicht geladen werden konnte 'Microsoft.Windows.Design.Interaction, Version = 4.3.0.0, PublicKeyToken = b03f5f7f11d50a3a' oder eine ihrer Abhängigkeiten. Die Manifestdefinition der lokalisierten Assembly stimmt nicht mit der Assemblyreferenz überein. (Ausnahme von HRESULT: 0x80131040) bei System.Reflection.RuntimeAssembly._nLoad (Assemblydateiname, String Codebasis Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark & stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) bei System.Reflection .RuntimeAssembly.nLoad (Assemblydateiname, String Codebasis Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark & stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) bei System.Reflection.RuntimeAssembly.InternalLoadAssemblyName (Assembly AssemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark & StackMark, IntPtr pPrivHostBinder, Boolescher throwOnF ileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) bei System.Reflection.Assembly.Load (Assembly AssemblyRef) bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.AppDomainFactory.AddBindingRedirectForAssembly (String assembly, String PublicKeyToken, String oldversion, String newVersion) bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.AppDomainFactory.ConfigureMandatoryAssemblies() bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.AppDomainFactory.ConfigureAppDomain() bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation .Primitives.AppDomainFactory.CreateAppDomainInfo() bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolation Domain (IIsolationBoundary Grenze) bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize() bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance [T] (Typ Typ) bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize() bei Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory (IIsolationTarget isolationTarget, IObjectCatalog Katalog) bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService .CreateLease (IIsolationTarget isolationTarget) bei Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease (IIsolationTarget isolationTarget, CancellationToken cancelTo ken, DesignerServiceEntry & Eintrag, IServiceProvider serviceOverrides) bei Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo (CancellationToken cancelToken) bei Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture [T] (Culture Kultur, Func 2 func, CancellationToken cancelToken) at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0 1.b__0() bei System.Threading.Tasks.Task`1.InnerInvoke() bei System.Threading.Tasks.Task.Execute()

Alles andere funktioniert gut, nur der Designer lädt nicht auf.

+0

Es handelt sich um eine VS-Assembly, die im Verzeichnis common7 \ ide \ publicassemblies gespeichert ist. Das sollte natürlich nicht schiefgehen. Überprüfen Sie, ob das Laufwerk noch gesund ist und führen Sie die Reparatur/Neuinstallation durch. –

+0

Vielleicht hilft das: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/4d678222-9c85-4346-b2bf-ae85f6f3ebca/systemiofileloadexception-could-not-load-file-a-assembly -microsoftwindowsdesigninteraction? forum = vssetup – Isma

Antwort

0

Ok Also Neuinstallation VS2015 mit Standardeinstellungen hat die Arbeit für mich erledigt. Alles funktioniert jetzt gut.

Ursache des Problems: Ich hatte VS mit benutzerdefinierten Optionen zuvor installiert und nur Web-Tools ausgewählt. Deshalb fehlten einige Pakete. Also hat die Neuinstallation mit Standardeinstellungen funktioniert.

Verwandte Themen