Possible Duplicate:
Accessing a .NET Assembly from classic ASP
我们现在有一个按传统写成的网站。 为了逐步将网站移至ASP。 网上我们决定建造一个阶级图书馆,其中包含我们希望在C#中重写的职能。 问题在于,我们难以使这一点成为常规工作。
辅导 我们:
- Wrote a sample class as listed below.
- Strongly named our assembly using sn -k OurKeyName.key
- Registered our assembly in the GAC using gacutil /i OurAssembly.dll
- Registered our assembly with COM using regasm /tlb WireCare.dll
在采取上述步骤时,我们发现以下错误:
Server object error ASP 0177 : 800401f3
Server.CreateObject Failed
/page.asp, line 2
800401f3
Below is the code for the .net class:
namespace CompanyName
{
public class Test
{
public string DoTest()
{
return "test";
}
}
}
页: 1
<%
Dim cart : Set cart = Server.CreateObject("CompanyName.Test")
%>
开发机器运行:
- Windows 7 Professional 64 bit
- Visual Studio 2010
任何想法? 感谢!