WASABI newbie System.Reflection.TargetInvocationException in WaWorkerHost.exe

Topics: Windows Azure Integration Pack
Jun 5, 2012 at 3:37 PM

Hi, 

I'm trying to set up WASABI Autoscaling Application Block for the first time.  I have deployed it to it's own worker role and set up the rules files in azure storage.  When I RDP in to the worker role I can see the event logs full with the exception below and the block is clearly not working when I put some load on the system it is monitoring.

Undoubtedly I've messed up the config somehow but if anyone has seen this and can give me some pointers to narrow down my search I'd really appreciate it.

Log Name:      
ApplicationSource:        .NET Runtime
Date:          6/5/2012 3:05:59 AM
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      RD00155D340D9A
Description:
Application: WaWorkerHost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Reflection.TargetInvocationExceptionStack:   at System.RuntimeMethodHandle._InvokeMethodFast(System.IRuntimeMethodInfo, System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeType)   at System.RuntimeMethodHandle.InvokeMethodFast(System.IRuntimeMethodInfo, System.Object, System.Object[], System.Signature, System.Reflection.MethodAttributes, System.RuntimeType)   at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, Boolean)   at System.Delegate.DynamicInvokeImpl(System.Object[])   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ConstantParameterValue..ctor(System.Linq.Expressions.Expression)   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.TypeRegistration.BuildDependencyParameter(System.Linq.Expressions.Expression)   at System.Linq.Enumerable+<>c__DisplayClass12`3[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<CombineSelectors>b__11(System.__Canon)   at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()   at System.Linq.Buffer`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.Collections.Generic.IEnumerable`1<System.__Canon>)   at System.Linq.Enumerable.ToArray[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>)   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.Unity.UnityContainerConfigurator.GetInjectionMembers(Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.TypeRegistration)   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.Unity.UnityContainerConfigurator.RegisterAllCore(Microsoft.Practices.EnterpriseLibrary.Common.Configuration.IConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider)   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ChangeTrackingContainerConfigurator.RegisterAll(Microsoft.Practices.EnterpriseLibrary.Common.Configuration.IConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider)   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.SetCurrentContainerIfNotSet()   at sf.AutoscalerWorker.WorkerRole.Run()   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRoleInternal()   at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.<StartRole>b__1()   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)   at System.Threading.ThreadHelper.ThreadStart()

 

I also see log entries like this

Faulting application name: WaWorkerHost.exe, version: 6.0.6002.18314, time stamp: 0x4eb3102bFaulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e21213cException code: 0xe0434352Fault offset: 0x000000000000cacdFaulting process id: 0xa28Faulting application start time: 0x01cd42c78d382b30Faulting application path: E:\base\x64\WaWorkerHost.exeFaulting module path: D:\Windows\system32\KERNELBASE.dllReport Id: 5fa9e70c-aebb-11e1-9544-00155d340d9a

Jun 7, 2012 at 1:13 AM

I haven't seen that error before.  Can you post the configuration and your worker role code?

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com