Solved

using dot net bases DLL in Classic ASP?

Posted on 2006-11-23
3
1,121 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Read about why website design really matters in today's demanding market.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This video teaches users how to migrate an existing Wordpress website to a new domain.

856 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