asp调用vb生成的dll出现无效的类别字符串异常

asp调用vb生成的dll出现无效的类别字符串错误
参照网站最入门的DLL,helloworld,regsvr32后,asp调用时出现
错误类型:
Server 对象, ASP 0177 (0x800401F3)
无效的类别字符串 
/test/dll.asp, 第 2 行
如何解决?

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

dll.asp代码如下:
<%
Set ObjReference = Server.CreateObject("Example1.HelloWorld") 
ObjReference.SayHello 
%>

------解决方案--------------------
请问你的dll是标准的带有com接口的吗?
ASP不是任何DLL都可以调用的。必须带有COM接口的DLL才可以调用。可以用VB为其封装个COM接口,方法就是建立一个ActiveX DLL,在这个DLL中提供COM接口,然后把相应的调用转化成对那个没有COM接口的DLL的调用。