Problem with browser supported.

0
0

My Wisej project show this error when open in  IE browser,but Chrome,Firefox work fine.

“Sorry,this browser is not supported.”

my project link in browser  http://14.11.0.17:8080/resource.wx/Wisej.Core/NotSupported.html
Can anyone solve this. Thank you very much.

  • You must to post comments
0
0

Hi,

The microsoft toolkit bringing it’s own set of limitations & problems, I researched another way and found a working solution using CefSharp.

Prerequisites

✔️ Visual Studio 2017.
✔️ Windows 10 Insider Preview Build 17110 or a later release for WebViewControl-based underlying implementation.
✔️ .NET Framework 4.6.2 or a later release.
✔️ Configure your application for high DPI support. To learn how, see this section of the guide

You can install CefSharp Through NUGET

In your code, define a global variable, then  after the InitializeComponent(), you can call this custom InitializeChromium() routine.

private void InitializeChromium()
{
CefSettings settings = new CefSettings();
//Initialize Cef with the provided settings
Cef.Initialize(settings);

//Create a browser component
ChromeBrowser = new ChromiumWebBrowser(“http://Server/WisejPage”);

//Add the browser to the form
this.Controls.Add(ChromeBrowser);
ChromeBrowser.Dock = DockStyle.Fill;
}

private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
Cef.Shutdown();
}

There is a video showing all this here

Currently :

– I still have to choose the compile 86/64, anyCPU is showing no Browser,

– Even that formclosing is handled, a Cefprocess is left orphan at program close.

Regards.

  • You must to post comments
0
0

Hi Luca,

  • I created a class and pasted your Browser.cs code, which created a new Broswer control, I used via the designer.
  • When running the code, the registry entries get created and set correctly. Just to be sure I also manually added the entries under wow6432Node.
  •  I also tried adding FEATURE_ENABLE_CLIPCHILDREN_OPTIMIZATION as referenced in the Microsoft link.

Nothing is helping, still “Browser not supported”

Then I tried another route, trying to use the Edge Browser by using the Microsoft.toolkit.Forms.UI.Controls.WebView NUGET library 5.0.1, but here I got a new set of problems  related to that library

https://stackoverflow.com/questions/50611822/c-sharp-using-microsoft-toolkit-win32-ui-controls-in-net-framework-4-6-1-web)

https://stackoverflow.com/questions/52819469/winforms-dies-in-endinit-of-microsoft-toolkit-win32-ui-controls-winforms-webview

Limiting the solution to Win10 using that library seemed acceptable, but the library isn’t performing at all in my Winform test.

So by now there is no valid solution.

Sorry to come back with bad news.

Regards.

  • Luca (ITG)
    Check HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION. It must contain the name (only the name, not the path, i.e: MyApp.exe, or MyApp.vshost.exe if debugging in VS) of your executable before the WebBrowser control and IE are loaded the first time. That’s what the static constructor in Browser.cs in our embedded hosting code does. If IE is loaded too soon the browser emulation settings are ignored. I can assure you that it works since we use it in the ThemeBuilder, in the standalone exe, and in the designer renderer – all running using IE 11. The HostService extension in our github repo has also an Edge version. It only works with Win 10 after the so-called October update and you cannot use it in the designer. It must be initialized in a certain way – it’s in the code here: https://github.com/iceteagroup/wisej-extensions/tree/master/HostService/Wisej.Application.Edge.
  • You must to post comments
0
0

Code is here: https://github.com/iceteagroup/wisej-extensions/blob/master/HostService/Wisej.Application.IE/Browser.cs

It sets WebBrowser to run at the highest version installed on the machine.

In short, you need to add the exe name to the registry before IE is loaded and set the emulation version.

More info: https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/general-info/ee330730(v=vs.85)

  • You must to post comments
0
0

You may find that this is the Winform browser control – its very old. Many javascript based sites will not work in this control. In a similar situation we switched to the Chromium embedded browser which is up to date and resolved all our issues. There are several commercial offerings and open source using CEF.

HTH

Nic

  • You must to post comments
0
0

Hello,

I’m trying to display a Wisej Application from a WINFORM containing a standard VStudio WebBrowser component.

The Winform is displaying “Sorry, this browser is not supported

The winform has been developped on Win10 VS2015 and VS2017, but both are showing the same error.

I tried adding <meta http-equiv=”X-UA-Compatible” content=”IE=11″ /> to the Wisej App default.html without success.

Changing the underlying internet explorer browser setting (through a separate IE instance) doesn’t solve it.

All suggestions are welcome.

Thanks.

 

  • Luca (ITG)
    The WebBrowser control in WPF and WinForms is initialized by default as IE7. You can configure it to run as IE11 using the code in our host services extension. Look in our github repository under the public extensions. You’ll find IE, Chromium, Firefox and Edge as WinForms controls. The code for IE contains comments explaining the settings. It also lets you set the user agent. Microsoft also has a lot of documentation on the many preferences to set. The ones in our exension work best.
  • You must to post comments
0
0

Hi Tobias,

yes, see “notSupportedUrl” in default.json

Best regards
Frank

  • You must to post comments
0
0

Is there a way to customize/overwrite the default WiseJ page which is displayed if a browser is not supported ?
I want to display my own translated page with a custom logo…

  • You must to post comments
0
0

You can also add this to <head> in your Default.html:

<meta http-equiv=”X-UA-Compatible” content=”IE=11″ />

https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/samples/dn255001(v=vs.85)

 

  • You must to post comments
0
0

Hi Matteo,

you might want to try to exclude the directory of your Wisej app from the Compatibility View list.

Find some information here:

https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622935(v=vs.85)

Best regards
Frank

  • You must to post comments
0
0

I have a problem, a customer must necessarily use the site in compatibility mode
with this configuration i have this error:
Sorry,this browser is not supported.

can you help me please?

 

  • You must to post comments
0
1

Hi Terza,

sorry I was reading too fast and missing that it only fails in IE for you.
In that case it is most likely caused by IE running in Compatibility mode.

Please check your IE settings to see if 14.11.0.17 is listed under Sites running in Compatibilty Mode.
If it is, please remove it from there.

See also: https://wisej.com/support/question/object-doesnt-support-property-or-method-addeventlistener

Best regards
Frank

  • Terza Sek
    Hi Frank it’s working Thank you very much.
  • You must to post comments
0
0

Hi Terza,

thanks for your interest in Wisej.
Can you please provide us with the project link so we can take a look ?
The link you have posted is the link to the static error page that is shown.

Thanks in advance !

Best regard
Frank

  • You must to post comments
Showing 12 results
Your Answer

Please first to submit.