Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6707497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:38:48+00:00 2026-05-26T07:38:48+00:00

Scenario – I am writing a console application. Need to use a certain DLL

  • 0

Scenario – I am writing a console application. Need to use a certain DLL called Interop.ABCServer.DLL [I’m new to COM, so really don’t know where it comes into picture here, but i have checked this DLL through ILDASM, it opens and shows metadata. So, i guess it’s a .NET DLL and not a COM DLL]

Now when i try to use it by initiating certain class from it, it gives me an exception – Retrieving the COM class factory for component with CLSID<1111-1111….> failed due to following error:80040154.

Questions – supposing COM component is an old technology and requires component to be registered first, we need to register it somehow. How do i register this component (remembering it’s a .NET dll and not a COM dll)?

Is above registration the resolution of the problem? IF not, then how to resolve it.

Now i have registered ABCServer.dll using regsvr32.dll.
But,

I have code like,

try
{
    Ilookup LP = New LoopUpClass();
    IServer Svr = LP.LookUpServer(hostname, port);
}
catch(Exception ex)
{

}

Line 1 that was giving error previously now just terminates the application.
I’hv even added break points on line 1 and line 2 while debugging. But control never reaches line 2, application just terminates as soon as i press F10 while on line 1.

Basically, once i have registered the COM, how do i use it. Do i need to register it from COM tab in ADD REFERENCE dialog, OR do i need to create a INTEROP.ABCServer.DLL afresh OR can i use the original INTEROP.ABCServer.DLL that i was provided.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:38:49+00:00Added an answer on May 26, 2026 at 7:38 am

    Your Interop.ABCServer.DLL seems to be just the runtime callable wrapper.
    It contains just code that marshalls calls to the real COM library.

    So you need a second dll which is your concrete COM component which you have to register with regsvr32.exe. Its probable called ABCServer.DLL

    To your appended questions:

    If the provided Interop lib is up to date you can use it. If not, you can create your own with TLBIMP.EXE. When adding a referecne to the COM dll directly, CS will generate the RCW lib on the fly for you. Thats absolutely ok, if you don’t have dependencies between multiple COM libaries you want to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario is I have a application relative url like ~/path/to/page.aspx?query=string. I need to programatically
Scenario: I'm currently writing a layer to abstract 3 similar webservices into one useable
Scenario: I have a C# application that uses Click-Once to install(puts an icon on
Scenario: A VB6 library calls a method in a .NET-Assembly through COM and with
Scenario: A new blank Magento with a category product and customer import with some
Scenario: I have a customer object with lazy loading enabled. I use that throughout
Scenario: I am in the process of refactoring one of our applications to use
Scenario: I have a web application (SnapshotServer) which uses a WebBrowser control to take
Scenario: I am writing a WCF client to access a Java/Metro webservice which requires
Scenario The system has classes declared in /system/classes/ . The application has classes declared

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.