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

.NET Framework Initialization Error - Trap

Currently using .NET v1.1.4322 and v1.0.3705.

Starting a C# console application for the office - I wanted to <gracefully>
via structured error handling trap the condition where the .NET framework
(neither of the above) is not installed on the server/workstation - instead
of the default messagebox with the ok button that shows up - is there a way
for me to provide better messaging to the operator/user?

Tia,

John C. Gunvaldson
San Diego, CA
Nov 17 '05 #1
2 2891
You're in a catch-22 situation. In order for any of your C# code to be
executed (including any structured error handling code), the framework
must be loaded, but if the framework is not present, your structured
error handling code will not even run!!

I'm not sure what you can do. You might try creating an application
launcher using C++ or VB6 and have that check for the framework and if
not present, put up a graceful error message. And if it is, start the
..net app.

Nov 17 '05 #2
> You're in a catch-22 situation. In order for any of your C# code to be
executed (including any structured error handling code), the framework
must be loaded, but if the framework is not present, your structured
error handling code will not even run!!


Pretty much what I have seen googling the world. One would have thought that
there would be some Windows OS call that that provided the basis for the
default MessageBox that is displayed, that would have an interface that
could be extended (for a more client specific basis) - but I have not ran
across it yet, if available?

Thanks Chris,

John C. Gunvaldson
San Diego, CA

Nov 17 '05 #3

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

Similar topics

3
by: Jean Stax | last post by:
Hi ! I try to make pretty straight forward operation, but it fails... I have .NET Framework 1.1 Configuration (version 1.1.4322.573) with VS 2003, where I developed a sample application. Now I...
3
by: Dan Berg | last post by:
In my event log on my IIS 6.0 Windows 2003 Server I get the following Active Server Pages Error Error: The Template Persistent Cache initialization failed for Application Pool...
10
by: Mike D | last post by:
I have a table in SQL 2000 with a composite Primary Key on coulumns Instrument_ID (int) and WeekOf (smalldatetime.) I am running asp on win 2003. I insert values using a stored procedure from...
8
by: Rene | last post by:
Hi, I'm spend many hour to fix this problem, read many articles about it but no article gave a solution. To isolate the problem I've created in IIS6 (WServer2003) a virtual directory test to...
0
by: Fox/Net West | last post by:
Currently using .NET v1.1.4322 and v1.0.3705. Starting a C# console application for the office - I wanted to <gracefully> via structured error handling trap the condition where the .NET framework...
2
by: Bill Fallon | last post by:
I have a VS2005 VB.Net windows form application deployed to a share drive. The windows explorer security permissions for this application (.exe) file is set for Everyone with List Folder/Read Data...
20
by: JohnQ | last post by:
The way I understand the startup of a C++ program is: A.) The stuff that happens before the entry point. B.) The stuff that happens between the entry point and the calling of main(). C.)...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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
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
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,...

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.