Link to home
Start Free TrialLog in
Avatar of mayhemmedia
mayhemmediaFlag for United States of America

asked on

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?
Avatar of gnoon
gnoon
Flag of Thailand image

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

Avatar of mayhemmedia

ASKER

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.
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
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.
It's not a service. It's an executable app.
ASKER CERTIFIED SOLUTION
Avatar of mayhemmedia
mayhemmedia
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial