Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

MethodInvocationValidator: StackOverflowException #1762


User avatar
0
fncap created

It's very late ... but this exception hurting myself by lot of hours!

Basically it happens when I'm trying to use a service injected by IoC... on method 'ValidateObjectRecursively'!

As said.. it's too late to share some further info ...

Someone has an idea when and how this overflow can be happen?


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    This is generally related to your method parameters. What your method gets? a DTO? If so, please share.

    BTW, you can add a type to ignore in recursive validation, like that (in PreInitialize of your module):

    Configuration.Validation.IgnoredTypes.Add(typeof(YourSpecialClass));

    This prevents validation for YourSpecialClass. Find the 'different' (generally, not primitive) type and add to ignore list.