It seems you are using a newer version of netDXF. The code references netDxf.MathHelper.IsPointInPolygon() and many other non-existing object types in netDXF.Document, such as Lines, Arcs, Solids, Texts and MTexts.
Which netDXF version is required for OpenCadNet?