C# Geckofx 45在绘制位图时发送错误代码253

C# Geckofx 45在绘制位图时发送错误代码253,c#,wpf,winforms,geckofx,C#,Wpf,Winforms,Geckofx,我在拍摄壁虎45的截图时遇到了问题 这是我的密码: Bitmap bitmap = new Bitmap(browser.Width, browser.Height); browser.DrawToBitmap(bitmap, new System.Drawing.Rectangle(0,0,browser.Width,browser.Height)); bitmap.Save("Screenshots/test.png",System.Drawing.Imaging.ImageFormat.P

我在拍摄壁虎45的截图时遇到了问题

这是我的密码:

Bitmap bitmap = new Bitmap(browser.Width, browser.Height);
browser.DrawToBitmap(bitmap, new System.Drawing.Rectangle(0,0,browser.Width,browser.Height));
bitmap.Save("Screenshots/test.png",System.Drawing.Imaging.ImageFormat.Png);
这是控制台输出:

'WpfApplication1.vshost.exe' (CLR v4.0.30319: WpfApplication1.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC\Microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\Microsoft.mshtml.dll'. Module was built without symbols.
The program '[5056] WpfApplication1.vshost.exe' has exited with code 253 (0xfd).