ResXResourceManager: Addon fails to load

When opening the addon, the window remains blank, and the following exception is written to the output window:

Init: 431 ms
ResX Resource Manager loaded.
Home: https://github.com/tom-englert/ResXResourceManager
Report issues: https://github.com/tom-englert/ResXResourceManager/issues
Support the project by adding a short review: https://marketplace.visualstudio.com/items?itemName=TomEnglert.ResXManager#review-details
Assembly location: C:\Users\marti\AppData\Local\Microsoft\VisualStudio\15.0_867e1c68\Extensions\5hg4dzd1.2rk
Version: 1.16.1044.0
.NET Framework Version: 461308 (https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed)
Error: System.Windows.Markup.XamlParseException: Add value to collection of type 'System.Windows.Interactivity.BehaviorCollection' threw an exception. ---> System.ArgumentException: Cannot add instance of type 'CommandRoutingBehavior' to a collection of type 'BehaviorCollection'. Only items of type 'T' are allowed.
   at System.Windows.FreezableCollection`1.Cast(Object value)
   at System.Windows.FreezableCollection`1.System.Collections.IList.Add(Object value)
   at System.Xaml.Schema.XamlTypeInvoker.AddToCollection(Object instance, Object item)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.Add(Object collection, XamlType collectionType, Object value, XamlType valueXamlType)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at tomenglertde.ResXManager.VSIX.Visuals.VsixShellView.InitializeComponent() in C:\Agent\_work\9\s\ResXManager.VSIX\Visuals\VsixShellView.xaml:line 1
   at tomenglertde.ResXManager.VSIX.Visuals.VsixShellView..ctor(ExportProvider exportProvider, ThemeManager themeManager, VsixShellViewModel viewModel) in C:\Agent\_work\9\s\ResXManager.VSIX\Visuals\VsixShellView.xaml.cs:line 45
Assembly 'DataGridExtensions, Version=1.0.37.0, Culture=neutral, PublicKeyToken=43de855f87de903a' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/DataGridExtensions.dll
Assembly 'JetBrains.Annotations, Version=11.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/JetBrains.Annotations.dll
Assembly 'JetBrains.Annotations, Version=11.1.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325' loaded from file:///C:/Users/marti/AppData/Local/JetBrains/Installations/ReSharperPlatformVs15_867e1c68_000/JetBrains.Annotations.DLL
Assembly 'Microsoft.Expression.Interactions, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/Microsoft.Expression.Interactions.dll
Assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/Newtonsoft.Json.dll
Assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' loaded from file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/PrivateAssemblies/Newtonsoft.Json.DLL
Assembly 'ResXManager.Infrastructure, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.Infrastructure.DLL
Assembly 'ResXManager.Model, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.Model.DLL
Assembly 'ResXManager.Translators, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.Translators.dll
Assembly 'ResXManager.View, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.View.dll
Assembly 'ResXManager.VSIX, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.VSIX.dll
Assembly 'System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' loaded from file:///C:/USERS/MARTI/APPDATA/LOCAL/MICROSOFT/VISUALSTUDIO/15.0_867E1C68/EXTENSIONS/5KYSATD3.UDI/System.Windows.Interactivity.dll
Assembly 'System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' loaded from file:///C:/Users/marti/AppData/Local/JetBrains/Installations/ReSharperPlatformVs15_867e1c68_000/System.Windows.Interactivity.DLL
Assembly 'TomsToolbox.Core, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.Core.DLL
Assembly 'TomsToolbox.Desktop, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.Desktop.DLL
Assembly 'TomsToolbox.ObservableCollections, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.ObservableCollections.dll
Assembly 'TomsToolbox.Wpf, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.Wpf.DLL
Assembly 'TomsToolbox.Wpf.Styles, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' loaded from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.Wpf.Styles.DLL
Found assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' already loaded from file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/PrivateAssemblies/Newtonsoft.Json.DLL.
Found assembly 'JetBrains.Annotations, Version=11.1.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325' already loaded from file:///C:/Users/marti/AppData/Local/JetBrains/Installations/ReSharperPlatformVs15_867e1c68_000/JetBrains.Annotations.DLL.
Found assembly 'System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' already loaded from file:///C:/Users/marti/AppData/Local/JetBrains/Installations/ReSharperPlatformVs15_867e1c68_000/System.Windows.Interactivity.DLL.
Loaded assembly 'DataGridExtensions, Version=1.0.37.0, Culture=neutral, PublicKeyToken=43de855f87de903a' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/DataGridExtensions.dll.
Loaded assembly 'JetBrains.Annotations, Version=11.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/JetBrains.Annotations.dll.
Loaded assembly 'Microsoft.Expression.Interactions, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/Microsoft.Expression.Interactions.dll.
Loaded assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/Newtonsoft.Json.dll.
Loaded assembly 'ResXManager.Infrastructure, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.Infrastructure.DLL.
Loaded assembly 'ResXManager.Model, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.Model.DLL.
Loaded assembly 'ResXManager.Translators, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.Translators.dll.
Loaded assembly 'ResXManager.View, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.View.dll.
Loaded assembly 'ResXManager.VSIX, Version=1.16.1044.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/ResXManager.VSIX.dll.
Loaded assembly 'System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' from file:///C:/Users/marti/AppData/Local/JetBrains/Installations/ReSharperPlatformVs15_867e1c68_000/System.Windows.Interactivity.DLL.
Loaded assembly 'TomsToolbox.Core, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.Core.DLL.
Loaded assembly 'TomsToolbox.Desktop, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.Desktop.DLL.
Loaded assembly 'TomsToolbox.ObservableCollections, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.ObservableCollections.dll.
Loaded assembly 'TomsToolbox.Wpf, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.Wpf.DLL.
Loaded assembly 'TomsToolbox.Wpf.Styles, Version=1.0.64.0, Culture=neutral, PublicKeyToken=60b39f873a8e3fc2' from file:///C:/Users/marti/AppData/Local/Microsoft/VisualStudio/15.0_867e1c68/Extensions/5hg4dzd1.2rk/TomsToolbox.Wpf.Styles.DLL.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21

Most upvoted comments

Same here. The hint from @soulman72 helped me (deleting the System.Windows.Interactivity.dll in the AppData/Users-folder)

Thank you @soulman72 !

I had the same problems, solved it by removing the System.Windows.Interactivity.dll from the GAC. The problem came back… I installed the “Coverity Desktop for Visual Studio”. After disabling “Coverity”, problem was “solved” … or not, since I want to use both “ResX Manager” and “Coverity…” and some other extensions too, that may need the same DLLs.

@OPALFrank

Assembly 'System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' loaded from file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Interactivity/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Interactivity.dll
Assembly 'System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' loaded from file:///C:/Users/buehlfr/AppData/Local/Microsoft/VisualStudio/14.0/Extensions/4winy5pt.jbl/System.Windows.Interactivity.DLL

Remove the old one in GAC using gacutil.exe

@skyflashde

Assembly 'System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' loaded from file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/PrivateAssemblies/System.Windows.Interactivity.DLL
Assembly 'System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' loaded from file:///C:/Users/SkyFlash/AppData/Local/Microsoft/VisualStudio/15.0_768a5f55/Extensions/ouax51er.njx/System.Windows.Interactivity.dll

remove the one from C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/PrivateAssemblies/

@mnyhjem

Assembly 'System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' loaded from file:///C:/USERS/MARTI/APPDATA/LOCAL/MICROSOFT/VISUALSTUDIO/15.0_867E1C68/EXTENSIONS/5KYSATD3.UDI/System.Windows.Interactivity.dll
Assembly 'System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' loaded from file:///C:/Users/marti/AppData/Local/JetBrains/Installations/ReSharperPlatformVs15_867e1c68_000/System.Windows.Interactivity.DLL

See what extension is located in C:/USERS/MARTI/APPDATA/LOCAL/MICROSOFT/VISUALSTUDIO/15.0_867E1C68/EXTENSIONS/5KYSATD3.UDI/ and disable it.