Internet Explorer Toolbar Frustrations
I recently developed a framework for Internet Explorer toolbars and am currently attempting to do the same based on some FireFox toolbars I have written. During this development, I used several tutorials available on the web and found myself with a repeating error on any non-development machines:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
It turns out that a reference I was adding to the SHDocVW assembly was done incorrectly. I simply looked at some sample projects and saw the reference pointing to the project’s “obj” directory, but this was incorrect! The original reference should be added from your system32 directory.
An easy to way to diagnose if this is what’s happening to you:
- Expand the “References” folder of your project
- Look for a reference to SHDocVw
- If this reference is exactly “SHDocVw”, this solution won’t fix your problem
- If your reference is exactly “Interop.SHDocVw”, then remove the reference and add the one from your system32 directory