Problem with Window Service and InternetExplorerClass Object
-
hello, i have made a window service for my some xyz purpose and its working fine.but the problem is that
InternetExplorerClass IE = new InternetExplorerClass(); IE.Visible = true; IE.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(IE_DocumentComplete); isDocumentComplete = false; object empty = ""; IE.Navigate("www.google.com", ref empty, ref empty, ref empty, ref empty);
when i'm using this Code with Window Service this code is not working even IE.navigate function is not navigating the site or not openning the IE browser..while when i use use this code with simple asp.net with c# project its working fine. suggestion are most welcome. thanks and regards Amit AgarwalDotnet
-
hello, i have made a window service for my some xyz purpose and its working fine.but the problem is that
InternetExplorerClass IE = new InternetExplorerClass(); IE.Visible = true; IE.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(IE_DocumentComplete); isDocumentComplete = false; object empty = ""; IE.Navigate("www.google.com", ref empty, ref empty, ref empty, ref empty);
when i'm using this Code with Window Service this code is not working even IE.navigate function is not navigating the site or not openning the IE browser..while when i use use this code with simple asp.net with c# project its working fine. suggestion are most welcome. thanks and regards Amit AgarwalDotnet
Why dont you try this approach.
System.Diagnostics.Process.Start("www.google.com")
That way you allow their default browser to open up the web page based on file associations.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School) -
Why dont you try this approach.
System.Diagnostics.Process.Start("www.google.com")
That way you allow their default browser to open up the web page based on file associations.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)hi, thanx for the reply, i cann't use this approach becoz i have to further use InternetExplorer Class Properties, why is n't working....
Dotnet