Click here to Skip to main content
16,020,706 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on windows application. In that i use activex control and other dll. First i use default webbrowser control of .net. in that i want to display live page of my website .But it's not work in my application because error occur like - " An exception of type 'System.Runtime.InteropServices.SEHException' occurred in System.Windows.Forms.dll but was not handled in user code "
"Additional information: External component has thrown an exception."

This work perfectly in other Test application but not in my Project Application.

so i use alternative of webbrowser control - gecko web browsaer control - in my Form. in that i want to display live page of my website but it will not load. I set the Xulrunner as below..

C#
public Form1()
{
   InitializeComponent();

   Skybound.Gecko.Xpcom.Initialize(@"C:\Program Files\xulrunner");
}

private void Form1_Load(object sender, EventArgs e)
{
   geckoWebBrowser1.Navigate("http://www.google.com");
}

- Error is www.google.com could not be found. please check the name and try again.

it work fine with http://localhost: ... like

geckoWebBrowser1.Navigate("http://localhost:.....");

Please reply me

Thanks in advance..
Posted
Updated 8-Nov-14 22:55pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900