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?
mayhemmediaAsked:
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.

gnoonCommented:
http://www.google.com/search?source=ig&rlz=&q=EventType+clr20r3+system.invalidoperationexception+error&meta=
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
       MessageBox.Show(exc.ToString())
   End If
End Sub

Open in new window

0
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 1.0.0.0, P3 47a3de26, P4 avcommander 1.0, P5 1.0.0.0, 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.
0
gnoonCommented:
Is there a UseCompatibleStateImageBehavior property of listview used in your code?
If there, try to set it to true, or comment it out.

http://blogs.msdn.com/elton/archive/2006/03/06/545090.aspx
0
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
0
gnoonCommented:
>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.
0
mayhemmediaAuthor Commented:
It's not a service. It's an executable app.
0
mayhemmediaAuthor Commented:
The solution was that an ActiveX(OCX) control had to be registered for the form to load correctly.
0

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.