Quantcast
Channel: ResX Resource Manager
Viewing all articles
Browse latest Browse all 2435

Commented Issue: System.ArgumentException: Cannot add instance of type 'PopupFocusManagerBehavior' to a collection of type 'BehaviorCollection' [1374]

$
0
0
Since yesterday I get the following error and can't load the extension anymore (happens even when no solution is open):

```
ResX Resource Manager loaded.
Home: http://resxresourcemanager.codeplex.com/
Report issues: http://resxresourcemanager.codeplex.com/workitem/list/basic
Support the project by adding a short review: http://visualstudiogallery.msdn.microsoft.com/3b64e04c-e8de-4b97-8358-06c73a97cc68
Assembly location: C:\Users\USER\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\okd2alou.yy2
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 'PopupFocusManagerBehavior' 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.View.Visuals.Shell.InitializeComponent()
at tomenglertde.ResXManager.VSIX.MyToolWindow.OnCreate()
```
Comments:

I could not reproduce this, but I once had a similar problem when an assembly was only referenced by XAML but not by code, so I guess adding an expicit reference in code to 'System.Windows.Interactivity' shuld fix this.


Can anyone give me some feedback if this has worked?


Viewing all articles
Browse latest Browse all 2435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>