Issue running on specific machine

Jun 4, 2012 at 2:06 PM

I have one sever that for some reason will not run Wolfpack. I am hoping some one has seen this before.

It seems to be related to TopShelf but the exact same set of assemblies works on multiple other servers that are setup very similar.  Below is the log file with the details of the exception.

Any help figuring this our is much appreciated.

 

2012-06-04 09:04:00,645 [6] ERROR Topshelf.Model.ServiceCoordinator [(null)] - Fault on Wolfpack: Topshelf.Exceptions.ServiceControlException
Service Start Exception: Wolfpack (IRolePlugin)
   at Topshelf.Builders.LocalServiceBuilder`1.StartService(T service) in d:\BuildAgent-01\work\799c08e77fef999d\src\Topshelf\Config\Builders\LocalServiceBuilder.cs:line 69
   at Topshelf.Model.LocalServiceController`1.CallAction[TBefore,TComplete](String text, Action`1 callback, Func`1 before, Func`1 complete) in d:\BuildAgent-01\work\799c08e77fef999d\src\Topshelf\Model\LocalServiceController.cs:line 153
HelpLink:

Castle.MicroKernel.ComponentActivator.ComponentActivatorException
ComponentActivator: could not proxy Wolfpack.Contrib.BuildAnalytics.Parsers.SpecFlowHtmlReportParser
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs:line 166
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs:line 92
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs:line 70
   at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\AbstractComponentActivator.cs:line 75
   at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\Lifestyle\AbstractLifestyleManager.cs:line 42
   at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\Handlers\DefaultHandler.cs:line 61
   at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\Handlers\AbstractHandler.cs:line 771
   at Castle.MicroKernel.Handlers.AbstractHandler.TryResolve(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\Handlers\AbstractHandler.cs:line 376
   at Castle.MicroKernel.DefaultKernel.TryResolveComponent(IHandler handler, Type service, IDictionary additionalArguments) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\DefaultKernel.cs:line 920
   at Castle.MicroKernel.DefaultKernel.ResolveAll(Type service, IDictionary arguments) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\DefaultKernel_Resolve.cs:line 277
   at Castle.MicroKernel.DefaultKernel.ResolveAll(Type service) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\DefaultKernel_Resolve.cs:line 250
   at Castle.Windsor.WindsorContainer.ResolveAll[T]() in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\Windsor\WindsorContainer.cs:line 887
   at Wolfpack.Core.Containers.WindsorContainer.ResolveAll[T]() in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Core\Containers\WindsorContainer.cs:line 93
   at Wolfpack.Core.Container.ResolveAll[T]() in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Core\Container.cs:line 59
   at Wolfpack.Core.Loaders.ContainerPluginLoader`1.Load(TI[]& components) in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Core\Loaders\ContainerLoaders.cs:line 79
   at Wolfpack.Core.Loaders.ContainerPluginLoader`1.Load(TI[]& components, Action`1 action) in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Core\Loaders\ContainerLoaders.cs:line 90
   at Wolfpack.Agent.Roles.Agent.Start() in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Agent\Roles\Agent.cs:line 85
   at Wolfpack.Agent.Startup.<>c__DisplayClass8.<Main>b__6(IRolePlugin s) in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Agent\Startup.cs:line 84
   at Topshelf.Builders.LocalServiceBuilder`1.StartService(T service) in d:\BuildAgent-01\work\799c08e77fef999d\src\Topshelf\Config\Builders\LocalServiceBuilder.cs:line 65
HelpLink:

System.ArgumentException
Unable to obtain public key for StrongNameKeyPair.
   at System.Reflection.StrongNameKeyPair.ComputePublicKey()
   at System.Reflection.StrongNameKeyPair.get_PublicKey()
   at System.Reflection.Emit.AssemblyBuilder..ctor(AppDomain domain, AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes, SecurityContextSource securityContextSource)
   at System.Reflection.Emit.AssemblyBuilder.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes, SecurityContextSource securityContextSource)
   at System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 assemblyAttributes, SecurityContextSource securityContextSource)
   at System.AppDomain.DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access)
   at Castle.DynamicProxy.ModuleScope.CreateModule(Boolean signStrongName) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\ModuleScope.cs:line 359
   at Castle.DynamicProxy.ModuleScope.ObtainDynamicModuleWithStrongName() in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\ModuleScope.cs:line 297
   at Castle.DynamicProxy.ModuleScope.DefineType(Boolean inSignedModulePreferably, String name, TypeAttributes flags) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\ModuleScope.cs:line 533
   at Castle.DynamicProxy.Generators.Emitters.ClassEmitter..ctor(ModuleScope modulescope, String name, Type baseType, IEnumerable`1 interfaces, TypeAttributes flags, Boolean forceUnsigned) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\Emitters\ClassEmitter.cs:line 37
   at Castle.DynamicProxy.Generators.InvocationTypeGenerator.GetEmitter(ClassEmitter class, Type[] interfaces, INamingScope namingScope, MethodInfo methodInfo) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InvocationTypeGenerator.cs:line 102
   at Castle.DynamicProxy.Generators.InvocationTypeGenerator.Generate(ClassEmitter class, ProxyGenerationOptions options, INamingScope namingScope) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InvocationTypeGenerator.cs:line 51
   at Castle.DynamicProxy.Contributors.InterfaceProxyTargetContributor.GetInvocationType(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Contributors\InterfaceProxyTargetContributor.cs:line 98
   at Castle.DynamicProxy.Contributors.InterfaceProxyTargetContributor.GetMethodGenerator(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Contributors\InterfaceProxyTargetContributor.cs:line 63
   at Castle.DynamicProxy.Contributors.CompositeTypeContributor.ImplementMethod(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Contributors\CompositeTypeContributor.cs:line 140
   at Castle.DynamicProxy.Contributors.CompositeTypeContributor.Generate(ClassEmitter class, ProxyGenerationOptions options) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Contributors\CompositeTypeContributor.cs:line 83
   at Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.GenerateType(String typeName, Type proxyTargetType, Type[] interfaces, INamingScope namingScope) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InterfaceProxyWithTargetGenerator.cs:line 114
   at Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.<>c__DisplayClass1.<GenerateCode>b__0(String n, INamingScope s) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InterfaceProxyWithTargetGenerator.cs:line 52
   at Castle.DynamicProxy.Generators.BaseProxyGenerator.ObtainProxyType(CacheKey cacheKey, Func`3 factory) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\BaseProxyGenerator.cs:line 386
   at Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.GenerateCode(Type proxyTargetType, Type[] interfaces, ProxyGenerationOptions options) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InterfaceProxyWithTargetGenerator.cs:line 52
   at Castle.DynamicProxy.DefaultProxyBuilder.CreateInterfaceProxyTypeWithTarget(Type interfaceToProxy, Type[] additionalInterfacesToProxy, Type targetType, ProxyGenerationOptions options) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\DefaultProxyBuilder.cs:line 102
   at Castle.DynamicProxy.ProxyGenerator.CreateInterfaceProxyWithTarget(Type interfaceToProxy, Type[] additionalInterfacesToProxy, Object target, ProxyGenerationOptions options, IInterceptor[] interceptors) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\ProxyGenerator.cs:line 314
   at Castle.Windsor.Proxy.DefaultProxyFactory.Create(IKernel kernel, Object target, ComponentModel model, CreationContext context, Object[] constructorArguments) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\Windsor\Proxy\DefaultProxyFactory.cs:line 130
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs:line 151
HelpLink:


2012-06-04 09:04:00,672 [5] ERROR Topshelf.Model.ServiceWorkflow [(null)] - [Wolfpack] Fault: Topshelf.Exceptions.ServiceControlException
Service Start Exception: Wolfpack (IRolePlugin)
   at Topshelf.Builders.LocalServiceBuilder`1.StartService(T service) in d:\BuildAgent-01\work\799c08e77fef999d\src\Topshelf\Config\Builders\LocalServiceBuilder.cs:line 69
   at Topshelf.Model.LocalServiceController`1.CallAction[TBefore,TComplete](String text, Action`1 callback, Func`1 before, Func`1 complete) in d:\BuildAgent-01\work\799c08e77fef999d\src\Topshelf\Model\LocalServiceController.cs:line 153
HelpLink:

Castle.MicroKernel.ComponentActivator.ComponentActivatorException
ComponentActivator: could not proxy Wolfpack.Contrib.BuildAnalytics.Parsers.SpecFlowHtmlReportParser
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs:line 166
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs:line 92
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs:line 70
   at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\AbstractComponentActivator.cs:line 75
   at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\Lifestyle\AbstractLifestyleManager.cs:line 42
   at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\Handlers\DefaultHandler.cs:line 61
   at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\Handlers\AbstractHandler.cs:line 771
   at Castle.MicroKernel.Handlers.AbstractHandler.TryResolve(CreationContext context) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\Handlers\AbstractHandler.cs:line 376
   at Castle.MicroKernel.DefaultKernel.TryResolveComponent(IHandler handler, Type service, IDictionary additionalArguments) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\DefaultKernel.cs:line 920
   at Castle.MicroKernel.DefaultKernel.ResolveAll(Type service, IDictionary arguments) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\DefaultKernel_Resolve.cs:line 277
   at Castle.MicroKernel.DefaultKernel.ResolveAll(Type service) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\DefaultKernel_Resolve.cs:line 250
   at Castle.Windsor.WindsorContainer.ResolveAll[T]() in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\Windsor\WindsorContainer.cs:line 887
   at Wolfpack.Core.Containers.WindsorContainer.ResolveAll[T]() in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Core\Containers\WindsorContainer.cs:line 93
   at Wolfpack.Core.Container.ResolveAll[T]() in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Core\Container.cs:line 59
   at Wolfpack.Core.Loaders.ContainerPluginLoader`1.Load(TI[]& components) in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Core\Loaders\ContainerLoaders.cs:line 79
   at Wolfpack.Core.Loaders.ContainerPluginLoader`1.Load(TI[]& components, Action`1 action) in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Core\Loaders\ContainerLoaders.cs:line 90
   at Wolfpack.Agent.Roles.Agent.Start() in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Agent\Roles\Agent.cs:line 85
   at Wolfpack.Agent.Startup.<>c__DisplayClass8.<Main>b__6(IRolePlugin s) in c:\Projects\Wolfpack\Trunk\Releases\v2.4.0\Source\Wolfpack.Agent\Startup.cs:line 84
   at Topshelf.Builders.LocalServiceBuilder`1.StartService(T service) in d:\BuildAgent-01\work\799c08e77fef999d\src\Topshelf\Config\Builders\LocalServiceBuilder.cs:line 65
HelpLink:

System.ArgumentException
Unable to obtain public key for StrongNameKeyPair.
   at System.Reflection.StrongNameKeyPair.ComputePublicKey()
   at System.Reflection.StrongNameKeyPair.get_PublicKey()
   at System.Reflection.Emit.AssemblyBuilder..ctor(AppDomain domain, AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes, SecurityContextSource securityContextSource)
   at System.Reflection.Emit.AssemblyBuilder.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes, SecurityContextSource securityContextSource)
   at System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 assemblyAttributes, SecurityContextSource securityContextSource)
   at System.AppDomain.DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access)
   at Castle.DynamicProxy.ModuleScope.CreateModule(Boolean signStrongName) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\ModuleScope.cs:line 359
   at Castle.DynamicProxy.ModuleScope.ObtainDynamicModuleWithStrongName() in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\ModuleScope.cs:line 297
   at Castle.DynamicProxy.ModuleScope.DefineType(Boolean inSignedModulePreferably, String name, TypeAttributes flags) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\ModuleScope.cs:line 533
   at Castle.DynamicProxy.Generators.Emitters.ClassEmitter..ctor(ModuleScope modulescope, String name, Type baseType, IEnumerable`1 interfaces, TypeAttributes flags, Boolean forceUnsigned) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\Emitters\ClassEmitter.cs:line 37
   at Castle.DynamicProxy.Generators.InvocationTypeGenerator.GetEmitter(ClassEmitter class, Type[] interfaces, INamingScope namingScope, MethodInfo methodInfo) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InvocationTypeGenerator.cs:line 102
   at Castle.DynamicProxy.Generators.InvocationTypeGenerator.Generate(ClassEmitter class, ProxyGenerationOptions options, INamingScope namingScope) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InvocationTypeGenerator.cs:line 51
   at Castle.DynamicProxy.Contributors.InterfaceProxyTargetContributor.GetInvocationType(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Contributors\InterfaceProxyTargetContributor.cs:line 98
   at Castle.DynamicProxy.Contributors.InterfaceProxyTargetContributor.GetMethodGenerator(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Contributors\InterfaceProxyTargetContributor.cs:line 63
   at Castle.DynamicProxy.Contributors.CompositeTypeContributor.ImplementMethod(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Contributors\CompositeTypeContributor.cs:line 140
   at Castle.DynamicProxy.Contributors.CompositeTypeContributor.Generate(ClassEmitter class, ProxyGenerationOptions options) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Contributors\CompositeTypeContributor.cs:line 83
   at Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.GenerateType(String typeName, Type proxyTargetType, Type[] interfaces, INamingScope namingScope) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InterfaceProxyWithTargetGenerator.cs:line 114
   at Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.<>c__DisplayClass1.<GenerateCode>b__0(String n, INamingScope s) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InterfaceProxyWithTargetGenerator.cs:line 52
   at Castle.DynamicProxy.Generators.BaseProxyGenerator.ObtainProxyType(CacheKey cacheKey, Func`3 factory) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\BaseProxyGenerator.cs:line 386
   at Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.GenerateCode(Type proxyTargetType, Type[] interfaces, ProxyGenerationOptions options) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\Generators\InterfaceProxyWithTargetGenerator.cs:line 52
   at Castle.DynamicProxy.DefaultProxyBuilder.CreateInterfaceProxyTypeWithTarget(Type interfaceToProxy, Type[] additionalInterfacesToProxy, Type targetType, ProxyGenerationOptions options) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\DefaultProxyBuilder.cs:line 102
   at Castle.DynamicProxy.ProxyGenerator.CreateInterfaceProxyWithTarget(Type interfaceToProxy, Type[] additionalInterfacesToProxy, Object target, ProxyGenerationOptions options, IInterceptor[] interceptors) in e:\OSS.Code\Castle.Core\src\Castle.Core\DynamicProxy\ProxyGenerator.cs:line 314
   at Castle.Windsor.Proxy.DefaultProxyFactory.Create(IKernel kernel, Object target, ComponentModel model, CreationContext context, Object[] constructorArguments) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\Windsor\Proxy\DefaultProxyFactory.cs:line 130
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) in e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs:line 151
HelpLink:


2012-06-04 09:04:01,643 [1] ERROR Topshelf.Hosts.ConsoleRunHost [(null)] - An exception occurred
Topshelf.Exceptions.TopshelfException: At least one configured service failed to start
   at Topshelf.Model.ServiceCoordinator.WaitUntilServicesAreRunning(IEnumerable`1 services, TimeSpan timeout) in d:\BuildAgent-01\work\799c08e77fef999d\src\Topshelf\Model\ServiceCoordinator.cs:line 223
   at Topshelf.Model.ServiceCoordinator.Start() in d:\BuildAgent-01\work\799c08e77fef999d\src\Topshelf\Model\ServiceCoordinator.cs:line 116
   at Topshelf.Hosts.ConsoleRunHost.Run() in d:\BuildAgent-01\work\799c08e77fef999d\src\Topshelf\Hosts\ConsoleRunHost.cs:line 65

Coordinator
Jun 4, 2012 at 2:56 PM

ok two things stick out - 

  1. Unable to obtain public key for StrongNameKeyPair.
  2. could not proxy Wolfpack.Contrib.BuildAnalytics.Parsers.SpecFlowHtmlReportParser

Out of interest have you tried to copy the entire install to another machine and see what happens when it starts? If exactly the same install runs then it must be a problem specific to the machine it does not run on (.net install?). If it fails with the same issue then the problem is local to the install/config.

If the latter then try stripping back the configs until it start working - if it's still not working and you don't mind then zip the entire install up and send it to me and I'll see if I can track down the issue and if there are any Wolfpack tweaks that can be made to demystify the error (better error handling/reporting).

Let me know how you get on.

James

Jun 4, 2012 at 3:57 PM

Ya, it is definitely this machine. I have the exact same setup running on several others. This machine is the issue. I run a lot of other .Net stuff on this machine. So I had not considered the idea that .net install could be the issue. I will try reinstalling it and see what happens.

You called out the 2 things that jump out but make no other reference to them. Is there something I could look at in relation?

 

Thanks for your help.

John

Jun 4, 2012 at 4:33 PM

Ok, Looks like I found the issue. It was not the .net install. But it was the fact that I could not create the proxy keys for the dynamically created/loaded assemblies that are used by top shelf. I found this post on StackOverflow related to the first item you pointed out. "Unable to obtain public key for StrongNameKeyPair."

I then set this system to create the key in my local profile and tried wolfPack again and it worked.

 

Thank you for your help,

--John

Coordinator
Jun 4, 2012 at 5:16 PM

Funnily enough I had exactly the same problem on a new locked down dev laptop last month that wouldn't run Moq correctly (same dynamic proxy exception) - shame on me for not putting two and two together when I saw "proxy" and "strong name key" in the original report!

Anyway - great detective work and good to hear you are up and running again.

J