Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Register COM dll in ASP.NET page?

Posted on 2004-10-22
Medium Priority
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?

Question by:Turgeson
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
  • 2

Expert Comment

ID: 12390363
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" %>

Accepted Solution

Praesidium earned 200 total points
ID: 12390368
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.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

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