Fixing Javascript Error: Class not registered in Internet Explorer

May 10, 2007 - 10:30

We were working on an online billing application for a small charity firm when we came upon this problem. The application was developed and tested under Firefox. However we got the error when we tested it on Internet Explorer 6 (6.0.2900.2180). There was a simple javascript call to open a popup window. The window was opening fine but it remained blank and the parent window showed the javascript error

Error: Class not registered.

The line number was pointing to the line with the code. We tried uninstalling and reinstalling Internet Explorer but to no avail.

After some searching we came upon this thread in a forum with the solution to the Class not registered error.
The solution was simple just re-register the IE dlls using the following commands in a batch file. You could also copy and paste directly into a command prompt to get the same result.

regsvr32 c:\windows\system32\urlmon.dll
regsvr32 c:\windows\system32\actxprxy.dll
regsvr32 c:\windows\system32\shdocvw.dll
regsvr32 c:\windows\system32\mshtml.dll
regsvr32 c:\windows\system32\browseui.dll
regsvr32 c:\windows\system32\jscript.dll
regsvr32 c:\windows\system32\vbscript.dll
regsvr32 c:\windows\system32\oleaut32.dll

Post your comments / questions

Thanks - I was experiencing "Error: Class not registered" errors when trying to open a link in Windows Explorer. I re-registered the dlls as described above. Problem solved.

i have the same problem regarding class not registered error in internet explorer every time i browse. i've read the solution on how to do but i dont know how the procedure on re-registering the IE dlls using the following commands in a batch file. can you help me on it?thanks a lot....

Open notepad. Copy the commands given above to notepad. Save the file as C:\registerdll.bat. Click on start menu >> Run. Type cmd and press enter. In the command prompt window that opens up type C: and press enter. Then type cd \ and press enter. Then type registerdll.bat and you are done :)
Anoop John
Team Zyxware

I did the stpes that were given, everything looked to go okay but then it said DLLRegisterServer entry point not found for c:/windows/system32/mshtml.dll..... So it didnt not fix the issue that I can tell. Any help??

Thanks in advance!!!

Same problem, the solution worked well. Nice SEO for the article too.