开发者

c# WebBrowser SVG Windows 2008 R2

开发者 https://www.devze.com 2023-01-22 13:40 出处:网络
I have a WebBrowser in my C# application, in which i want to show a SVG file. However, when I run the app on a Windows 2008 R2 machine, the SVG file does not show up.

I have a WebBrowser in my C# application, in which i want to show a SVG file. However, when I run the app on a Windows 2008 R2 machine, the SVG file does not show up. When I have a look at the same file on the same server in Internet Explorer, everything looks ok.

What i already have tried:

  • IE ESC settings on or of开发者_JS百科f
  • Trusted Sites / Local intranet sites
  • Run 32 bits
  • do the following override:

(from this blog)

protected override void WndProc(ref Message m)
        {
            switch (m.Msg)
            {
                case 21:
                case 201:
                case 204:
                case 207:
                    base.DefWndProc(ref m);
                    return;
            }
            base.WndProc(ref m);
        }

Can anyone help me out with this issue? Thank you!


The problem was Data Execution Prevention (DEP). After switching this off, it works!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号