Hi Team,
I am facing the below issue while loading the url:
Code: C#
public class Browser : EO.WinForm.WebControl
public Browser()
: base()
{
if (this.WebView == null)
{
this.WebView = new WebView();
}
this.WebView.ObjectForScripting = new ExternalHost(this);
this.WebView.BeforeDownload += WebView_BeforeDownload;
this.WebView.DownloadCompleted += WebView_DownloadCompleted;
this.WebView.NewWindow += WebView_NewWindow;// OnNewWindow;// WebView_NewWindow;
this.WebView.NeedCredentials += WebView_NeedCredentials;
this.WebView.CertificateError += WebView_CertificateError;
this.WebView.LoadCompleted += WebView_LoadCompleted;
this.WebView.Disposed += WebView_Disposed;
EO.Base.Runtime.Exception += Runtime_Exception;
this.ShowProgressBar();
WebView.ShowDevTools(Handle);
EO.WebBrowser.WebView.ShowDebugUI();
int GiveMeInfo = CommandIds.RegisterUserCommand("GiveMeInfo");
this.WebView.Shortcuts = new Shortcut[]
{
new Shortcut(1, KeyCode.F5, true, true, false),
new Shortcut(2, KeyCode.F12, true, true, false),
new Shortcut(3, KeyCode.F4, true, true, false),
};
this.WebView.Command += WebView_Command;
}
void Navigate()
{
//[color=red]Here it is throwing Exception[/color]
this.WebView.Url = SecuredURL;
}
System.Exception
HResult=0x80131500
Message=This WebView either has already been destroyed or is being destroyed.
Source=EO.Base
StackTrace:
at EO.Base.Runtime.yfcz(Object lsy, Exception lsz, Boolean lta)
at EO.WebBrowser.WebView.rqlh(Exception fp, Boolean fq)
at EO.WebBrowser.WebView.rqhk(Boolean ad)
at EO.WebBrowser.WebView.LoadUrl(String url, Boolean skipCache)
at EO.WebBrowser.WebView.set_Url(String value)
at ExtendedWebBrowser.Browser.Navigate() in M:\SPDev\\EOWebBrowser\Browser.cs:line 958
at WinForms.aaWorkflowAssociation.Navigate() in M:\SPDev\Extensions\WinForms\aaWorkflowAssociation.cs:line 144
at IDEExtension.A2Object.aaWorkflowsTab.ShowAssociationPage(String objectName, String eventName, Boolean readOnly, Boolean inherited) in M:\SPDev\Extensions\IDEExtension\A2Object\aaWorkflowsTab.cs:line 1676
This exception was originally thrown at this call stack:
EO.Base.Runtime.yfcz(object, System.Exception, bool)
EO.WebBrowser.WebView.rqlh(System.Exception, bool)
EO.WebBrowser.WebView.rqhk(bool)
EO.WebBrowser.WebView.LoadUrl(string, bool)
EO.WebBrowser.WebView.Url.set(string)
ExtendedWebBrowser.Browser.Navigate() in Browser.cs
WinForms.aaWorkflowAssociation.Navigate() in aaWorkflowAssociation.cs
IDEExtension.A2Object.aaWorkflowsTab.ShowAssociationPage(string, string, bool, bool) in aaWorkflowsTab.cs