Glimpse/Glimpse — Issue #142: Glimpse crashes my app looking for nunit
Author: pawelpabich
Created: 2011-11-19 10:33:34+00:00
State: open

Hi,

I've just added Glimpse from nuget to a rather large MVC 3 App and when I try to launch the app it crashes because Glimpse can't find a very specific version of Nunit. The web project doesn't use nunit and unit tests are based on much more recent version of nunit so I don't understand why Glipse is looking for it.

Exception:

Could not load file or assembly 'nunit.framework, Version=2.5.0.9122, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Stack trace:

[Managed to Native Transition]
>	mscorlib.dll!System.ModuleHandle.ResolveTypeHandleInternal(System.Reflection.RuntimeModule module, int typeToken, System.RuntimeTypeHandle[] typeInstantiationContext, System.RuntimeTypeHandle[] methodInstantiationContext) + 0xb5 bytes
mscorlib.dll!System.Reflection.RuntimeModule.ResolveType(int metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) + 0xc1 bytes
mscorlib.dll!System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.CustomAttributeRecord caRecord, System.Reflection.MetadataImport scope, ref System.Reflection.Assembly lastAptcaOkAssembly, System.Reflection.RuntimeModule decoratedModule, System.Reflection.MetadataToken decoratedToken, System.RuntimeType attributeFilterType, bool mustBeInheritable, object[] attributes, System.Collections.IList derivedAttributes, out System.RuntimeType attributeType, out System.IRuntimeMethodInfo ctor, out bool ctorHasParameters, out bool isVarArg) + 0x74 bytes
mscorlib.dll!System.Reflection.CustomAttribute.IsCustomAttributeDefined(System.Reflection.RuntimeModule decoratedModule, int decoratedMetadataToken, System.RuntimeType attributeFilterType, bool mustBeInheritable) + 0xb0 bytes
mscorlib.dll!System.Reflection.CustomAttribute.IsDefined(System.RuntimeType type, System.RuntimeType caType, bool inherit) + 0x51 bytes
mscorlib.dll!System.RuntimeType.IsDefined(System.Type attributeType, bool inherit) + 0x42 bytes
System.ComponentModel.Composition.dll!Microsoft.Internal.AttributeServices.IsAttributeDefined(System.Reflection.ICustomAttributeProvider attributeProvider) + 0x30 bytes
System.ComponentModel.Composition.dll!System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.IsPartDiscoverable() + 0x13 bytes
System.ComponentModel.Composition.dll!System.ComponentModel.Composition.AttributedModel.AttributedModelDiscovery.CreatePartDefinitionIfDiscoverable(System.Type type, System.ComponentModel.Composition.Primitives.ICompositionElement origin) + 0x42 bytes
System.ComponentModel.Composition.dll!System.ComponentModel.Composition.Hosting.TypeCatalog.PartsInternal.get() + 0x90 bytes
System.ComponentModel.Composition.dll!System.ComponentModel.Composition.Hosting.TypeCatalog.Parts.get() + 0x14 bytes
System.ComponentModel.Composition.dll!System.ComponentModel.Composition.Hosting.AssemblyCatalog.Parts.get() + 0x12 bytes
Glimpse.Core.DLL!Glimpse.Core.Plumbing.BlacklistedSafeDirectoryCatalog.BlacklistedSafeDirectoryCatalog(string path, System.Collections.Generic.IEnumerable typesBlacklist) + 0x130 bytes
Glimpse.Core.DLL!Glimpse.Core.Module.ComposePlugins() + 0xc9 bytes
Glimpse.Core.DLL!Glimpse.Core.Module.Init(System.Web.HttpApplication application) + 0x17e bytes
System.Web.dll!System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(System.IntPtr appContext, System.Web.HttpContext context, System.Reflection.MethodInfo[] handlers) + 0x1b0 bytes
System.Web.dll!System.Web.HttpApplication.InitSpecial(System.Web.HttpApplicationState state, System.Reflection.MethodInfo[] handlers, System.IntPtr appContext, System.Web.HttpContext context) + 0xc3 bytes
System.Web.dll!System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(System.IntPtr appContext, System.Web.HttpContext context) + 0x154 bytes
System.Web.dll!System.Web.Hosting.PipelineRuntime.InitializeApplication(System.IntPtr appContext) + 0xfe bytes
[Appdomain Transition]
[Native to Managed Transition]

Thanks

Pawel