Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Launch Internet Explorer window from WPF application crashes the application

$
0
0

We have a .NET 4.5 application. We are using "SHDocVw" COM component to launch internet explorer window from the WPF application. Code works fine on multiple machines but for some HVD's (Virtual) machines Windows 7 launch of the internet explore window crashes the entire application.

Here is code snippet that we use to launch the internet explorer window:

varintptr =newIntPtr(iexplorer.HWND);

iexplorer.Navigate2(_context.Url);

Here is exception log from the application logs:

'2014-12-17 08:51:31.6135 [1] Fatal : Unhandled Exception System.ArgumentException: Value does not fall within the expected range.
   at SHDocVw.IWebBrowser2.Navigate2(Object& URL, Object& Flags, Object& TargetFrameName, Object& PostData, Object& Headers)
   at Fmr.ActiveTrader.PlatformIndependent.Microsoft.Commands.BloombergTvCommand.LaunchBloombergTvInInternetExplorer()
   at Fmr.ActiveTrader.PlatformIndependent.Microsoft.Commands.BloombergTvCommand.TokenResponseRecievedAsync(Response`2 response)
   at Fmr.Kali.Common.Abstractions.Request`2.SynchronizedInvokeComplete(Object result)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)'


Any help to troubleshoot this issue is much appreciated

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>