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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:26:30+00:00 2026-06-10T15:26:30+00:00

I have a windows forms application that uses legacy vendor com objects. I’ve registered

  • 0

I have a windows forms application that uses legacy vendor com objects. I’ve registered the ocx. The VS2010 project succeeds in referencing the axFOO dll. The code works in Visual studio running on Windows 7. The setup project installs correctly and if installed on my local PC (win7) it works. When I attempt to install on a windows 2008 VM, installation is successful, when the portion of the application that uses the object is executed it fails with this error:

Unable to get the window handle for the ‘xx’ control. Windowless ActiveX controls are not supported.

I have the ocx file registered. I found several articles about Vista and DEP. Nothing regarding the difference in Win7 and win2008. I have DEP turned off right now using the command

bcdedit.exe /set {current} nx AlwaysOff

This did not help.

Application is written in C#.
Any suggestions? I’m more accustomed to ASP.net. COM is new to me. Thanks.

Also, I’ve identified the exception is triggered here during Initialize method:

 ((System.ComponentModel.ISupportInitialize)(this.myCtrl)).EndInit();

More details:
I’ve installed VS 2010 on the Win2008 machine to try and make the two more similar with no luck. Same problem occurs running in VS2010 debug mode. -not stopping in VS when exception hits. Although I didn’t expect it to.

  • 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-06-10T15:26:32+00:00Added an answer on June 10, 2026 at 3:26 pm

    Putting this here in case it helps someone else. not exactly an answer..

    I found my problem. Using procmon.

    So it was nothing to do with the stated error. The user executing the com object didn’t have IO permissions to a folder I didn’t know it needed to use.

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

Sidebar

Related Questions

I have a Windows Forms application that uses some Application.Idle handlers to change the
If you have a windows service and a windows forms application that uses the
We have a Windows Forms application that uses a (third party) ActiveX control, and
I have an application that uses Windows.Forms.Panel to display a list of pictures. When
I have a windows forms application that uses excel to generate some reports. Untill
I have an Windows Forms application VS 2008 - C#, that uses app.config. In
I have written a Windows Forms application in C#, .NET framework 2.0, that uses
I have a windows forms application that reads and updates an XML file with
I have a Windows Forms application that on it I have a RichTextBox, like
Scenario I have a C# windows forms application that has a number of processes.

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.