Solved

using dot net bases DLL in Classic ASP?

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

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

636 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