Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

AxInterop dll runtime error ?

Posted on 2007-08-07
9
Medium Priority
?
440 Views
Last Modified: 2013-11-07
I have a runtime error occuring in an AxInterop.file.dll.
Is it possible to debug this ?

The exception is of the type:
"Windows.Forms.AxHost.InvalidActiveXstateException"

Thanks.
0
Comment
Question by:pillmill
  • 5
  • 4
9 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 19648332
That usually means that the ActiveX cannot be sited in host container.  What is the ActiveX control?

Bob
0
 

Author Comment

by:pillmill
ID: 19648528
It includes controls such as textboxes and datagrids.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 19648557
Not exactly a good explanation.  Did this come from something like VB6?

Bob
0
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!

 

Author Comment

by:pillmill
ID: 19648688
Yes, this is a VB6 conversion project. The .NET code is converted applications. The ActiveX is unconverted VB6 libraries.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 19648963
If you didn't create a siteable control in the COM library, then you can't place site it in .NET either.

Bob
0
 

Author Comment

by:pillmill
ID: 19649045
I converted the project, including the dll and ocx references, using the upgrade wizard.
Then, I manually fixed the compile errors.
Don't the Interop dll's allowing using the Vb6 ActiveX libraries ?
What do you mean by siteabler control ?
Thanks.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 19649060
AxHost is created when you try to drop an ActiveX control onto a form (site).  If you didn't set up the ActiveX correctly on the COM side, this ain't gonna work.

Bob
0
 

Author Comment

by:pillmill
ID: 19649181
Thanks.
Can you point me to some references for the correct set up of ActiveX on the COM side ?
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 total points
ID: 19649450
You could try to create a UserControl in a VB6.  The properties, methods and events for the control would depend on what you need to expose.

Bob
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

581 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