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 handled

Process 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.

[1302 byte] By [RevenueGuy] at [2007-12-16]
# 1
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.

Vipul at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
The computers are running the same version of the .NET Framework so I will try to MessageBox the exception and see what that tells me I will post what I find and again thanks for the help.
RevenueGuy at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3
I have created a Debug version of the application on the other machine. I have a Catch statement on the load of the main form for a genral exception but it does not catch the exception. Do I need one to be placed in the constructor or is there a specific type of exception I should be trying to catch? Thanks
RevenueGuy at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 4
I finally was able to catch the exception and with the information that provided I was able to track the problem and fix it. Thanks for the help.
RevenueGuy at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 5
good to hear that.
Vipul at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 6
Revenue Guy,

I have a similar problem. Since you seem to have solved the problem, could you share how you fixed the problem?

Thanks,
TechGirl

TechGirl at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 7
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 Sub

I hope this helps.

RevenueGuy at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified