473,396 Members | 1,693 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,396 software developers and data experts.

ASP.Net Versions and Compatibility

I ship a C# asp.net app in .dll form which is targeted at ASP.Net v1.1.

If a user loads is on a machine with ASP.Net v1.0, it crashes--no reasonable
message--just a null-pointer exception before any of my code is reached..

Is there a standard practice to detect and/or prevent this situation. I
haven't found an option in the installer to detect the asp.net version.

thanks
charles
Nov 17 '05 #1
2 1032
Charles,

You can check the Registry and populate a variable in your MSI package with
the version of the Framework that is installed. You would need to use a
custom action to do it or a tool such as Wise for Windows Installer or
InstallShield to do it easily.

As for the crash you are having, here is a list of breaking changes in 1.1:

http://www.gotdotnet.com/team/change...ault.aspx#0000
0173

Jim Cheshire [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "charles" <ch*****@synthigence.com>
Subject: ASP.Net Versions and Compatibility
Date: Thu, 30 Oct 2003 12:47:19 -0800
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <O7**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: cust-ip-216-222-97-9.boi.rmci.net 216.222.97.9
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:187648
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I ship a C# asp.net app in .dll form which is targeted at ASP.Net v1.1.

If a user loads is on a machine with ASP.Net v1.0, it crashes--no reasonablemessage--just a null-pointer exception before any of my code is reached..

Is there a standard practice to detect and/or prevent this situation. I
haven't found an option in the installer to detect the asp.net version.

thanks
charles


Nov 17 '05 #2
Thanks for the info...

From the reference.

"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:nf**************@cpmsftngxa06.phx.gbl...
Charles,

You can check the Registry and populate a variable in your MSI package with the version of the Framework that is installed. You would need to use a
custom action to do it or a tool such as Wise for Windows Installer or
InstallShield to do it easily.

As for the crash you are having, here is a list of breaking changes in 1.1:
http://www.gotdotnet.com/team/change...ault.aspx#0000 0173

Jim Cheshire [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "charles" <ch*****@synthigence.com>
Subject: ASP.Net Versions and Compatibility
Date: Thu, 30 Oct 2003 12:47:19 -0800
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <O7**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: cust-ip-216-222-97-9.boi.rmci.net 216.222.97.9
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:187648X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I ship a C# asp.net app in .dll form which is targeted at ASP.Net v1.1.

If a user loads is on a machine with ASP.Net v1.0, it crashes--no

reasonable
message--just a null-pointer exception before any of my code is reached..

Is there a standard practice to detect and/or prevent this situation. I
haven't found an option in the installer to detect the asp.net version.

thanks
charles

Nov 17 '05 #3

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

Similar topics

46
by: Jon Perez | last post by:
Can one run a 1.5 .pyc file with the 2.x version interpreters and vice versa? How about running a 2.x .pyc using a 2.y interpreter?
0
by: Dave | last post by:
I was curious to know if anyone has suggestions about maintaining various versions of class definitions when using serialization to save data. Is there a "standard" way of handling backward...
0
by: Fernando Nasser | last post by:
Multiple database services and multiple versions on Red Hat Linux systems The way it works is that we require a specific service script for each database service (that is listening on each port)....
14
by: wolftor | last post by:
1) Is there a free runtime version of Access available that is more recent than the one for Access 2000? 2) If I create an application (MDE) in A2K, will it run on all later versions of Access?...
6
by: Ecohouse | last post by:
I have a computer with XP on it. I loaded Office 97 first because I needed Access 97 for some work. I then loaded Office 2000. Everything seemed to be running fine. But I have come across a few...
1
by: Ommund | last post by:
Hi To which degree is an MFC based dll compatible between: VC++ 2002, 2003 and 2005? We use dlls delivered by different partners and vendors and it looks like a real mess to keep track of...
5
by: Michael Maes | last post by:
Hi, We have an ERP-Application that needs to interact with an "external accountancy program". This is acchieved through a "Connector" (ActiveX-dll) so kindly provided by the Accountancy-Program....
43
by: James Stewart | last post by:
If I were to begin creating a fairly simple database, i.e. a datasheet that would include two related tables to create an encyclopedic style database and then create some fairly indepth forms to...
4
by: =?Utf-8?B?U3RlcGhlbiBSaXRjaGll?= | last post by:
Hi I have tried searching around but can't seem to get a definitive answer 1. Is it possible to have .NET 1.1 and .NET 2.0 installed on the same PC and I can then develop and deploy...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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.