Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

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

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).

Regards.
0
WoleTall
Asked:
WoleTall
  • 2
1 Solution
 
Bob LearnedCommented:
This kind of deployment is tricky when you work with COM interoperability, since those libraries cannot be copied that way.

Bob
0
 
WoleTallAuthor Commented:
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.

Regards.
0
 
moduloCommented:
Closed, 250 points refunded.

modulo
Community Support Moderator
Experts Exchange
0
 
WoleTallAuthor Commented:
Much appreciated
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now