系統(tǒng)下載、安裝、激活,就到系統(tǒng)天地來(lái)!

WinXP系統(tǒng)ActiveX部件不能創(chuàng)建對(duì)象怎么辦?

作者:系統(tǒng)天地 日期:2021-11-13

  我們有時(shí)候在運(yùn)行ASP程序的時(shí)候,會(huì)出現(xiàn)提示ActiveX部件不能創(chuàng)建對(duì)象,出現(xiàn)這個(gè)問(wèn)題的原因,有可能是服務(wù)器系統(tǒng)重裝了。那么當(dāng)你遇到WinXP系統(tǒng)ActiveX部件不能創(chuàng)建對(duì)象怎么辦?不知道怎么解決的朋友請(qǐng)看文章內(nèi)容吧!

  步驟一:相關(guān)DLL文件注冊(cè)

  1、這個(gè)步驟也是前提,就是已經(jīng)注冊(cè)好和啟動(dòng)相關(guān)的DLL文件了。

  打開運(yùn)行輸入框,輸入cmd-回車,在cmd窗口中輸入:

  regsvr32 “c:windowssystem32scrrun.dll”,別忘記了有雙引號(hào)。

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

  2、如果第一步不行的話,那么就需要手動(dòng)運(yùn)行一些DLL文件了,創(chuàng)建一個(gè)文本文檔,然后將下列文字復(fù)制進(jìn)去:

  1. 01echo 正在修復(fù),這個(gè)過(guò)程可能需要幾分鐘,請(qǐng)稍候……
  2. 02rundll32.exe advpack.dll /DelNodeRunDLL32 %systemroot%System32dacui.dll
  3. 03rundll32.exe advpack.dll /DelNodeRunDLL32 %systemroot%Catrooticatalog.mdb
  4. 04regsvr32 /s comcat.dll
  5. 05regsvr32 /s asctrls.ocx
  6. 06regsvr32 /s oleaut32.dll
  7. 07regsvr32 /s shdocvw.dll /I
  8. 08regsvr32 /s shdocvw.dll
  9. 09regsvr32 /s browseui.dll
  10. 10regsvr32 /s browseui.dll /I
  11. 11regsvr32 /s msrating.dll
  12. 12regsvr32 /s mlang.dll
  13. 13regsvr32 /s hlink.dll
  14. 14regsvr32 /s mshtml.dll
  15. 15regsvr32 /s mshtmled.dll
  16. 16regsvr32 /s urlmon.dll
  17. 17regsvr32 /s plugin.ocx
  18. 18regsvr32 /s sendmail.dll
  19. 19regsvr32 /s mshtml.dll /i
  20. 20regsvr32 /s scrobj.dll
  21. 21regsvr32 /s corpol.dll
  22. 22regsvr32 /s jscript.dll
  23. 23regsvr32 /s msxml.dll
  24. 24regsvr32 /s imgutil.dll
  25. 25regsvr32 /s cryptext.dll
  26. 26regsvr32 /s inseng.dll
  27. 27regsvr32 /s iesetup.dll /i
  28. 28regsvr32 /s cryptdlg.dll
  29. 29regsvr32 /s actxprxy.dll
  30. 30regsvr32 /s dispex.dll
  31. 31regsvr32 /s occache.dll
  32. 32regsvr32 /s iepeers.dll
  33. 33regsvr32 /s urlmon.dll /i
  34. 34regsvr32 /s cdfview.dll
  35. 35regsvr32 /s webcheck.dll
  36. 36regsvr32 /s mobsync.dll
  37. 37regsvr32 /s pngfilt.dll
  38. 38regsvr32 /s licmgr10.dll
  39. 39regsvr32 /s hhctrl.ocx
  40. 40regsvr32 /s inetcfg.dll
  41. 41regsvr32 /s trialoc.dll
  42. 42regsvr32 /s tdc.ocx
  43. 43regsvr32 /s MSR2C.DLL
  44. 44regsvr32 /s msident.dll
  45. 45regsvr32 /s msieftp.dll
  46. 46regsvr32 /s xmsconf.ocx
  47. 47regsvr32 /s ils.dll
  48. 48regsvr32 /s msoeacct.dll
  49. 49regsvr32 /s wab32.dll
  50. 50regsvr32 /s wabimp.dll
  51. 51regsvr32 /s wabfind.dll
  52. 52regsvr32 /s oemiglib.dll
  53. 53regsvr32 /s directdb.dll
  54. 54regsvr32 /s inetcomm.dll
  55. 55regsvr32 /s msoe.dll
  56. 56regsvr32 /s oeimport.dll
  57. 57regsvr32 /s msdxm.ocx
  58. 58regsvr32 /s dxmasf.dll
  59. 59regsvr32 /s laprxy.dll
  60. 60regsvr32 /s l3codecx.ax
  61. 61regsvr32 /s acelpdec.ax
  62. 62regsvr32 /s mpg4ds32.ax
  63. 63regsvr32 /s danim.dll
  64. 64regsvr32 /s Daxctle.ocx
  65. 65regsvr32 /s lmrt.dll
  66. 66regsvr32 /s datime.dll
  67. 67regsvr32 /s dxtrans.dll
  68. 68regsvr32 /s dxtmsft.dll
  69. 69regsvr32 /s wshom.ocx
  70. 70regsvr32 /s wshext.dll
  71. 71regsvr32 /s vbscript.dll
  72. 72regsvr32 /s scrrun.dll mstinit.exe /setup
  73. 73regsvr32 /s msnsspc.dll /SspcCreateSspiReg
  74. 74regsvr32 /s msapsspc.dll /SspcCreateSspiReg
  75. 75echo.
  76. 76echo.
  77. 77echo 修復(fù)成功!任意鍵退出!
  78. 78pause>nul
復(fù)制代碼echo 正在修復(fù),這個(gè)過(guò)程可能需要幾分鐘,請(qǐng)稍候……rundll32.exe advpack.dll /DelNodeRunDLL32 %systemroot%System32dacui.dllrundll32.exe advpack.dll /DelNodeRunDLL32 %systemroot%Catrooticatalog.mdbregsvr32 /s comcat.dllregsvr32 /s asctrls.ocxregsvr32 /s oleaut32.dllregsvr32 /s shdocvw.dll /Iregsvr32 /s shdocvw.dllregsvr32 /s browseui.dllregsvr32 /s browseui.dll /Iregsvr32 /s msrating.dllregsvr32 /s mlang.dllregsvr32 /s hlink.dllregsvr32 /s mshtml.dllregsvr32 /s mshtmled.dllregsvr32 /s urlmon.dllregsvr32 /s plugin.ocxregsvr32 /s sendmail.dllregsvr32 /s mshtml.dll /iregsvr32 /s scrobj.dllregsvr32 /s corpol.dllregsvr32 /s jscript.dllregsvr32 /s msxml.dllregsvr32 /s imgutil.dllregsvr32 /s cryptext.dllregsvr32 /s inseng.dllregsvr32 /s iesetup.dll /iregsvr32 /s cryptdlg.dllregsvr32 /s actxprxy.dllregsvr32 /s dispex.dllregsvr32 /s occache.dllregsvr32 /s iepeers.dllregsvr32 /s urlmon.dll /iregsvr32 /s cdfview.dllregsvr32 /s webcheck.dllregsvr32 /s mobsync.dllregsvr32 /s pngfilt.dllregsvr32 /s licmgr10.dllregsvr32 /s hhctrl.ocxregsvr32 /s inetcfg.dllregsvr32 /s trialoc.dllregsvr32 /s tdc.ocxregsvr32 /s MSR2C.DLLregsvr32 /s msident.dllregsvr32 /s msieftp.dllregsvr32 /s xmsconf.ocxregsvr32 /s ils.dllregsvr32 /s msoeacct.dllregsvr32 /s wab32.dllregsvr32 /s wabimp.dllregsvr32 /s wabfind.dllregsvr32 /s oemiglib.dllregsvr32 /s directdb.dllregsvr32 /s inetcomm.dllregsvr32 /s msoe.dllregsvr32 /s oeimport.dllregsvr32 /s msdxm.ocxregsvr32 /s dxmasf.dllregsvr32 /s laprxy.dllregsvr32 /s l3codecx.axregsvr32 /s acelpdec.axregsvr32 /s mpg4ds32.axregsvr32 /s danim.dllregsvr32 /s Daxctle.ocxregsvr32 /s lmrt.dllregsvr32 /s datime.dllregsvr32 /s dxtrans.dllregsvr32 /s dxtmsft.dllregsvr32 /s wshom.ocxregsvr32 /s wshext.dllregsvr32 /s vbscript.dllregsvr32 /s scrrun.dll mstinit.exe /setupregsvr32 /s msnsspc.dll /SspcCreateSspiRegregsvr32 /s msapsspc.dll /SspcCreateSspiRegecho.echo.echo 修復(fù)成功!任意鍵退出!pause>nul

  3、黏貼好以上的文字之后,給文本文檔隨便取個(gè)名字,然后修改后綴為bat,最近雙擊它就行了。這樣就完成了DLL文件的注冊(cè)了。

  步驟二:ODBC數(shù)據(jù)源配置

  1、到了這一步,就是配置問(wèn)題了,主要是IIS和ODBC數(shù)據(jù)源的配置選擇問(wèn)題,請(qǐng)大家不要忽視這兩個(gè)配置,特別是64位運(yùn)行32位程序的時(shí)候。我們是要在64位系統(tǒng)上運(yùn)行32位程序,因此在ODBC數(shù)據(jù)源的選擇上選擇32位的(雖然說(shuō)有的64位系統(tǒng)兼容32位程序,但我們暫不談這樣的配置方式),32位的ODBC打開方式路徑是C:/Windows/SysWOW64/。64位系統(tǒng)ODBC打開默認(rèn)是的64位ODBC,它的路徑其實(shí)也在這個(gè)文件夾下。

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

  2、我們開打32位的ODBC添加數(shù)據(jù)源,為了區(qū)分可以以32位結(jié)尾。

  當(dāng)然在下圖中,我是已經(jīng)添加好了32位數(shù)據(jù)源了,并以32位結(jié)尾加以區(qū)分。

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

  3、因?yàn)橐粋€(gè)網(wǎng)站,在64位數(shù)據(jù)源那邊如果也設(shè)置了數(shù)據(jù)源的話,你名稱也設(shè)置成一樣的,那時(shí)間久了,在程序當(dāng)中,你都不知道是用幾位的數(shù)據(jù)源了,看下圖我的程序,就是選擇32位的數(shù)據(jù)源配置。

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

  步驟三:IIS配置

  1、在IIS配置中,關(guān)鍵就幾點(diǎn):1、啟動(dòng)父路徑;2、還有就是網(wǎng)站對(duì)應(yīng)的“應(yīng)用程序池”的設(shè)置。

  2、啟動(dòng)父路徑。

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

  3、選擇應(yīng)用程序池,以便下一步對(duì)它進(jìn)行設(shè)置。

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

  4、應(yīng)用程序池設(shè)置:1、版本;2、啟用32位應(yīng)用程序;3、自動(dòng)運(yùn)行,如下圖:

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

  5、到這里,就設(shè)置完成了,最后提醒一下,程序中的數(shù)據(jù)源名稱別忘記了是選擇32位的那個(gè)名稱哈。不然的話,以上全設(shè)置好了,但是數(shù)據(jù)源又選錯(cuò)了,就會(huì)提示以下的錯(cuò)誤。

WinXP ActiveX部件不能創(chuàng)建對(duì)象怎么辦

  WinXP系統(tǒng)ActiveX部件不能創(chuàng)建對(duì)象的解決方法就講到這里了,是不是很簡(jiǎn)單,我們只需要先對(duì)DLL文件進(jìn)行注冊(cè),然后在對(duì)ODBC數(shù)據(jù)源進(jìn)行配置,最后在配置IIS就可以了。