本文介绍了从传统的ASP访问.NET程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图访问,我已经在传统的ASP使用创建.NET程序集

I have been trying to access a .NET Assembly that I have created in classic ASP using

dim foo
set foo = Server.CreateObject("TestAssembly.MyClass")

问题是,我得到一个错误:

The problem is I'm getting an error:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/test.asp, line 4

Invalid class string

我已经注册使用GACUTIL和regasm大会(TestAssembly.dll)的指示文章:更换旧经典ASP COM与.NET程序集组件这是我从another问题。它提供两种方法在其中安装装配和我都试过两个,但无济于事。

I have registered the assembly (TestAssembly.dll) using gacutil and regasm as instructed in the article: Replacing Old Classic ASP COM Components with .NET Assemblies which I referenced from another question. It supplies two methods in which to install the assembly and I have tried both, but to no avail.

获取这方面的工作将是巨大的,因为这将让我逐步迁移传统的ASP网站.NET

Getting this working would be great because it would allow me to gradually migrate a classic ASP site to .NET

推荐答案

另一件事是检查:确保你的.NET程序集设置为COM可见

Another thing to check: make sure your .Net assembly is set to be COM Visible.

这篇关于从传统的ASP访问.NET程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 19:42