Solved

using dot net bases DLL in Classic ASP?

Posted on 2006-11-23
3
1,110 Views
Last Modified: 2013-11-25
i have an ASP.NET dll which is using some web service methods. i want to use that in my classic asp page.

it works fine within dot net environment and i can use that in other dot net projects but failed to use in classic asp page when i try to use that with  following code

<%@ Language=VBScript %>
<%
Dim foo
Set foo = Server.CreateObject("FirstHorizon.clsService")
Response.Write foo.test
%>

more over when i try to register that using regsvr32 it gave followong error


---------------------------
RegSvr32
---------------------------
D:\Documents and Settings\aanwar.LHR\My Documents\Visual Studio Projects\FirstHorizon\bin\FirstHorizon.dll was loaded, but the DllRegisterServer entry point was not found.

This file can not be registered.
---------------------------
OK  
---------------------------

can any one guide me how can i use that into my ASP page.
i already Register it for COM

regasm /tlb FirstHorizon.dll

 Add the attribute to my assembly for registering it:

 <Assembly: AssemblyKeyFile("C:\MarkItUp.key")>

Install it into the GAC

 gacutil /i FirstHorizon.dll


but no affect..............................

can any one help me

0
Comment
Question by:adeelzzz
3 Comments
 
LVL 5

Accepted Solution

by:
pdotnet earned 200 total points
ID: 18005761
Hi adeelzzz,

You're on the right track, there's just a few more things involved, such as strong naming your assembly, linking it and THEN registering using regasm.  I have a bookmark you might find useful that explains the entire process from start to finish.

http://bdn.borland.com/article/32754

I hope this helps!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now