Particular / NServiceBus.Azure

Transports and storage for Windows Azure
https://docs.particular.net/nservicebus/azure/
Other
10 stars 15 forks source link

NServiceBusRoleEntrypoint constructor throwing System.Reflection.TargetInvocationException #312

Closed paddygreens closed 7 years ago

paddygreens commented 7 years ago

Hi,

I am using below versions on NService Bus NServiceBus" version="6.1.2" "NServiceBus.Azure.Transports.WindowsAzureServiceBus" version="7.1.4" "NServiceBus.CastleWindsor" version="6.0.0" NServiceBus.Hosting.Azure" version="7.0.2" NServiceBus.Hosting.Azure.HostProcess" version="7.0.2"

And the NServiceBusRoleEntrypoint constructor throwing System.Reflection.TargetInvocationException:

System.Reflection.TargetInvocationException occurred
  HResult=0x80131604
  Message=Exception has been thrown by the target of an invocation.
  Source=mscorlib
  StackTrace:
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

Inner Exception 1:
RoleEnvironmentException: error
SimonCropp commented 7 years ago

@paddygreens is there no more information in the inner exception? and can you reproduce this when debugging on your local machine?

paddygreens commented 7 years ago

There is no information other than this. This is happening in the local machine itself.

On 18 Jul 2017 11:39 a.m., "Simon Cropp" notifications@github.com wrote:

@paddygreens https://github.com/paddygreens is there no more information in the inner exception? and can you reproduce this when debugging on your local machine?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Particular/NServiceBus.Azure/issues/312#issuecomment-316025615, or mute the thread https://github.com/notifications/unsubscribe-auth/AZDWboexXRY_OgJ8b8u5UzYEDNMsvdvAks5sPItOgaJpZM4ObJgh .

SeanFeldman commented 7 years ago

@paddygreens is it a sample you're trying to run? Would be nice if you could share with us a repro to try out.

paddygreens commented 7 years ago

not a sample. I guess it's not compatible with one of the libraries i would have installed for logging purpose. Created a new repo with a fresh setup without those libraries fixed it. However the exception needs to be more descriptive in order to figure out the actual cause.