Skip to content

TargetParameterCountException when try to send message containing List<string> property. #22

@ChrisNeedSpace

Description

@ChrisNeedSpace

Hi!

BUG:
My message contains a List property.
When I choose this message from the messages list in SendMessage window, the TargetParameterCountException exception is thrown.

REASON:
The exception is thrown while updating the property label and List is treated as a complex type and label wants to add all properties of List type, whereas one of them is string[Int32] and is causes an exception in ServiceBusMQ.TypeExtensions,GetAttribValue() when try to:
"p.GetValue(obj, null);"

SOLUTION:
I suggest that you add the following code in ServiceBusMQ.TypeExtensions,GetAttribValue(), line 109:

if (p.GetIndexParameters().Count() > 0)
return "";

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions