Solved

Register COM dll in ASP.NET page?

Posted on 2004-10-22
885 Views
Last Modified: 2013-11-25
How do you tell an inline script ASPX page to register a COM dll? I've done this with no problem using codebehind, but I cannot figure out how to register the same DLL using inline code?


<%@ Page Language="vb" %>
<%@ Register TagPrefix="credit" Namespace="Interop.CreditAPICom" Assembly="CreditAPICom" Src="Interop.CreditAPICom.dll" %>

<script runat="server">...

I've tried numerous versions of the above code, but I get a type unknown error when I attempt to run the page. I'm sure I'm just missing one attribute. Any ideas?

0
Question by:Turgeson
    2 Comments
     
    LVL 6

    Expert Comment

    by:Praesidium
    you can use an <%@ Import %> to import a name space, or to import a particular library refrencing a control, you could use something like
    <%@ Register TagPrefix="Whatever" Namespace="Some.Namespace" Assembly="Some.Assembly" %>
    0
     
    LVL 6

    Accepted Solution

    by:
    You shouldn't have to include the dll name like you are doing in your tag, just make sure the .dll is in your bin folder.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    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…

    913 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

    18 Experts available now in Live!

    Get 1:1 Help Now