EventType clr20r3 system.invalidoperationexception error

My app works on the machine it was built on but fails on all others with a EventType clr20r3 system.invalidoperationexception error. What am I missing?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Googled shows that many problems can throw this generic error; database permission, using activex, unregistered dll etc.

Use code below at the earliest code to debug for what's root cause
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf Me.WorkerThreadHandler
Private Sub WorkerThreadHandler(ByVal sender As Object, ByVal args As UnhandledExceptionEventArgs)
   If Not TypeOf args.ExceptionObject Is ThreadAbortException Then
       Dim exc As Exception = args.ExceptionObject
   End If
End Sub

Open in new window

mayhemmediaAuthor Commented:
I implemented it in every sub in the program. Same issue, install the program and it fails. Event viewer...
EventType clr20r3, P1 avcommander 1.0.exe, P2, P3 47a3de26, P4 avcommander 1.0, P5, P6 47a3de26, P7 f, P8 c6, P9 system.invalidoperationexception, P10 NIL.

I do have activex and dll that may be unregistered. I manually registered 2 dll's that I thought were causing the fail, but no worky.
Is there a UseCompatibleStateImageBehavior property of listview used in your code?
If there, try to set it to true, or comment it out.

Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

mayhemmediaAuthor Commented:
no listview used in the entire program
>Same issue, install the program and it fails. Event viewer...
You're saying your app is running as a service and log any error to event viewer.
If it's a service. Try to run it under administrator user.

Otherwise, I have no idea to resolve this issue.
mayhemmediaAuthor Commented:
It's not a service. It's an executable app.
mayhemmediaAuthor Commented:
The solution was that an ActiveX(OCX) control had to be registered for the form to load correctly.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.