473,473 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

application has generated an exception that could not be handled in VB.NET

This applicaiton was originally developed in VB 6. I converted it to
VB.NET using .NETs own conversion utilities. It runs fine on the
machine with the .NET development environment. However, why I put the
executable on a machine with MDAC 2.8 and .NET 1.1, I receive the
afformentioned error.

I have try/catch blocks in the primary forms load event. The one
statement within the catch/end section is to display the error. This
code does not get executed.
Try
.... code here
Catch ex As Exception
' never gets executed
MsgBox("Here is the error:" & vbCrLf & ex.Message)
End Try

I even put a message box as the first line in the starting forms load
event and it too does not get executed either.

I do not know how to execute any other type of error dumping or
tracing from the machine where the error occurs, but I am willing to
try anything.

Please help.

Daniel
Nov 20 '05 #1
4 1461
Hi,

What version of VS.Net are you using? If you're using 2002, you'll need to
have, iirc, .Net framework 1.0 installed as only version 2003 programs use
version 1.1 of the framework.

HTH,

Jevon
"RDKram" <kr*******@wi.rr.com> wrote in message
news:35**************************@posting.google.c om...
This applicaiton was originally developed in VB 6. I converted it to
VB.NET using .NETs own conversion utilities. It runs fine on the
machine with the .NET development environment. However, why I put the
executable on a machine with MDAC 2.8 and .NET 1.1, I receive the
afformentioned error.

I have try/catch blocks in the primary forms load event. The one
statement within the catch/end section is to display the error. This
code does not get executed.
Try
... code here
Catch ex As Exception
' never gets executed
MsgBox("Here is the error:" & vbCrLf & ex.Message)
End Try

I even put a message box as the first line in the starting forms load
event and it too does not get executed either.

I do not know how to execute any other type of error dumping or
tracing from the machine where the error occurs, but I am willing to
try anything.

Please help.

Daniel

Nov 20 '05 #2
Jevon,
You may want to review the info at:

http://msdn.microsoft.com/library/de...dexsidenet.asp

Which gives directions on how 1.0 programs can run on the 1.1 framework!
Also how 1.1 programs can run on 1.0 framework.

Hope this helps
Jay

"Jevon Farr" <pl****@ask.me> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi,

What version of VS.Net are you using? If you're using 2002, you'll need to
have, iirc, .Net framework 1.0 installed as only version 2003 programs use
version 1.1 of the framework.

HTH,

Jevon
"RDKram" <kr*******@wi.rr.com> wrote in message
news:35**************************@posting.google.c om...
This applicaiton was originally developed in VB 6. I converted it to
VB.NET using .NETs own conversion utilities. It runs fine on the
machine with the .NET development environment. However, why I put the
executable on a machine with MDAC 2.8 and .NET 1.1, I receive the
afformentioned error.

I have try/catch blocks in the primary forms load event. The one
statement within the catch/end section is to display the error. This
code does not get executed.
Try
... code here
Catch ex As Exception
' never gets executed
MsgBox("Here is the error:" & vbCrLf & ex.Message)
End Try

I even put a message box as the first line in the starting forms load
event and it too does not get executed either.

I do not know how to execute any other type of error dumping or
tracing from the machine where the error occurs, but I am willing to
try anything.

Please help.

Daniel


Nov 20 '05 #3
Daniel,
Which version of the framework did you use to develop the app?

The following web site identifies how to ensure that a 1.0 app will run on
the 1.1 framework & a 1.1 app will run on the 1.0 framework.

http://msdn.microsoft.com/library/de...dexsidenet.asp

Also seeing as you upgraded your app from VB6. Did you create a setup
package to deploy your app, or did you simply copy the executable? I suspect
you are missing the Microsoft.VisualBasic.Compatibility assembly. This
assembly is used by the upgrade wizard, you are free to deploy it with your
app, however it is not installed as part of the Framework itself. I would
recommend using a setup package to deploy your app &
Microsoft.VisualBasic.Compatibility initially, which would allow you to
install Microsoft.VisualBasic.Compatibility to the GAC.

http://msdn.microsoft.com/library/de...itylibrary.asp

http://msdn.microsoft.com/library/de...ereference.asp

Hope this helps
Jay

"RDKram" <kr*******@wi.rr.com> wrote in message
news:35**************************@posting.google.c om...
This applicaiton was originally developed in VB 6. I converted it to
VB.NET using .NETs own conversion utilities. It runs fine on the
machine with the .NET development environment. However, why I put the
executable on a machine with MDAC 2.8 and .NET 1.1, I receive the
afformentioned error.

I have try/catch blocks in the primary forms load event. The one
statement within the catch/end section is to display the error. This
code does not get executed.
Try
... code here
Catch ex As Exception
' never gets executed
MsgBox("Here is the error:" & vbCrLf & ex.Message)
End Try

I even put a message box as the first line in the starting forms load
event and it too does not get executed either.

I do not know how to execute any other type of error dumping or
tracing from the machine where the error occurs, but I am willing to
try anything.

Please help.

Daniel

Nov 20 '05 #4
Hi Jay,

Thanks for the info, I'll have a read.

Jevon
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:Oe*************@TK2MSFTNGP12.phx.gbl...
Jevon,
You may want to review the info at:

http://msdn.microsoft.com/library/de...dexsidenet.asp
Which gives directions on how 1.0 programs can run on the 1.1 framework!
Also how 1.1 programs can run on 1.0 framework.

Hope this helps
Jay

"Jevon Farr" <pl****@ask.me> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi,

What version of VS.Net are you using? If you're using 2002, you'll need to have, iirc, .Net framework 1.0 installed as only version 2003 programs use version 1.1 of the framework.

HTH,

Jevon
"RDKram" <kr*******@wi.rr.com> wrote in message
news:35**************************@posting.google.c om...
This applicaiton was originally developed in VB 6. I converted it to
VB.NET using .NETs own conversion utilities. It runs fine on the
machine with the .NET development environment. However, why I put the
executable on a machine with MDAC 2.8 and .NET 1.1, I receive the
afformentioned error.

I have try/catch blocks in the primary forms load event. The one
statement within the catch/end section is to display the error. This
code does not get executed.
Try
... code here
Catch ex As Exception
' never gets executed
MsgBox("Here is the error:" & vbCrLf & ex.Message)
End Try

I even put a message box as the first line in the starting forms load
event and it too does not get executed either.

I do not know how to execute any other type of error dumping or
tracing from the machine where the error occurs, but I am willing to
try anything.

Please help.

Daniel



Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alexey Kouzmitch | last post by:
Hi, I wrote a console application which is called from a SQL Server job. The application utilizes a COM object, to pump data from a legacy (not very old however) application to SQL server. The...
1
by: Jim | last post by:
I built my Assemblies and created the .MSI file for installation. I've installed it with no problems on my XP & 2K machines. But a friend of mine who is running 2K gets this message when trying...
5
by: Skylar Challand | last post by:
I am getting the following message on a Windows XP computer when trying to run a VB program. The same program is installed on 8 different computers without any issues. .NET Framework is installed &...
5
by: Bob L. | last post by:
Hi everyone, I have two small applications I have written that I am trying run from a network directory. Both applications have a dependency on another assembly (.dll), and I have .NET security...
5
by: | last post by:
I've created a small vb.net application which uses the Data Access Application Block to access a SQL Server 2000 database. The application works fine on the machine with the development...
2
by: scorpion53061 | last post by:
This app I am working on generated an exception but I have only found it on his laptop. Other machines do not seem to have this issue. The exception is normally according to what I have seen...
4
by: rs | last post by:
Hi guys Thank you in advance for the help. I developed a simple application using vs.net 2003. running framework 1.1 sp1. the application runs fine on the development machine (win xp). I tried...
2
by: Murthy | last post by:
Hi, After genarating the exe when i run the exe the following error is comming. Common Language Runtime Debugging Services Application has generated an exception that could not be handled....
4
by: kd | last post by:
Hi All, I have an exe, developed in vb.net (on XP Professional). I have copied the exe to another system, which is also an XP Professional system. I have installed MDAC 2.8. the .NET framework...
1
by: Vijaykumar Gaikwad | last post by:
While running application in user's machine i am getting error message i.e. Application has generated an exception that could not be handled. process id=0x1sec (492), Thread id =0xa04 (2564). Click...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.