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 4008212
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:43:36+00:00 2026-05-20T08:43:36+00:00

For every example of registering .NET COM objects in the web, I see the

  • 0

For every example of registering .NET COM objects in the web, I see the tool “regasm” for doing the job. Everybody does so!!!
But it never worked for me! I am tired of trying to overcome it! My only solution would be regsvr32, which requires a function which I could only define in C++.
Please tell me why wouldn’t it just work!!!

Considering that it doesn’t work on all 4 of my computers, plus 3 virtual machines, running Windows 7 down to 2000, can anyone show me a working example of a regasm call? I think I am an idiot.

  • 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-20T08:43:37+00:00Added an answer on May 20, 2026 at 8:43 am

    Registering [ComVisible] .NET assemblies with Regsvr32.exe is not possible. It doesn’t have the required DllRegisterServer entrypoint that Regsvr32 needs. You will have to make it work with Regasm.exe or a Setup project. The latter is necessary when you deploy your server to another machine.

    There are few failure modes. Other than:

    • forgetting to use the /codebase option. Required if you don’t deploy the assembly to the GAC, something you should not do on your dev machine.

    • using the wrong version of Regasm.exe. There are two on a 64-bit machine, the Framework64 directory contains the one you have to use if the client code is 64-bit.

    • running it from a command prompt that is not elevated. Regasm.exe writes to the HKLM hive of the registry, something that UAC actively prevents. That’s an issue on Vista and Win7.

    Just getting the assembly grossly wrong is of course possible too. Like not making one or more interfaces and/or classes [ComVisible].

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

Sidebar

Related Questions

Every example I've seen on the web, e.g. http://www.codeproject.com/KB/docview/jms_to_jms_bridge_activem.aspx , creates a publisher and
I've tried every example I can find on the web but I cannot get
I have see many examples of jQuery dialog, but every example has only the
Why does every example I see have while IFS= read line and not while
This may seem trivial but every example I've ever seen of ADO.net almost always
Every example I see uses the default Membership Provider with the userNamePasswordValidationMode, but can
Every example I can find is in C++, but I'm trying to keep my
Every example I see seems to be for recursively getting files in subdirectories uses
Provide an example for the pseudo-regex: Match every url except those from example.com and
Every example of tracing in .NET people remove the Default listener: <configuration> <system.diagnostics> <sources>

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.