Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[Tips] Fix the 'Error: 0x800401F3 - Invalid class string'


  • Please log in to reply
3 replies to this topic
tmplinshi
  • Members
  • 237 posts
  • Last active: Apr 05 2014 03:27 PM
  • Joined: 06 Apr 2012
I don't know if this is the right place to put it here. If not I'm sorry.
 
 
 
The error:

---------------------------
test.ahk
---------------------------
Error: 0x800401F3 - Invalid class string

Line#
271: Sleep,100
272: Goto,DownloadImg
273: }
275: SB_SetText("")
278: SB_SetText("login...")
279: url_2 = %site_url%/Default.aspx
280: referer_2 = %site_url%/Default.aspx
---> 284: oSC := ComObjCreate("ScriptControl")
285: oSC.Language := "JScript"

 
 
This error appeared in my computer many days ago. I searched in Google and Autohotkey Forum time to time, and didn't find a solution, until today I finally found the answer in Google. The solution is:

Run this command:
regsvr32 C:\WINDOWS\system32\msscript.ocx
If above command can't fix, try below commands:
regsvr32.exe jscript.dll
regsvr32.exe vbscript.dll
regsvr32.exe wshom.ocx
regsvr32.exe msxml3.dll
regsvr32.exe -i shell32.dll
regsvr32.exe OLEAUT32.DLL
 
Hope this infomation could help someone. Good luck happy.png

jethrow
  • Moderators
  • 2805 posts
  • Last active:
  • Joined: 24 May 2009

The error is a general message meaning that the ProgID (ActiveX Control) is not registered on the pc. Hence why you had to register it.

 

Also note that ScriptControl is NOT 64-bit compatible.



tmplinshi
  • Members
  • 237 posts
  • Last active: Apr 05 2014 03:27 PM
  • Joined: 06 Apr 2012
Thanks for explanation and the note 'NOT 64-bit compatible'.

Guest10
  • Members
  • 943 posts
  • Last active: Yesterday, 06:32 AM
  • Joined: 27 Oct 2012

why do i need to register all these DLLs in the first place on my new machine. didn't they come registered from factory?

I don't know if this is the right place to put it here. If not I'm sorry.
 
 
 
The error: 
 
This error appeared in my computer many days ago. I searched in Google and Autohotkey Forum time to time, and didn't find a solution, until today I finally found the answer in Google. The solution is:

Run this command:

regsvr32 C:\WINDOWS\system32\msscript.ocx
If above command can't fix, try below commands:
regsvr32.exe jscript.dll
regsvr32.exe vbscript.dll
regsvr32.exe wshom.ocx
regsvr32.exe msxml3.dll
regsvr32.exe -i shell32.dll
regsvr32.exe OLEAUT32.DLL
 
Hope this infomation could help someone. Good luck happy.png