Hi,
We are evaluating EO.Web but we encountered a shop stopper on some workstations where our Web wrapper is crashing when trying to render the WebView.
This is very odd, when I run the application from Visual Studio 2015, it runs fine, but if I attempt to launch it from command prompt or from file Explorer, the app just terminates when attempting to render the webView. This problem surfaces only on one some specific configuration: Win7 Enterprise, x64. These workstations have a customized developer profile but since they are also our targeted customers, it must work on their sets.
I have also tried the approach using only the WebView - see code below and when I attach the application to the debugger after it has been started from Explorer, the app crashes the same way, and although I have selected to break the program for all exceptions, Visual Studio does not pick up any error or exception, I can only see the thread terminated with return code -1, so something failed but I have no clue what it can be.
I wonder if this might come from the small utility that shows the temporary license on the bottom right, that would sgnal the EO component to exit because it could not verify the license - I have no evidence for this, just a wild guess.
So if any one has any idea what I could do to at least collect some more clues because at this moment as long as we don't have a fix or clear explanation about this situation, we will not purchase a license.
My code:
Sample Web App[MainWindow.xaml
Code: XML
<Window x:Class="Test.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:eo="http://schemas.essentialobjects.com/wpf/"
Title="MainWindow" Height="250" Width="350">
<eo:WebControl>
<eo:WebControl.WebView>
<eo:WebView Url="www.google.com">
</eo:WebView>
</eo:WebControl.WebView>
</eo:WebControl>
WebView only[MainWindow.xaml
Code: XML
<Window x:Name="mainWin" x:Class="WebViewExample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WebViewExample"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525" Loaded="mainWin_Loaded">
</Window>
MainWindow.cs
Code: C#
using EO.WebBrowser;
using System;
using System.Windows;
using System.Windows.Interop;
namespace WebViewExample
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
///
public partial class MainWindow : Window
{
private WebView m_WebView = new WebView();
private IntPtr _handle;
public MainWindow()
{
InitializeComponent();
}
private void mainWin_Loaded(object sender, RoutedEventArgs e)
{
WindowInteropHelper h = new WindowInteropHelper(mainWin);
_handle = h.Handle;
m_WebView.Create(_handle);
m_WebView.Url = "www.google.com";
}
}
}