'Method not found' with Web Browser Control in VB.Net app on non-development system

Posted on 2004-11-30
Last Modified: 2010-04-23
Hi all,

I wrote a VB.Net app that uses the COM Web Browser via Interop. It works fine on my development system (WinXP), but when I copy the program to another WinXP system, I get unhandled exceptions (Method not found) indicating that AxWebBrowser methods such as Navigate() cannot be found. I have verified that ShDocVw.dll is the same version as on my development system (6.0.2900.2518) so I'm stumped.

Any ideas?

PS: I have not used any fancy deployment tools, just copied the program and relevant files to the other system (I believe this is called xcopy deployment and is supposed to work).

Question by:WoleTall
    LVL 96

    Expert Comment

    by:Bob Learned
    This kind of deployment is tricky when you work with COM interoperability, since those libraries cannot be copied that way.


    Author Comment

    Thanks to everyone that looked at my problem. I have solved the problem. It turns out that the AxInterop.SHDocVw.dll file that my application was referencing didn't have all the relevant methods defined (as discovered via ildasm.exe).

    I can only presume that this dodgy version of AxInterop.SHDocVw.dll must have been created by TlbImp.exe from an old version of SHDocVw.dll. The version in the bin folder of my application was correct and copying that to the test system solved the problem.


    Accepted Solution

    Closed, 250 points refunded.

    Community Support Moderator
    Experts Exchange

    Author Comment

    Much appreciated

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now