473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

application has generated an exception that could not be handled

rs
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 to deploy it on a win 2000
sp4 framework 1.1 sp1. I got the following error

Reminder.exe - Common Language Runtime Debugging Services

application has generated an exception that could not be handled

process id = 0x530(1328), thread id 0x4ac(1196)

I have other .net application works fine on the same machine and they
where developed on the same xp machine as well.

the reminder program is basically a form with a 3D style label that
stays always on topm, topmost property enabled. It also that two
timers. one to have the color for the text switches from black red and
the other time to switch texts. I have 4 menu items, first one opens a
font dialog, senond one allows customizing the text, thrid item is to
switch always on top to not always on top. the last one opens an about
form. I am not using a main function. what I will try next is to have a
main function with try/catch blocks. I tried the full permission in the
..net configuaration. nogood.

any other suggestes??

Thanks

Nov 21 '05 #1
4 10736
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Greg

"rs" <ah*******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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 to deploy it on a win 2000
sp4 framework 1.1 sp1. I got the following error

Reminder.exe - Common Language Runtime Debugging Services

application has generated an exception that could not be handled

process id = 0x530(1328), thread id 0x4ac(1196)

I have other .net application works fine on the same machine and they
where developed on the same xp machine as well.

the reminder program is basically a form with a 3D style label that
stays always on topm, topmost property enabled. It also that two
timers. one to have the color for the text switches from black red and
the other time to switch texts. I have 4 menu items, first one opens a
font dialog, senond one allows customizing the text, thrid item is to
switch always on top to not always on top. the last one opens an about
form. I am not using a main function. what I will try next is to have a
main function with try/catch blocks. I tried the full permission in the
.net configuaration. nogood.

any other suggestes??

Thanks

Nov 21 '05 #2
rs,
In addition to the other comments.

Depending on the type of application you are creating, .NET has three
different global exception handlers.

For ASP.NET look at:
System.Web.HttpApplication.Error event
Normally placed in your Global.asax file.

For console applications look at:
System.AppDomain.UnhandledException event
Use AddHandler in your Sub Main.

For Windows Forms look at:
System.Windows.Forms.Application.ThreadException event
Use AddHandler in your Sub Main.

It can be beneficial to combine the above global handlers in your app, as
well as wrap your Sub Main in a try catch itself.

There is an article in the June 2004 MSDN Magazine that shows how to
implement the global exception handling in .NET that explains why & when you
use multiple of the above handlers...

http://msdn.microsoft.com/msdnmag/is...T/default.aspx

For example: In my Windows Forms apps I would have a handler attached to the
Application.ThreadException event, plus a Try/Catch in my Main. The
Try/Catch in Main only catches exceptions if the constructor of the MainForm
raises an exception, the Application.ThreadException handler will catch all
uncaught exceptions from any form/control event handlers.

Some useful articles on Exception handling:

http://www.codeproject.com/script/ar...?userid=450027

http://msdn.microsoft.com/library/de...ceptdotnet.asp
Hope this helps
Jay
"rs" <ah*******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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 to deploy it on a win 2000
sp4 framework 1.1 sp1. I got the following error

Reminder.exe - Common Language Runtime Debugging Services

application has generated an exception that could not be handled

process id = 0x530(1328), thread id 0x4ac(1196)

I have other .net application works fine on the same machine and they
where developed on the same xp machine as well.

the reminder program is basically a form with a 3D style label that
stays always on topm, topmost property enabled. It also that two
timers. one to have the color for the text switches from black red and
the other time to switch texts. I have 4 menu items, first one opens a
font dialog, senond one allows customizing the text, thrid item is to
switch always on top to not always on top. the last one opens an about
form. I am not using a main function. what I will try next is to have a
main function with try/catch blocks. I tried the full permission in the
.net configuaration. nogood.

any other suggestes??

Thanks

Nov 21 '05 #3
rs
Thanks for the input guys. I will try these suggestions when I get to
my machine. I will keep you updated.

Thanks again

Ahmed

Nov 21 '05 #4
rs
its really funny. I knew where the problem came from.
I had autoscale checked for the dynamic properties which added another file
called Reminder.exe webconfiguration file. i noticed that if i am dont have
that file in the same directory as my main reminder.exe i will get that
error.

Thanks guys for your input

Ahmed

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:uw****************@TK2MSFTNGP11.phx.gbl...
rs,
In addition to the other comments.

Depending on the type of application you are creating, .NET has three
different global exception handlers.

For ASP.NET look at:
System.Web.HttpApplication.Error event
Normally placed in your Global.asax file.

For console applications look at:
System.AppDomain.UnhandledException event
Use AddHandler in your Sub Main.

For Windows Forms look at:
System.Windows.Forms.Application.ThreadException event
Use AddHandler in your Sub Main.

It can be beneficial to combine the above global handlers in your app, as
well as wrap your Sub Main in a try catch itself.

There is an article in the June 2004 MSDN Magazine that shows how to
implement the global exception handling in .NET that explains why & when
you
use multiple of the above handlers...

http://msdn.microsoft.com/msdnmag/is...T/default.aspx

For example: In my Windows Forms apps I would have a handler attached to
the
Application.ThreadException event, plus a Try/Catch in my Main. The
Try/Catch in Main only catches exceptions if the constructor of the
MainForm
raises an exception, the Application.ThreadException handler will catch
all
uncaught exceptions from any form/control event handlers.

Some useful articles on Exception handling:

http://www.codeproject.com/script/ar...?userid=450027

http://msdn.microsoft.com/library/de...ceptdotnet.asp
Hope this helps
Jay
"rs" <ah*******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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 to deploy it on a win 2000
sp4 framework 1.1 sp1. I got the following error

Reminder.exe - Common Language Runtime Debugging Services

application has generated an exception that could not be handled

process id = 0x530(1328), thread id 0x4ac(1196)

I have other .net application works fine on the same machine and they
where developed on the same xp machine as well.

the reminder program is basically a form with a 3D style label that
stays always on topm, topmost property enabled. It also that two
timers. one to have the color for the text switches from black red and
the other time to switch texts. I have 4 menu items, first one opens a
font dialog, senond one allows customizing the text, thrid item is to
switch always on top to not always on top. the last one opens an about
form. I am not using a main function. what I will try next is to have a
main function with try/catch blocks. I tried the full permission in the
.net configuaration. nogood.

any other suggestes??

Thanks


Nov 21 '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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.