473,406 Members | 2,336 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...

Hi -

I'm developing a .NET Win Forms application on XP. Service packed up to the
hilt including .NET 1.1 SP1 and .NET 1.0 SP3.

I've just tried running it on an XP machine and I get the above message
appearing! This machine only has .NET 1.1 SP1 installed (no .NET 1.0). I
installed .NET 1.0 and it works fine.

On trying a Win 2000 Pro machine I get the same problem. I've installed .NET
1.0/1.1 and all SPs but it still reports the same problem.

I've created a .exe.config file and on the development box can switch .NET
versions (application reports .NET version by System.Environment.Version) by
amending the settings in this.

The application is dependent on an ActiveX (via interop) and a third party
component. The question I have is:

1. Can a .NET application require two versions of .NET (i.e. one for itself
and other components it uses use another version) or do they all use the
same version?

2. What do I need to do to get it running on the Win 2000 Pro machine? BTW I
also need to go back to Win 9X, so I envisage having the same problems
here...

3. Where can I configure the .NET version to use in the IDE?

4. How can I see what version of the .NET framework a component is
targetting?

TIA

- Andy
Nov 16 '05 #1
1 2045
Hi Andy,

Please see inline comments.

"Andy Bates" <An****@freezone.co.uk> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi -

I'm developing a .NET Win Forms application on XP. Service packed up to the hilt including .NET 1.1 SP1 and .NET 1.0 SP3.

I've just tried running it on an XP machine and I get the above message
appearing! This machine only has .NET 1.1 SP1 installed (no .NET 1.0). I
installed .NET 1.0 and it works fine.

On trying a Win 2000 Pro machine I get the same problem. I've installed ..NET 1.0/1.1 and all SPs but it still reports the same problem.

I've created a .exe.config file and on the development box can switch .NET
versions (application reports .NET version by System.Environment.Version) by amending the settings in this.

The application is dependent on an ActiveX (via interop) and a third party
component. The question I have is:

1. Can a .NET application require two versions of .NET (i.e. one for itself and other components it uses use another version) or do they all use the
same version?
Your application can use both version of the .NET framework
side-by-side.
2. What do I need to do to get it running on the Win 2000 Pro machine? BTW I also need to go back to Win 9X, so I envisage having the same problems
here...
All you need is the framework + your registered 3rd party component +
its interop file. When you say Win 9x, I assume you mean Win 98 SE upwards
(ie. Win 98 SE & Win Me).

3. Where can I configure the .NET version to use in the IDE?
Choose a Project >> right click and select Properties >> Common
Properties >> General >> Supported Runtimes. Choose the elipsis and it will
provide you options to select v1.1 (default), v1.0 or both.
4. How can I see what version of the .NET framework a component is
targetting?
If you are using VS.Net 2002, it targets v1.0 (by default) and VS.NET
2003 - v1.1 (by default).

TIA

- Andy


Regarding the error message, could you paste a more verbose version of
it.

HTH,
-Azhagan
Nov 16 '05 #2

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
0
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...

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.