Microsoft VBScript 编译器错误 '800a03ee' 缺少对象'addname'

来源:百度知道 编辑:UC知道 时间:2024/06/16 11:17:43
<%
sub addname(aaa as variant,bbb as variant,ccc as variant,ddd as variant)
Dim cn
Dim constr,tSQL
Set cn=Server.CreateObject("ADODB.Connection")
constr="Provider=Microsoft.jet.oledb.4.0;datasource="&Server.MapPath("User.mdb")
cn.open constr
tSQL="Insert into[user2](UserName,QQ,Email,liuyan)values('"&aaa&"','"&bbb&"','"&ccc&"','"&ddd&"')"
cn.execute tSQL
cn.close
set cn=nothing
end sub
%>

<table style="color:#FFFFFF" width="200" height="264" border="0">
<tr>
<td>名称:</td>
</tr>
<tr>
<td>
<input name="aaa" type="text" siz

一、(坏的比较严重,连http://localhost都无法打开页面)
访问IIS客户端出现错信息提示:
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

1、右键我的电脑--管理--本地用户和组,给IUSR_机器名和IWAM_机器名两个用户设置密码,要一样。

2、开始--运行--打cmd,
然后cd c:\Inetpub\Adminscripts
然后cscript.exe adsutil.vbs set w3svc/wamuserpass 你的密码,
然后cscript.exe adsutil.vbs set w3svc/anonymoususerpass 你的密码

看一下,行了没有?如果还不行,那么
cscript.exe synciwam.vbs -v,
然后重新启动IIS

如果还是提示8004E00F错误,此错误是MSDTC服务不正常造成的,解决方法:

首先进入组件服务,查看组件服务/计算机/我的电脑/COM+应用程序,结果报错“COM+ 无法与 Microsoft 分布式事务协调程序交谈”,无法查看里面的对象。
3、进入事件查看器,发现MSDTC服务没有正常启动。
4、删除注册表中的键:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSDTC
HKEY_LOCAL_M