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

Stimulsoft Reports.WEB discussion
Post Reply
JohnW
Posts: 103
Joined: Mon Nov 20, 2017 8:29 pm

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

Post 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 1695 times
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
JohnW
Posts: 103
Joined: Mon Nov 20, 2017 8:29 pm

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

Post 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
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

Thank you for the information.
Post Reply