jascamMigrationTest / WorkItemMigration

0 stars 0 forks source link

GDI broken? #42

Open jascam opened 6 years ago

jascam commented 6 years ago

Been looking at the GDI renderer and hit a problem so tried with the samples and they give the same error.

Inheritance security rules violated while overriding member: 'SharpVectors.Renderers.Gdi.GdiGraphicsRenderer.get_Window()'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

In GdiTextSVGViewer sample the error is when creating the SvgPictureBox control.

This work item was migrated from CodePlex

CodePlex work item ID: '1749' Vote count: '1'

jascam commented 6 years ago

[drmcw@5/16/2014] Well dropped the build from .NET 4.5 down to 3.5 and had to comment out

            settings.DtdProcessing                = DtdProcessing.Parse;

in SVGDocument as it's a 4.5 feature and it works now. Would like to know if DTD parsing is necessary and what security in 4.5 was causing the problem though!