Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

using dot net bases DLL in Classic ASP?

Posted on 2006-11-23
3
Medium Priority
?
1,142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Accepted Solution

by:
pdotnet earned 800 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to count occurrences of each item in an array.

704 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