English 中文(简体)
采用经典[复制]进行蚊帐组装
原标题:Consuming a .net assembly using asp classic [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
Accessing a .NET Assembly from classic ASP

我们现在有一个按传统写成的网站。 为了逐步将网站移至ASP。 网上我们决定建造一个阶级图书馆,其中包含我们希望在C#中重写的职能。 问题在于,我们难以使这一点成为常规工作。

辅导 我们:

  1. Wrote a sample class as listed below.
  2. Strongly named our assembly using sn -k OurKeyName.key
  3. Registered our assembly in the GAC using gacutil /i OurAssembly.dll
  4. 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

任何想法? 感谢!

问题回答

可以批准。 该账户是否在网装上有适当的许可?

快速(长期)的测试是,在机器管理人小组中增加银行业协会(例如,证券总公司——维护者——名称或NTAUTHORNETWO SERVICE)的账户,并且看是否开始工作。 如果是的话,你需要追踪没有适当许可的具体档案。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签