@tmays wrote:
Hi all,
Wondering if someone has seen this error. I’m using Invoke Code to convert a text file to pdf using Spire.PDF. Weird thing is it actually worked a few times and then started throwing this error.
If I’m reading this right, it seems to be an issue with fowarding RectangeF in System.Drawing 2.0.0.0 to version 4.0.0.0 but issues finding that.
System.Drawing is in the Imported Namespaces, I’ve tried reordering in xaml file, .net 4.8 is installed, not sure what else to try.
Here’s the error.
Source: Invoke code Message: No compiled code to run error BC31424: Type 'System.Drawing.RectangleF' in assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' has been forwarded to assembly 'System.Drawing'. Either a reference to 'System.Drawing' is missing from your project or the type 'System.Drawing.RectangleF' is missing from assembly 'System.Drawing'. At line 14 error BC30652: Reference required to assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' containing the type 'System.Drawing.PointF'. Add one to your project. At line 16
Thanks.
Troy
Posts: 9
Participants: 4