Webbrowser controls doesn't work on Windows XP SP2

Have anyone experience this kind of problems, whenever calling the Navigate(url), Internet explorer ask for content blocking , and open the url in the IE windows not the application webbrowser, Thus all the browsers event cannot be handled.

The web browser is as of .Net 1.1


regards


Answer this question

Webbrowser controls doesn't work on Windows XP SP2

  • Jennifer Bhamoo

    I fixed my application.  Just rebuild it with the new version of shdocvw.dll installed by sp2.
  • BigT4446

    For me the symptom wasn't AxWebBrowser completely failing, but instead events from the component weren't coming through. The solution was the same as "weihuaqd" presented here, so thanks "weihuaqd". I just redid all the stuff I originally did to bring the AxWebBrowser to my C# project in Visual Studio .NET, e.g.

    ?Import Microsoft Web Browser component to VS .NET 2003 project by clicking Add/Remove Items in the Toolbox / Windows Forms context menu and importing COM Components / Microsoft Web Browser.

    ?Double-click Microsoft Web Browser from Toolbox to add it on the form. It now works! You can change URL with e.g.

    Object o = null;
    axWebBrowser1.Navigate("http://localhost:8080/", ref o, ref o, ref o, ref o);

    ?To make changes to the web browser component, interface and implement interfaces IOleObject, IOleClientSite, IDocHostShowUI, IDocHostUIHandler. Make own files for them and add content. Also implement IOleClientSite, IDocHostUIHandler methods in the form. Then make your own MsHtmlCustomization.dll.

    oRun always from Visual Studio .NET Command Prompt. (See Start Menu.)

    omidl MsHtmlCustomization.idl /tlb bin\MsHtmlCustomization.tlb

    otlbimp bin\MsHtmlCustomization.tlb /out:bin\MsHtmlCustomization.dll

    oAdd Reference to Solution Explorer for the new DLL.

    I don't know if doing everything above is necessary, but you get the picture  Good luck!

  • Tim Daley

    I haven't tried that, say if it works, what would happen to on different OS other than XP SP2
  • Clive Townsend

    i also get this problem. Have you found a solution yet
  • meatago

    I have added AxWebBrowser control in my WInforms. It opens a word docment in the AxWebBrowser  control. But when i do an ctrl+N it opens a NEW IE with doc embed in it. How can I avoid it
    Reagsr,
    Parimal.

  • rob_a89

    No it didn't work for me.. I'd talked to some Micorsofoties, and they ask me to refer to IE team.
  • Corby

    if anyone use Web browser control inside their application, then this might be useful resourse

    <a href="http://msdn.microsoft.com/workshop/author/dhtml/overview/xpsp2compat.asp">http://msdn.microsoft.com/workshop/author/dhtml/overview/xpsp2compat.asp</a>

  • Robin Charisse

    I got the exact same problem.  How did you fix it
  • Webbrowser controls doesn't work on Windows XP SP2