安装iis不成功,急!

来源:百度知道 编辑:UC知道 时间:2024/06/09 00:44:35
HTTP 错误 500.100 - 内部服务器错误 - ASP 错误
Internet 信息服务

--------------------------------------------------------------------------------

技术信息(用于支持人员)

错误类型:
Microsoft VBScript 运行时错误 (0x800A0046)
没有权限: 'GetObject'
/localstart.asp, 第 40 行

浏览器类型:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )

网页:
GET /localstart.asp
33—55的代码
If Not (sServername = "localhost" Or sServerIP = sRemoteIP) Then
Response.Redirect "iisstart.asp"
Else

' Using ADSI, get the list of default documents for this Web site.

sPath = "IIS://" & sServername & "/W3SVC/" & sServerinst
Set oDefSite = GetObject(sPath)
sDefDoc = LCase(oDefSite.DefaultDoc)
aDefDocs = split(sDefDoc, ",")

' Make sure at least one of them is v

不是IIS问题吧,,第 40 行是什么代码

我给你找了一个批处理 ,专门解决500错误的
新建文件夹
改名为IIS500.BAT
右键编辑写入

@echo off
echo 正在执行操作,请稍等......
regsvr32 %windir%/system32/vbscript.dll
msdtc -resetlog
net start msdtc
net user IUSR_%COMPUTERNAME% 111
net user IWAM_%COMPUTERNAME% 111
%SystemDrive%
cd %SystemDrive%\Inetpub\AdminScripts
cscript.exe adsutil.vbs set w3svc/wamuserpass 111
cscript.exe adsutil.vbs set w3svc/anonymoususerpass 111
cscript.exe synciwam.vbs -v
iisreset
%SystemDrive%
cd %SystemRoot%\System32\inetsrv
rundll32 wamreg.dll,CreateIISPackage
regsvr32 asptxn.dll
echo 执行完毕,按任意键关闭且自动打开http://localhost
pause
explorer.exe http://localhost
exit

将上段写入后双击 运行,基本就解决了

开启父目录了吗?
文件夹和iis权限设置了吗
asp脚本开启了吗?