0

I have some problems, to change user profile with cefsharp 71.0.2. All is working good with an user1. To change users, the General Usage Wiki page gives me the solution. But the 3rd line of this code

    var requestContextSettings = new RequestContextSettings { CachePath = cachePath2 };
    browser = new ChromiumWebBrowser();
    browser.RequestContext = new RequestContext(requestContextSettings, new CustomRequestContextHandler());

gives 2 errors :

  • impossible to convert Cefsharp.RequestContextSettings to Cefsharp.IRequestContext
  • CustomRequestContextHandler reference can't be found.

I used Nuget to include the package 71.0.2 targetFramework 461 to my project.

A RequestContext(requestContextSettings) constructor is working to run something, but the browser is frozen on the last page I loaded with the user1.

Some tips to fix the problem ? I saw that a 73.1.120.pre is on GitHub, but I don't know how to manage that without some Nuget package.

Tx for your help.

  • RequestContextHandler is optional. – amaitland Apr 26 '19 at 22:50
  • Also `73.1.120-pre01` is already on `Nuget.org` – amaitland Apr 27 '19 at 03:49
  • Tx a lot for your updates. With 73.1.120-pre01 the program has always the same pbs. 2 errors if 2 parameters into the RequestContext constructor, and a screen frozen with the last page of the user1, if I use the RequestContext(requestContextSettings) constructor.. – crazyfroggy Apr 27 '19 at 09:18
  • The compiler error is because you haven't implemented the handler. It's not a class provided by the framework, it's one you implement. Screen frozen doesn't provide any meaningful technical details. Start by checking the log file https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#log-file – amaitland Apr 27 '19 at 20:19

0 Answers0