WoleTall
asked on
'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.
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.
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Much appreciated
Bob