Error Event Type: Clr20r3
Hi everyone,
I've created a program in VB using Bluetooth (InTheHand API) and Serial Port to communicate with a device. The program is working fine on some computers, but not on others. After the install, when trying to run the program, a error message is showing up with following details:
Event Type: Clr20r3
P1: prog.exe
P2: 1.0.0.0
P3: 4ae9f2c9
P4: prog
P5: 1.0.0.0
P6: 4ae9f2c9
P7: d
P8: c6
P9: system.invalidoperationexception
When I created the installer for this program, Visual Studio added InTheHand.Net.Personal.Dll and Microsoft.VisualStudio.HostingProcess.Utilities.Sync.Dll dependencies. I think the problem may come from there. I tried to register them with regsvr32 in Command Prompt and it didn't work telling me "the file was loaded but has no entry point". I'm using VS 2005 Professional. Does somebody have an idea what I should do ?
Thank you,
Ilyas.
Answers
- You cannot register .NET assemblies using regsvr32. You should use regasm tool.
Also try to add logging to your application using the Trace class. Then, log the InnerException of the InvalidOperationException as well so you can gather more information regarding the cause of the crash.
Geert van Horrik - CatenaLogic
Visit my blog: http://blog.catenalogic.com
Looking for a way to deploy your updates to all your clients? Try Updater!- Marked As Answer byILY_81 Tuesday, November 10, 2009 3:40 PM
All Replies
- You cannot register .NET assemblies using regsvr32. You should use regasm tool.
Also try to add logging to your application using the Trace class. Then, log the InnerException of the InvalidOperationException as well so you can gather more information regarding the cause of the crash.
Geert van Horrik - CatenaLogic
Visit my blog: http://blog.catenalogic.com
Looking for a way to deploy your updates to all your clients? Try Updater!- Marked As Answer byILY_81 Tuesday, November 10, 2009 3:40 PM
- Thank you, I tracked down the crash with a sub in my application events:
It appears that the 32feet.Net (InTheHand) could not start because the bluetooth stack wasn't activated on the target computer. The bluetooth stack could be activated by plugging a BT device on the computer. Is it possible to activate it by code ?Partial Friend Class MyApplication Private Sub MyApplication_UnhandledException(ByVal sender As Object, _<br/> ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs) _ <br/> Handles Me.UnhandledException MsgBox("Exception found: " + e.Exception.ToString, MsgBoxStyle.Critical, "Exception: Program could not start.") e.ExitApplication = True End Sub End Class - Hi,
Glad to see your have got your first question resolved, meanwhile, we suggest you to ask the second question in another thread since they belong to different technology.
update: the second question is duplicated with thread http://social.msdn.microsoft.com/Forums/en-US/clr/thread/429df064-817c-43c8-9828-124cfdcaf397 , shall I mark Geert's reply as answer?
Thanks,
Eric
Please remember to mark helpful replies as answers and unmark them if they provide no help. - Yes, thanks Eric.


