Link to home
Start Free TrialLog in
Avatar of lucki_luke
lucki_lukeFlag for Germany

asked on

Regsvr32 failed & Interface not registered

Hello all,

I hope this is the correct area for this. Well, I've encountered a strange problem.
I wrote a program that automates Internet Explorer and everything works fine at my computer. When I gave it to a friend, it failed. I had no idea why this would happen. Then today the same thing happened to me. The reason why it fails, is that I get the error "Interface not registered" when using the IHTMLDocument3 and IHTMLElement. However, I used previously the IHTMLElement and IHTMLDocument2 Interface before.
But this only happens since today and on my laptop it works just fine.

I also notice that trying to register shdocvw.dll and mshtml.dll via regsvr32 fails on my desktop, whereas on my laptop it works. Today I uninstalled a number of programs but could this be connected?

I hope you can help me, and please feel free to ask for any more details! I guess it has to do something with Windows since on one machine it works, but on the other it doesn't. And both run the same Windows XP SP2.

Lukas
Avatar of techieblue
techieblue
Flag of United States of America image

STEP 1: Try registering MSXML:

regsvr32 msxml3.dll
regsvr32 msxml6.dll

if that doesn't work, try STEP 2 here:

1) download the latest release of MSXML here:

http://www.microsoft.com/downloads/details.aspx?familyid=993c0bcf-3bcf-4009-be21-27e85e1857b1&displaylang=en

2) Uninstall all previously installed MSXML packages and restart the computer

3) Install the lastest release.  Restart the computer.

4) Try the script again.

if that STILL doesn't solve your problem, try STEP 3 by registering the following:

regsvr32.exe ole32.dll
regsvr32.exe msrdo20.dll
Avatar of lucki_luke

ASKER

Hm thanks for the tips, but it didn't help.
I had 3 MSXML versions installed (2x 4.0, 1x 6.0) so I deinstalled all of them and reinstalled v6.

However, I think my question is wrong. While the two might be connected, I'm getting the Message "LoadLibrary("shdocvwl.dll") failed - the specified module could not be found" for quite some time, not only since yesterday. But the dll is clearly visible in the system32 folder.

So this question might be two in one: Why does Regsvr32 fail? And What could cause the interfaces to unregister (and how to make it work again)?
Whatever question you answer you get the points.

Lukas
Well, I fixed one issue:

The interfaces work now again. I had to reinstall IE7. It wasn't working probably because I deinstalled the IE Developer Toolbar as it wasn't working for me.

Now the only thing that I'd like to know is why does regsvr32 fail for shdocvwl?

Thanks

Lukas
ASKER CERTIFIED SOLUTION
Avatar of sramesh2k
sramesh2k
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Interesting Links.
Looks like I don't want to register it anymore...
The spelling was only a typo, my bad. And I had tried the full path as well with no luck.