Solved

using dot net bases DLL in Classic ASP?

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

762 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