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

  • SEARCH
  • Home
  • 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 7534787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:07:09+00:00 2026-05-30T06:07:09+00:00

i create the ActiveX control(.dll) using user control & register as COM component .

  • 0

i create the ActiveX control(.dll) using user control & register as COM component . it working fine in 32 bit OS . but when register the same activeX control in 64 bit os (window server 2008) it throws following exception

Could not load file or assembly 'file :////C:\Program Files\STPL\GlobActiveX.dll' or one of its dependencies. an attempt was made to load a program with an incorrect format. 

i have used the following code to register the dll component

filepath=C:\Program Files \STPL\GlobActiveX.dll
            Assembly asm = Assembly.LoadFrom(filePath);
            RegistrationServices regAsm = new RegistrationServices();
            bool bResult = regAsm.RegisterAssembly(asm, AssemblyRegistrationFlags.SetCodeBase);

how to register the activeX component(.dll) in 64 bit OS?

i want to installed this activeX in 64 bit program files.I have install my winform application as setup 64 bit.i.e this setup will be installed in 64 bit platform . because i have used the one path.gcon file to working with my application when my activeX loaded then it take databse path from the my application installation path from the registry HKEY_LOCAL_MACHINE\SOFTWARE\APPLICATION_NAME\LOCATION then from this location read the path.gcon file then start the activeX control

when i have register the activeX as x86 platform then it register successfully & stored into the HKEY_CLASSES_ROOT\wow6432Node. path.gcon can not read in activeX control.
How to register the ActiveX control in x64 platform?

  • 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-30T06:07:10+00:00Added an answer on May 30, 2026 at 6:07 am

    Your dll is 32-bit, so exe must run in 32-bit mode.
    In 64-bit Windows, .NET exe with Platform AnyCPU runs in 64-bit mode.
    In 32-bit Windows, .NET exe with Platform AnyCPU runs in 32-bit mode.
    I think you host exe is Platform AnyCPU, recompile it to Platform x86,
    or use CorFlags.exe to change the exe, force 32-bit flag on.

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

Sidebar

Related Questions

Is is possible to create COM component and ActiveX controls in .Net (using c#
I've been able to create a small activex control, but it requires the dll
I need to create an ActiveX DLL (not a control). I know that VB6
I need to dynamically create com objects from an activex dll and each of
I've to create an activeX control that need to run without any prerequisit (like
I created an ActiveX control ocx file using Visual Studio 2008. Then tried registering
I have created an ActiveX dll using VB6 and packaged it using the Package
I created a ActiveX control using ATL, already package it with signature. I want
I would like to create an instance of an ActiveX control. Given the .ocx
I'm trying to embed a Unity3D-ActiveX control into a WPF-Form by using a WinFormsHost-Control.

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.