用VB自编DLL组件,出现错误,请帮忙!
出错提示:
错误类型:
服务器对象, ASP 0177 (0x800401F3)
无效的 ProgID。 若要获取关于此消息的更多的信息,请访问 Microsoft 联机支持站点: http://www.microsoft.com/contentredirect.asp 。
/lbx/1.asp, 第 11 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
页:
GET /lbx/1.asp
时间:
2004年6月9日, 16:24:19
VB中的源代码:
Private MyScriptingContext As ScriptingContext
Private MyApplication As Application
Private MyRequest As Request
Private MyResponse As Response
Private MyServer As Server
Private MySession As Session
Public Sub OnStartPage(PassedScriptingContext As ScriptingContext)
Set MyScriptingContext = PassedScriptingContext
Set MyApplication = MyScriptingContext.Application
Set MyRequest = MyScriptingContext.Request
Set MyResponse = MyScriptingContext.Response
Set MyServer = MyScriptingContext.Server
Set MySession = MyScriptingContext.Session
End Sub
Public Sub OnEndPage()
Set MyScriptingContext = Nothing
Set MyApplication = Nothing
Set MyRequest = Nothing
Set MyResponse = Nothing
Set MyServer = Nothing
Set MySession = Nothing
End Sub
Public Sub SayHello()
MyResponse.Write ("Hello World")
End Sub
调用页面的代码:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
dim ObjReference
Set conn = Server.CreateObject("ADODB.Connection")
Set ObjReference = Server.CreateObject("exmaple1.helloword")
ObjReference.SayHello
%>
</body>
</html>