Deployment Problem with VS 2003 VB .NET
I have a stand alone Windows application written in VB .NET that installs fine and works great on my machine but when you try to on another machine it installs but when I try to run the application it gives me the following error.
SalesTax 1.08.exe Common Language Runtime Debugging Service
Application has generated an exception that could not be handledProcess id = 0xbf0 (3056), Thread id = 0xb48 (2888)
Click OK to terminate the application
Click Cancel to Debug the application
Thank you in advance for you help.
PLease check the version of the .NET Framework on your machine matches the verison on the other machine. If they are different, please upgrade the version of the other machine to that of yours.
If the problem still persists, please copy a debug version of your application on the other machine and MEssageBox the exception message.
What we did was create our on Sub Main and placed a try catch statement in their to actually catch the exception and tell us a little more about it and then with that information we were able to fix the bug. Here is the Sub Main we created:
Shared
Sub Main()
Try
Dim StartUpMain As New frmMain
Application.Run(StartUpMain)
Catch ex As Exception
MessageBox.Show("Application load error: " & ex.Message, "SalesTaxApp", + _
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End SubI hope this helps.