question

Ketan-7786 avatar image
0 Votes"
Ketan-7786 asked MayankBargali-MSFT edited

<>f__AnonymousType0`1[System.String] cannot be serialized because it does not have a parameterless constructor.

Earlier it worked without a problem. however right now i am getting this error: <>f__AnonymousType0`1[System.String] cannot be serialized because it does not have a parameterless constructor.


Exception Type: System.InvalidOperationException



azure-api-management
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@YogeshVEDPATHAK-7786 I see the tags as "azure-api-management" on your issue. Can you provide more details what is the operation that you are performing resulting in InvalidOperationException?

0 Votes 0 ·

Hi Mayank ,
while performing Get operation I am getting this exception earlier it was working fine somehow just started getting exception could you please mark this as private so I can give me more details about this error

0 Votes 0 ·

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

It is a generic error and caus due to the serialization of the object. The suggestion would be to debug the code or verify your input with the serialization class.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.