Glimpse/Glimpse — Issue #149: Glimpse fails if plugins are duplicated and re-loaded
Author: robinminto
Created: 2011-12-02 14:30:37+00:00
State: open

I'm running Mighty Moose which creates a subfolder in bin and stores its own copies of binaries, including Glimpse binaries.

When starting up, Glimpse is recursing into that folder to look for plugins and finds the duplicate binaries. An exception is thrown (below) and the Glimpse client doesn't appear in the browser. This is v0.86.

To reproduce, create a subfolder in bin and copy Glimpse.Core into that folder.

Should Glimpse ignore duplicate plugins?

Cheers,

Robin

2011-12-02 14:26:43.6647|ERROR|Glimpse.Core.Module|Exception during PostRequestHandlerExecute|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.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Glimpse.Core.Module.ProcessData(HttpContextBase context, Boolean sessionRequired)
at Glimpse.Core.Module.PostRequestHandlerExecute(HttpContextBase context)
at Glimpse.Core.Module.OnPostRequestHandlerExecute(Object sender, EventArgs e)