Skip to content

Instantly share code, notes, and snippets.

@mikeobrien
Created January 13, 2013 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeobrien/4525665 to your computer and use it in GitHub Desktop.
Save mikeobrien/4525665 to your computer and use it in GitHub Desktop.
Fubu error when diagnostics are added
Source Error:
Line 13: public static void Start()
Line 14: {
Line 15: FubuApplication.For<Conventions>().StructureMap(new Container()).Bootstrap();
Line 16: PackageRegistry.AssertNoFailures();
Line 17: }
Source File: d:\Development\FubuMVC.Swank\src\TestHarness\Bootstrap.cs Line: 15
Stack Trace:
[FubuException: FubuCore Error 0:
Restarted 1/13/2013 1:50:39 PM
Application Path D:\Development\FubuMVC.Swank\src\TestHarness\
------------------------------------------------------------------------------------------------
Errors
------------------------------------------------------------------------------------------------
FubuMVC.Diagnostics (D:\Development\FubuMVC.Swank\src\TestHarness\fubu-content\fubumvc-diagnostics)
Loaded assembly 'FubuMVC.Diagnostics, Version=0.9.5.0, Culture=neutral, PublicKeyToken=null' v0.9.5.817
Loaded assembly 'FubuMVC.Spark, Version=1.0.0.145, Culture=neutral, PublicKeyToken=null' v1.0.0.145
Loaded assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' v4.5.1.14720
Loaded assembly 'Spark, Version=1.7.0.0, Culture=neutral, PublicKeyToken=7f8549eed921a12c' v1.7.5.1
System.ApplicationException: Unable to find exported types from assembly FubuMVC.Diagnostics, Version=0.9.5.0, Culture=neutral, PublicKeyToken=null ---> System.TypeLoadException: Method 'FindActions' in type 'FubuMVC.Diagnostics.Core.Configuration.PartialActionSource' from assembly 'FubuMVC.Diagnostics, Version=0.9.5.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at FubuMVC.Core.Registration.TypePool.<get_types>b__4(Assembly x) in c:\BuildAgent\work\6ff6894a9badaff7\src\FubuMVC.Core\Registration\TypePool.cs:line 64
--- End of inner exception stack trace ---
at FubuMVC.Core.Registration.TypePool.<get_types>b__4(Assembly x) in c:\BuildAgent\work\6ff6894a9badaff7\src\FubuMVC.Core\Registration\TypePool.cs:line 74
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Collections.Generic.GenericEnumerableExtensions.Each[T](IEnumerable`1 values, Action`1 eachAction) in c:\BuildAgent\work\4b21dbd0f78cac3b\src\FubuCore\EnumerableExtensions.cs:line 76
at System.Collections.Generic.GenericEnumerableExtensions.AddRange[T](IList`1 list, IEnumerable`1 items) in c:\BuildAgent\work\4b21dbd0f78cac3b\src\FubuCore\EnumerableExtensions.cs:line 121
at FubuMVC.Core.Registration.TypePool.get_types() in c:\BuildAgent\work\6ff6894a9badaff7\src\FubuMVC.Core\Registration\TypePool.cs:line 60
at FubuMVC.Core.Registration.TypePool.TypesMatching(Func`2 filter) in c:\BuildAgent\work\6ff6894a9badaff7\src\FubuMVC.Core\Registration\TypePool.cs:line 142
at FubuMVC.Core.FubuExtensionFinder.FindAllExtensionTypes(IEnumerable`1 assemblies) in c:\BuildAgent\work\6ff6894a9badaff7\src\FubuMVC.Core\FubuExtensionFinder.cs:line 29
at FubuMVC.Core.FubuExtensionFinder.ApplyExtensions(FubuRegistry registry, IEnumerable`1 assemblies) in c:\BuildAgent\work\6ff6894a9badaff7\src\FubuMVC.Core\FubuExtensionFinder.cs:line 0
at FubuMVC.Core.FubuApplication.<applyFubuExtensionsFromPackages>b__17(Object o, PackageLog l) in c:\BuildAgent\work\6ff6894a9badaff7\src\FubuMVC.Core\FubuApplication.cs:line 221
------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Assemblies
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mscorlib 4.0.0.0 file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
System.Web 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
System 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Core 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
System.Configuration 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
System.Runtime.Caching 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Caching/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll
Microsoft.Build.Utilities.v4.0 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Build.Utilities.v4.0/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.Build.Utilities.v4.0.dll
System.Web.RegularExpressions 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.RegularExpressions/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.RegularExpressions.dll
Microsoft.JScript 10.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.JScript/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
Microsoft.CSharp 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
System.Data 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
System.Web.Services 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
System.Drawing 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.EnterpriseServices 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
System.IdentityModel 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll
System.Runtime.Serialization 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
System.ServiceModel 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
System.ServiceModel.Activation 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Activation/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Activation.dll
System.ServiceModel.Web 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Web/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll
System.Activities 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Activities/v4.0_4.0.0.0__31bf3856ad364e35/System.Activities.dll
System.ServiceModel.Activities 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Activities/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Activities.dll
System.WorkflowServices 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.WorkflowServices/v4.0_4.0.0.0__31bf3856ad364e35/System.WorkflowServices.dll
System.Web.Extensions 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Extensions/v4.0_4.0.0.0__31bf3856ad364e35/System.Web.Extensions.dll
System.Data.DataSetExtensions 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
System.Xml.Linq 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
System.ComponentModel.DataAnnotations 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
System.Web.DynamicData 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.DynamicData/v4.0_4.0.0.0__31bf3856ad364e35/System.Web.DynamicData.dll
System.Web.ApplicationServices 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.ApplicationServices/v4.0_4.0.0.0__31bf3856ad364e35/System.Web.ApplicationServices.dll
Bottles 1.0.0.441 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/Bottles.DLL
FubuCore 1.0.0.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/FubuCore.DLL
FubuLocalization 0.9.5.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/FubuLocalization.DLL
FubuMVC.Core 1.0.0.1401 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/FubuMVC.Core.DLL
FubuMVC.Core.View 1.0.0.145 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/FubuMVC.Core.View.DLL
FubuMVC.Diagnostics 0.9.5.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/FubuMVC.Diagnostics.DLL
FubuMVC.Spark 1.0.0.145 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/FubuMVC.Spark.DLL
FubuMVC.StructureMap 1.0.0.1401 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/FubuMVC.StructureMap.DLL
FubuMVC.Swank 1.0.0.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/FubuMVC.Swank.DLL
HtmlTags 1.2.0.145 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/HtmlTags.DLL
MarkdownSharp 0.0.0.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/MarkdownSharp.DLL
Microsoft.Practices.ServiceLocation 1.0.0.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/Microsoft.Practices.ServiceLocation.DLL
Microsoft.Web.Infrastructure 1.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Web.Infrastructure/v4.0_1.0.0.0__31bf3856ad364e35/Microsoft.Web.Infrastructure.dll
Newtonsoft.Json 4.5.0.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/Newtonsoft.Json.DLL
Spark 1.7.0.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/Spark.DLL
StructureMap 2.6.4.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/StructureMap.DLL
TestHarness 1.0.0.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/TestHarness.DLL
WebActivator 1.5.3.0 file:///D:/Development/FubuMVC.Swank/src/TestHarness/bin/WebActivator.DLL
Microsoft.VisualStudio.Web.PageInspector.Loader 1.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Web.PageInspector.Loader/v4.0_1.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Web.PageInspector.Loader.dll
System.Web.WebPages.Deployment 2.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.WebPages.Deployment/v4.0_2.0.0.0__31bf3856ad364e35/System.Web.WebPages.Deployment.dll
Microsoft.VisualStudio.Web.PageInspector.Runtime 1.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Web.PageInspector.Runtime/v4.0_1.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Web.PageInspector.Runtime.dll
Microsoft.GeneratedCode 1.0.0.0 None
Anonymously Hosted DynamicMethods Assembly 0.0.0.0 None
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Logs
------------------------------------------------------------------------------------------------
Bottling Process finished on 1/13/2013 at 1:50:39 PM
------------------------------------------------------------------------------------------------
FubuMVC Packaging Facility
------------------------------------------------------------------------------------------------
Bottles.PackageLoaders.LinkedFolders.LinkedFolderPackageLoader
No linked folders found in the package manifest file at D:\Development\FubuMVC.Swank\src\TestHarness\
------------------------------------------------------------------------------------------------
FubuMVC.Core.Packaging.FubuMvcZipFilePackageLoader
Searching for zip files in package directory D:\Development\FubuMVC.Swank\src\TestHarness\bin\fubu-packages
Searching for zip files in package directory D:\Development\FubuMVC.Swank\src\TestHarness\fubu-content
Exploded package zip file D:\Development\FubuMVC.Swank\src\TestHarness\fubu-content\fubu-swank.zip to D:\Development\FubuMVC.Swank\src\TestHarness\fubu-content\fubu-swank
Current version of package file D:\Development\FubuMVC.Swank\src\TestHarness\fubu-content\fubumvc-diagnostics.zip is already exploded to the application folder
------------------------------------------------------------------------------------------------
FubuMVC.Core.Packaging.StandaloneAssemblyPackageLoader
------------------------------------------------------------------------------------------------
FubuMVC.Core.FubuModuleAttributePackageLoader
Looking for assemblies marked with the [FubuModule] attribute in D:\Development\FubuMVC.Swank\src\TestHarness\
Looking for assemblies marked with the [FubuModule] attribute in D:\Development\FubuMVC.Swank\src\TestHarness\bin
------------------------------------------------------------------------------------------------
Adding package web content folders to the virtual path provider (VirtualPathProviderActivator)
Adding the bottle directory D:\Development\FubuMVC.Swank\src\TestHarness\fubu-content\fubumvc-diagnostics\WebContent to the virtual directory provider
Adding the bottle directory D:\Development\FubuMVC.Swank\src\TestHarness\fubu-content\fubu-swank\WebContent to the virtual directory provider
------------------------------------------------------------------------------------------------
Lambda expression at: FubuMVC.Core.FubuApplication+<>c__DisplayClass13.<Bootstrap>b__c(), line 0
------------------------------------------------------------------------------------------------
FubuMVC.Swank (D:\Development\FubuMVC.Swank\src\TestHarness\fubu-content\fubu-swank)
------------------------------------------------------------------------------------------------
Bottles.PackageLoaders.Assemblies.AssemblyPackageInfo
Loaded assembly 'FubuMVC.Core.View, Version=1.0.0.145, Culture=neutral, PublicKeyToken=null' v1.0.0.145
------------------------------------------------------------------------------------------------
Bottles.PackageLoaders.Assemblies.AssemblyPackageInfo
Assembly 'FubuMVC.Spark, Version=1.0.0.145, Culture=neutral, PublicKeyToken=null' was ignored because it is already loaded
------------------------------------------------------------------------------------------------
FubuMVC.Core.View, Version=1.0.0.145, Culture=neutral, PublicKeyToken=null
------------------------------------------------------------------------------------------------
FubuMVC.Diagnostics, Version=0.9.5.0, Culture=neutral, PublicKeyToken=null
------------------------------------------------------------------------------------------------
FubuMVC.Spark, Version=1.0.0.145, Culture=neutral, PublicKeyToken=null
------------------------------------------------------------------------------------------------
Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
------------------------------------------------------------------------------------------------
Spark, Version=1.7.0.0, Culture=neutral, PublicKeyToken=7f8549eed921a12c
------------------------------------------------------------------------------------------------
FubuMVC.StructureMap.SingletonSpinupActivator
------------------------------------------------------------------------------------------------
]
FubuMVC.Core.FubuApplication.<Bootstrap>b__f() in c:\BuildAgent\work\6ff6894a9badaff7\src\FubuMVC.Core\FubuApplication.cs:175
Bottles.PackageRegistry.AssertNoFailures(Action failure) +31
FubuMVC.Core.FubuApplication.Bootstrap() in c:\BuildAgent\work\6ff6894a9badaff7\src\FubuMVC.Core\FubuApplication.cs:174
TestHarness.Bootstrap.Start() in d:\Development\FubuMVC.Swank\src\TestHarness\Bootstrap.cs:15
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +192
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +108
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
WebActivator.BaseActivationMethodAttribute.InvokeMethod() +239
WebActivator.ActivationManager.RunActivationMethods() +495
WebActivator.ActivationManager.RunPreStartMethods() +28
WebActivator.ActivationManager.Run() +61
[InvalidOperationException: The pre-application start initialization method Run on type WebActivator.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +550
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +132
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +90
System.Web.Compilation.BuildManager.ExecutePreAppStart() +135
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +516
[HttpException (0x80004005): The pre-application start initialization method Run on type WebActivator.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873784
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment