|
|
很久没用asp了,今天看到aspcms出新版本,下来测试下,用asp调试工具跟IIS都不行,出现以下错误:) N4 J5 A' t0 ]; _8 H
' t) G0 }* ]! x% Q9 m9 c, Q
错误号:-2147221005; r& }9 Y2 B* Y4 |3 B
错误描述:006~ASP 0177~Server.CreateObject 失败~无效的类别字符串( T* R9 l% _; @* Y3 U
- p9 B# S8 x/ ?5 w: _9 `2 x/ J- ]' J! a1 I测试其他网站程序也有点问题,一想前些日子安装了php环境,可能是有冲突了。$ P' }& b" I- Y, P2 T5 B& H
3 T" X* f5 j/ M9 z* y5 E; k于是我怀疑是iis 有问题了,其它程序提示 无法创建 Server.CreateObject,与百度了一下,解决方法如下:* C; E, v9 Z1 \7 X. L5 d1 D
一、权限不足7 n$ Y% M: R5 ]$ ?% `
右击网站所在文件夹--安全选项,加入everyone,internet来宾帐号(IUSR...)用户确定,然后重新启动IIs,未成功请尝试以下方法修复。
# V) v I( S- H7 M4 M! ]二、系统没有开启FSO组件.- o0 ~' ]6 k6 T* U9 x
运行cmd命令
C, D" h9 `" o% H" x启用FSO命令:RegSvr32 %windir%\SYSTEM32\scrrun.dll
! s) S( d' G6 m4 z重新注册FSO文件管理 regsvr32 "C:\Program Files\Common Files\System\ado\msado15.dll"
) k& Q: j* ~9 _& O5 i) C% a' s( s5 E重新注册ADODB.Stream组件
$ ~) t: T* E, j5 D( T9 s2 r三、如果上述两法仍未解决,则可能是其它原因,不仿试试下面bat批处理代码。将下面代码复制到记事本,另存为 cmd.bat,双击运行就可以了。0 p3 X. `" i8 l9 e! O/ V x
echo 正在修复,这个过程可能需要几分钟,请稍候……
" ], L' q# k4 z+ \$ S' G0 \rundll32.exe advpack.dll /DelNodeRunDLL32 %systemroot%\System32\dacui.dll
& G, g% E% b% ^! T# yrundll32.exe advpack.dll /DelNodeRunDLL32 %systemroot%\Catroot\icatalog.mdb
3 L; Q' ~4 A9 J7 \$ Wregsvr32 /s comcat.dll
% y' J, l% m; M' H2 w- Iregsvr32 /s asctrls.ocx
' `: j& X' m3 r. o- J( V( Jregsvr32 /s oleaut32.dll
0 P* K& l% ]4 M3 y! tregsvr32 /s shdocvw.dll /I8 K: m# i- c+ d4 T: N
regsvr32 /s shdocvw.dll
! V% z0 e) j' P0 Y6 s7 {4 U: P5 kregsvr32 /s browseui.dll
$ h+ v. { j. V% A% C; Q* oregsvr32 /s browseui.dll /I) ~/ D9 P, G* ], l
regsvr32 /s msrating.dll
3 g$ a7 S( ^5 I: l3 Nregsvr32 /s mlang.dll9 J# u8 n, r/ a" Z: g% Y
regsvr32 /s hlink.dll) V0 c+ y+ u9 N z6 u1 G8 I
regsvr32 /s mshtml.dll) [3 V( D1 d$ d4 @* E
regsvr32 /s mshtmled.dll
: E* E. j! `1 _$ Qregsvr32 /s urlmon.dll* b( ? D0 \$ q* o9 S
regsvr32 /s plugin.ocx
& h1 w% c, z, m% N4 j0 Nregsvr32 /s sendmail.dll. d; @- u" `. ~1 K) u& E: u. e
regsvr32 /s mshtml.dll /i
& K2 l; L6 o* u+ ~: h1 {( h! D+ Qregsvr32 /s scrobj.dll
0 t0 x# J8 j$ Q! p+ m& O2 bregsvr32 /s corpol.dll
: o2 g- ?4 v6 l6 j5 f" [, W3 tregsvr32 /s jscript.dll# L3 u/ i, A4 b/ |2 T; g/ B& k
regsvr32 /s msxml.dll6 M, i9 f/ w. V. h
regsvr32 /s imgutil.dll' ^; l; {7 \" q/ \3 {
regsvr32 /s cryptext.dll9 N% `3 o0 A* ^& A/ m, T5 Q5 P
regsvr32 /s inseng.dll
+ n) ?; ]' n8 r) f* m ~4 }regsvr32 /s iesetup.dll /i
. |9 L1 J" E# ?: W3 ^- p7 U; oregsvr32 /s cryptdlg.dll" v$ z% }4 a( l) i0 c, [
regsvr32 /s actxprxy.dll
5 p3 o' [1 M8 A5 \5 w% e! _regsvr32 /s dispex.dll& p; g% n: \* u4 B! w1 L
regsvr32 /s occache.dll; q k* b! `, {
regsvr32 /s iepeers.dll
) x0 q7 t' q/ ?# D zregsvr32 /s urlmon.dll /i; k* G. f1 J8 s! j y& V
regsvr32 /s cdfview.dll" }7 ~3 f9 z6 b8 C+ a
regsvr32 /s webcheck.dll" a3 c' J( \1 S8 m
regsvr32 /s mobsync.dll$ B2 @7 _& _; P( t
regsvr32 /s pngfilt.dll
/ U! n8 F7 O6 ]5 `3 \regsvr32 /s licmgr10.dll5 d: y% O+ h" A7 `3 `
regsvr32 /s hhctrl.ocx( n: w( f1 W7 R" a
regsvr32 /s inetcfg.dll* ]1 L& S7 e# x- m7 y7 X
regsvr32 /s trialoc.dll# j: c1 Q( F+ ~) Z1 r; V1 R
regsvr32 /s tdc.ocx
6 N$ x4 }- Q- y3 @: _& O' [regsvr32 /s MSR2C.DLL
" v: m0 ^ V1 z# Iregsvr32 /s msident.dll
) H) |7 D! \2 }7 W: rregsvr32 /s msieftp.dll8 O, p2 L& w: G8 x
regsvr32 /s xmsconf.ocx: U. P& N( w: @) h9 j, l; b
regsvr32 /s ils.dll0 o; j$ ^4 X; p7 N
regsvr32 /s msoeacct.dll: w1 ~6 q( N2 d: X+ M
regsvr32 /s wab32.dll7 z# C( `- V6 ]! I) E- O( s
regsvr32 /s wabimp.dll0 ]8 f+ b3 |* @& R2 M( ~
regsvr32 /s wabfind.dll# d1 m3 [2 v! u' o% ^2 {& N
regsvr32 /s oemiglib.dll: d9 g4 f: [2 [. ?3 W+ F1 l( f! @4 o
regsvr32 /s directdb.dll$ m' X6 S" T- I* R& Z0 C8 R
regsvr32 /s inetcomm.dll' `4 |% H5 O# I( o& ^! p, c8 w! M
regsvr32 /s msoe.dll3 q3 v7 S/ y/ [# \! P$ q% Y
regsvr32 /s oeimport.dll
z# i5 u+ l# h6 \' ?1 Sregsvr32 /s msdxm.ocx
% o$ r; _: p3 Fregsvr32 /s dxmasf.dll/ r' ~8 F2 ~$ ~# R8 j' n* t
regsvr32 /s laprxy.dll
: K3 L+ Z0 d3 c% i2 f1 g7 S# zregsvr32 /s l3codecx.ax2 G6 n: n! Q) s% W) ]: n
regsvr32 /s acelpdec.ax
. c- z5 S* @. q6 i2 [9 g$ sregsvr32 /s mpg4ds32.ax
: t0 V# H( w2 n% i0 _regsvr32 /s danim.dll( a, d% c* E6 i5 L$ Q2 W; W" N
regsvr32 /s Daxctle.ocx8 i% h3 X7 N4 t9 J
regsvr32 /s lmrt.dll
. P1 X, t. G6 G- }, mregsvr32 /s datime.dll
0 Z2 w' |) F2 b/ B" W' V" ]regsvr32 /s dxtrans.dll/ N* p. \4 C$ h
regsvr32 /s dxtmsft.dll) \# T5 j8 z6 v2 N! _
regsvr32 /s wshom.ocx5 w7 V$ b8 E, o* r$ b
regsvr32 /s wshext.dll
" F. c% V) G8 hregsvr32 /s vbscript.dll- ?$ h' y$ }1 g! h4 G: w7 X
regsvr32 /s scrrun.dll mstinit.exe /setup, [2 m! j9 G7 M/ i. l: }
regsvr32 /s msnsspc.dll /SspcCreateSspiReg: ^7 A5 m0 p/ d* w9 V
regsvr32 /s msapsspc.dll /SspcCreateSspiReg o) F: X( T6 I2 b! b4 i- |
echo., W& [' a, _4 r) |
echo.2 e' {' I4 X% i
echo 修复成功!任意键退出!
+ a0 H, E" S |# j# O; z6 ypause>nul. S/ O* P. E& O# d( W3 m( N3 E7 K! [/ @
四、如果没有解决问题,建议重装IIS,还有问题的情况下就只能重装系统了。; c( d) W/ A/ ?- g
( f2 \, [% N O7 [0 DPS:( C ^1 a0 \+ x, ~, `& U$ z
方法一设置了权限没用,然后用方法二,紧接着就是方法三,回头一看aspcms的页面自动刷新正常了。果然是组件的问题,至于是FSO还是其他的就难说了,反正是解决了,出问题可以一步一步来,做完一步测试看看,就知道是哪儿的问题了。9 K2 M; Z- s/ @! U1 z/ l8 u
: s# j+ r9 v6 G0 m( d8 K, r# b如果用完以上办法后,运行iis仍然出错$ P1 e& S! x" N7 P9 E& C. m% o1 Z
右键IE桌面图标--->属性--->高级--->去掉“显示友好http错误信息”前面的勾--->再运行的IIS,提示“ASP0201错误”' ~4 o9 e9 v0 x/ @
下载下面的绿色软件 iisfixer [IIS的修复工具] 就能解决问题" V# S% W, Q3 ?2 c; n1 n( Y0 e8 I- M
IIsfixer.rar
(1.07 MB, 下载次数: 0)
1 L2 x' `& [0 q% I! |
4 k+ i" l9 i; G- m* L: X8 L5 v- K1 l
* {4 A& B4 R+ T- x6 q* u
|
|