Page 1 of 1

System.InvalidCastException HResult=0x80004002 Message=Unable to cast object of type 'System.String' to type 'Stimul

Posted: Tue Jan 03, 2023 8:18 pm
by JohnW
I see that in the past that others reported the same error. I have not seen where it was resolved.

I am unable to get rid of this error. I have tried many things over the past couple of day without success.

I see that in the past that others reported the same error. I have not seen where it was resolved.

Any suggestions or help is appreciated.

I am using current versions of Stimulsoft Reports Web.
Ashampoo_Snap_Tuesday, January 3, 2023_14h5m6s.png
Ashampoo_Snap_Tuesday, January 3, 2023_14h5m6s.png (109.67 KiB) Viewed 1725 times

Re: System.InvalidCastException HResult=0x80004002 Message=Unable to cast object of type 'System.String' to type 'St

Posted: Wed Jan 04, 2023 7:38 am
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.

Re: System.InvalidCastException HResult=0x80004002 Message=Unable to cast object of type 'System.String' to type 'St

Posted: Wed Jan 04, 2023 3:21 pm
by JohnW
Do I send it to support@stimulsoft.com?

Re: System.InvalidCastException HResult=0x80004002 Message=Unable to cast object of type 'System.String' to type 'St

Posted: Wed Jan 04, 2023 3:23 pm
by Lech Kulikowski
Hello,

Yes, you can.

Thank you.

Re: System.InvalidCastException HResult=0x80004002 Message=Unable to cast object of type 'System.String' to type 'St

Posted: Mon Jan 23, 2023 7:16 pm
by JohnW
If you are one of the few having an issue like this there is a workaround. I am posting it in case you would like to try it.

Set the legacyCasModel="false" in the application web.config

Re: System.InvalidCastException HResult=0x80004002 Message=Unable to cast object of type 'System.String' to type 'St

Posted: Mon Jan 23, 2023 8:53 pm
by Lech Kulikowski
Hello,

Thank you for the information.