Windows Server 2003上的经典ASP

时间:2012-03-03 21:39:00

标签: asp-classic windows-server-2003 createobject

在新安装的虚拟服务器上配置所有内容(IIS,网站,权限)后,运行default.asp文件时出现此错误。

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/default.asp, line 30

我发现ASP 0177帖非常有用。但我似乎无法解决它。它提供了这样的解决方案

A: This error means "Invalid class string" -- in other words the call to CreateObject failed because the name object cannot be found by the OLE sub-system. Causes include:

1. You really didn't run regsvr32 on the server after all.
2. You ran regsvr32 but it reported an error.
3. Someone modified security on part of the registry that's preventing the OLE subsystem from reading all or part of the HKEY_CLASSES_ROOT tree.
4. The name of the object you are trying to create was mispelled or is incorrect.
5. Determine if it's a permissions problem
6. Determine if it is a file permissions problem:
7. Check registry permissions

我需要注册哪些服务?安装IIS时,Server 2003上是否自动安装了ASP?如果不是我需要改变什么设置?这是一个刚安装的虚拟Windows Server 2003?

编辑:我认为此链接可能有效,但不确定ASP Win Svr 2003

EDIT2 :代码:

Set BACSE = Server.CreateObject("NAICSCodeSE2_1_0.Engine")
If Session("DEBUG") = "TRUE" then Response.Write "BACSE Debug="&BACSE.SetDebugMode(True)&"<BR>"

1 个答案:

答案 0 :(得分:0)

在经典ASP页面中使用之前,自定义COM组件首先需要使用以下命令在服务器中注册。

  

regsvr32 yourcomdllfile.dll