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

Commented Unassigned: Tool does not load any resources anymore [1121]

$
0
0
Hi,

I have been a user of ResX Resource Manager for a couple of months now. But I'm having issue as it does not load any ResX file anymore: when I display the tool it is just empty.

Using an old version of my Visual Studio solution it does work. So I guess there is something wrong in my solution but I have no idea what is it. Solution contains WP7, WP8, PCL and Win8 projects.

How can I help finding out what's wrong ?
Thanks,

Jeremy
Comments: ** Comment from web user: japf **

Hi,

Thanks for the quick follow-up. Here are the answers:

- Yes, still empty even after clicking the refresh button
- Yes, exception dump (see below)
- No new project
- Tested with VS2012 Ultimate and VS2013 RC Ultimate

I guess the exception is pretty obvious (I didn't saw it until you mention it...). I will try to fix the resx :-)
Maybe you should display this kind of dialog to the user ?

Error: System.InvalidOperationException: Duplicate keys in 'C:\Users\Jérémy\TFS\Trunk\2Day.Core.Shared\Resources\StringResources.resx':

"TaskGroup_Due" ---> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at tomenglertde.ResXManager.Model.ResourceLanguage..ctor(String languageName, ProjectFile file)
--- End of inner exception stack trace ---
at tomenglertde.ResXManager.Model.ResourceLanguage..ctor(String languageName, ProjectFile file)
at tomenglertde.ResXManager.Model.ResourceEntity.<.ctor>b__5(<>f__AnonymousType1`2 <>h__TransparentIdentifier1)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at tomenglertde.ResXManager.Model.ResourceEntity..ctor(String projectName, String baseName, String directory, IEnumerable`1 files)
at tomenglertde.ResXManager.Model.ResourceManager.<GetResourceEntities>d__16.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
at tomenglertde.ResXManager.Model.ResourceManager.InternalLoad(IEnumerable`1 fileNamesByDirectory)
at tomenglertde.ResXManager.Model.ResourceManager.Load(IEnumerable`1 allResXFiles)
at tomenglertde.ResXManager_VSIX.MyToolWindow.Solution_Changed(Boolean forceReload)


Viewing all articles
Browse latest Browse all 2435

Trending Articles



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