Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `System.Exception
- HResult=0x80131500
- Message=Unable to execute javascript at this time, scripts can only be executed within a V8Context.
- Use the IWebBrowser.CanExecuteJavascriptInMainFrame property to guard against this exception. See https://github.com/cefsharp/CefSharp/wiki/General-Usage#when-can-i-start-executing-javascript for more details on when you can execute javascript. For frames that do not contain Javascript then no V8Context will be created. Executing a script once the frame has loaded it's possible to create a V8Context. You can use browser.GetMainFrame().ExecuteJavaScriptAsync(script) or browser.GetMainFrame().EvaluateScriptAsync to bypass these checks (advanced users only).
- Source=CefSharp
- StackTrace:
- at CefSharp.WebBrowserExtensions.ExecuteScriptAsync(IWebBrowser browser, String script)
- at GAME_ROOM.GameRoom.TrinhDuyetGame(Boolean Isvisible) in E:\NO FREEZE\Compressed\Project C#\GAME ROOM\GAME ROOM\Worm Zone.cs:line 106
- at GAME_ROOM.GameRoom.GameRoom_Load(Object sender, EventArgs e) in E:\NO FREEZE\Compressed\Project C#\GAME ROOM\GAME ROOM\Worm Zone.cs:line 57
- at System.Windows.Forms.Form.OnLoad(EventArgs e)
- at DevExpress.XtraEditors.XtraForm.OnLoad(EventArgs e)
- at System.Windows.Forms.Form.OnCreateControl()
- at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
- at System.Windows.Forms.Control.CreateControl()
- at System.Windows.Forms.Control.WmShowWindow(Message& m)
- at System.Windows.Forms.Control.WndProc(Message& m)
- at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
- at System.Windows.Forms.Form.WmShowWindow(Message& m)
- at System.Windows.Forms.Form.WndProc(Message& m)
- at DevExpress.XtraEditors.DForm.WndProc(Message& m)
- at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
- at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
- at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
- at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
- `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement