473,732 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10765
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Greg

"rs" <ah*******@gmai l.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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.Http Application.Err or event
Normally placed in your Global.asax file.

For console applications look at:
System.AppDomai n.UnhandledExce ption event
Use AddHandler in your Sub Main.

For Windows Forms look at:
System.Windows. Forms.Applicati on.ThreadExcept ion 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.Thr eadException 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.Thr eadException 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*******@gmai l.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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 webconfiguratio n 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******** ********@TK2MSF TNGP11.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.Http Application.Err or event
Normally placed in your Global.asax file.

For console applications look at:
System.AppDomai n.UnhandledExce ption event
Use AddHandler in your Sub Main.

For Windows Forms look at:
System.Windows. Forms.Applicati on.ThreadExcept ion 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.Thr eadException 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.Thr eadException 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*******@gmai l.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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
2147
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 application works fine, but once in a while it fails with the following message written to the event log: ----------------------------------------------------------------------- The description for Event ID ( 0 ) in Source ( .NET Runtime )...
1
2631
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 to run my app: ----------------------------------------------------------------- Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process id=0x760(1888), Thread id=0x128(296)...
5
770
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 & app was installed using the installer that comes with Visual Studio .NET. The application uses an ODBC connection to an access database, which should have installed with the installer as well as Crystal Reports, which also is installed with the...
5
488
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 wide open. One application is dependent on an interop assembly (Interop.IWshRuntimeLibrary.dll), and it works fine. The other application depends on three assemblies that I have written, and although the executable starts successfully, as soon as...
5
2382
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 environment (Windows 2K) but I am unable to get it to work on two other machines (Windows XP machines). When I try running the application on these machines I get a message box, after some delay, that says "Application has generated an exception that could...
2
1565
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 on the net an ASP.NET exception. So why it is happening in Windows is a mystery to me.
2
2150
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. Process id=0xdec (3564), Thread id=0xdf0 (3568) When I click CANCEL to debug, I get this error-message:
4
40922
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.1 and .NET framework 1.1 SP1. I am getting the following error reported by Common language runtime debugging services: Application has generated an exception that could not be handled. Process id=0x234(584) Thread id=0x404(1028). Click OK to...
1
2912
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 ok to terminate the application click cancel to debug the application. While running on my machine and some of the users machine it's running fine.Framework installed is same on all the machines. So i don't understand what may be the reason. Could...
0
8774
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9447
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9235
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
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 we have to send another system
3
2180
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.