ASP.Net Versions and Compatibility

C

charles

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
 
J

Jim Cheshire [MSFT]

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/changeinfo/Backwards1.0to1.1/default.aspx#0000
0173

Jim Cheshire [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

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

--------------------
 
C

charles

Thanks for the info...

From the reference.

Jim Cheshire said:
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/changeinfo/Backwards1.0to1.1/default.aspx#0000
0173

Jim Cheshire [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

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

--------------------
From: "charles" <[email protected]>
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: <[email protected]>
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!tk2msftngp13.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 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top