Server.CreateObject失败在传统的ASP [英] Server.CreateObject Failed in Classic ASP
问题描述
我创建了一个函数的DLL ASP.NET,我需要在传统的ASP页中使用。
I created the ASP.NET dll with one function that i need to use in Classic ASP page.
我用下面的code用于在传统的ASP页面对象
I used the below code for creating object in classic asp page
set PeopleSoft = server.createobject("OPS.PSL")
我在执行提示以下错误:
I am getting the below error while executing
Server object error 'ASP 0177 : 80070002'
Server.CreateObject Failed
我在搜索计算器我看到了一些解决方案。通过启用使装配COM可见和注册为COM互操作。
I searched in stackoverflow i saw some solution. By enabling the "Make assembly COM-visible" and "Register for COM interop".
请帮我从这个问题出来
推荐答案
我有这个问题。当您注册.NET COM模块,您必须使用regasm,如果你想从如IIS应用程序中调用它们,你必须使用/ codeBase的使用这个命令:
I had this problem. When you register .NET COM modules you must use regasm and if you want to call them from applications like IIS you must use /codebase with this command:
regasm yourfilename.dll /codebase
这篇关于Server.CreateObject失败在传统的ASP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!