Questions tagged [cefsharp.offscreen]

61 questions
0
votes
1 answer

Callback result JS in CefSharp Offscreen

Help me rewrite the old working code .Net 4.72 CefSharp v57 for the current version of CefSharp v103 I need to get an asynchronous response from JS result 'hello'. I tried using JavascriptObjectRepository instead of RegisterJsObject but it didn't…
Elgin Maksim
  • 31
  • 1
  • 10
0
votes
0 answers

CefSharp offscreen not freeing memory

Based on CefSharp.MinimalExample i created similar issue to that im having in my app. I creating many browsers in background, every of them have certain tasks, and then they should close and dispose. But i noticed every offscreen browser i create,…
Crazy
  • 1
  • 1
0
votes
0 answers

CEfsharp - OnDevToolsMessage

The Description for the OnDevToolsMessage function says: https://cefsharp.github.io/api/94.4.x/html/M_CefSharp_Callback_IDevToolsMessageObserver_OnDevToolsMessage.htm Method that will be called on receipt of a DevTools protocol message. Method…
Optimus1
  • 444
  • 2
  • 13
0
votes
0 answers

Is it possible to call Print() without instantiating ChromiumWebBrowser in a form?

Is it possible? var browser = new ChromiumWebBrowser(string.Empty); browser.LoadHtml("", @"http://www.google.com/", System.Text.Encoding.UTF8); browser.Print(); It throws an exception, but work fine when loaded into a form.
carva
  • 35
  • 7
0
votes
0 answers

CefSharp: Could not load file or assembly CefSharp.Core.Runtime

I get the exception CefSharp: Could not load file or assembly CefSharp.Core.Runtime. I found similar questions with CefSharp.Core.dll or CefSharp.Core.Runtime.dll, but in my case it is with CefSharp.Core.Runtime, without dll. I installed…
xavier
  • 1,860
  • 4
  • 18
  • 46
0
votes
0 answers

cefSharp does not work after publication, how can I solve

the code is working perfectly but after publishing it just doesn't open. I created a page to test graphics, however as the webbrowser C# does not work, as it starts in IE I tried to use Cefsharp but it is not going either,the error that appears to…
0
votes
1 answer

Updating Texture2D frequently causes process to crash (UpdateSubresource)

I am using SharpDX to basically render browser (chromium) output buffer on directX process. Process is relatively simple, I intercept CEF buffer (by overriding OnPaint method) and write that to a texture2D. Code is relatively simple: Texture…
Kaminari
  • 1,387
  • 3
  • 17
  • 32
0
votes
0 answers

Cefsharp deploy using azure devops

I am trying to deploy a .Net Core application that uses CEFSharp to a app service on azure. When I publish from VS2019 using a publish profile targeting azure, all necessary files for CEF to work are copied over to the app service and the…
0
votes
1 answer

sequential registration of js scripts in cefsharp

I have a problem. scriptEventClick does not see the method in scriptGlobal. How should I know that scriptGlobal is registered in JS so that I can later call EvaluateScriptAsPromiseAsync public Task GetResultAfterPageLoad(string pageUrl) …
Elgin Maksim
  • 31
  • 1
  • 10
0
votes
0 answers

Cant get HTML from cefsharp browser after selecting pagination

Using cefsharp I loaded a page that gives 25 links in a page. using FrameLoadEnd got HTML content into HtmlAgilityPack Document. Got title from nodes for 25 links. Problem When i click for 50 links on page and try to get titles, it still gives me…
Anup Raj
  • 34
  • 5
0
votes
0 answers

Possible to view CefSharp Offscreen browser

I am trying to incorporate a browser into a console application using CefSharp Offscreen with dotnet core. Is it possible to view the web page inside the Chromium browser this way? In the code below (largely taken from their Offscreen github…
PurpleSmurph
  • 2,055
  • 3
  • 32
  • 52
0
votes
2 answers

Is there any possibility to get status code i.e. (200,301,302) after loading html page in CefSharp C#?

I'm facing a problem that I can't get a response status code after loading the HTML website in CefSharp C# project. There are a few methods like OnLoadingStateChange called after loading the new page in a browser. The main problem is I do no how to…
0
votes
0 answers

Error when using CefSharp.OffScreen in an ASP.Net Web Application - Could not load file or assembly CefSharp.BrowserSubprocess.Core.DLL

Is it possible to run CefSharp.OffScreen in an ASP.Net Web application? When I try this error happens right away and is before any code that I can put a breakpoint on. To get this error just create a new project, add the CefSharp.Offscreen package…
Eric Scherrer
  • 3,328
  • 1
  • 19
  • 34
0
votes
0 answers

CefSharp Offscreen example as a dynamic library called by WinForm application

I wrote a shared library which consumes CefSharp.Offscreen to do the html retrieving work. It works fine when a Console Application calls it. But when a WinForm app connects it, after tcs.TrySetResult(true) is executed, it does not jump into await…
0
votes
0 answers

Cefsharp crashes while running some scripts. C#

I use cefsharp to execute some JavaScript commands in browser environment (console) inside a loop. For example, When I want to run a command like Goog_AdSense_ (related to the "Google AdSense" app), cefsharp crashes and the rest of the loop will not…