I have a question about framework version.  I developed an application in Visual Studio .Net 2003 from virtual machine.
1.  How do I know which .NET framework this application uses?  
2.  When I install this application, to make this application run well, I need go to IIS, select ASP.NET version 2.0 rather than 1.1, what does it mean?  Is that a real framework 2.0 application?

asked 12/14/2011 12:03

5281's gravatar image

5281 ♦♦

5 Answers:
I would take a look in your web.config file, and maybe share its contents here - there will probably be a reference to one or more dll files which should provide a clue as to which framework you are using.

With regards to IIS - all versions of the framework from .net 2.0 to .net 3.5 run under the ASP.Net version 2.0 setting. In IIS 7 (Server 2008/Windows 7) and later, you also have the option of ASP.Net 4.0 (and support for 1.1 is dropped) .

Although significant features were added to .net 2.0 and subsequent releases, many of the framework elements are consistent with .net 1.1. However, all of the files (and the CLR, for that matter) were re-written and re-compiled for .net 2.0, so it's not surprising that your site runs better with the 2.0 setting, as long as your not using any features from 1.1 which were removed from the framework. It's been so long, I don't remember what those were, but I know they weren't particularly critical to any of my projects at the time.


eflamm's gravatar image


This is my web.config file.

<?xml version="1.0" encoding="utf-8"?>
 <compilation defaultLanguage="c#" debug="true"/>
<customErrors mode="Off"/>
<authentication mode="Windows"/>
        <allow users="*"/>
 <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
 <sessionState mode="InProc" stateConnectionString="tcpip=" sqlConnectionString="data source=;Trusted_Connection=yes" cookieless="false" timeout="20"/>
 <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

answered 2011-12-14 at 08:15:26

5281's gravatar image


I don't see anything there providing a clue about which version of the framework is targeted. You might take a look at In particular
Web pages that use the old code-behind model based on the CodeBehind attribute of the @ Page directive will continue to work in ASP.NET 2.0. However, it is recommended that you migrate these pages to the new code-behind model using the CodeFile attribute of the @ Page directive and a partial class definition in the code-behind file to take advantage of improved markup and code separation as well as automatic page compilation. Web pages that use the old code-behind model must be manually compiled.

So, if your pages use CodeFile in the @Page directive, they are ASP.Net 2.0 or later.

answered 2011-12-14 at 08:31:59

eflamm's gravatar image



I heard the Microsoft minimum support level is framework 3.5 now.  What do you think about it?  Is it hard to migrate framework 1.1 application to 3.5?  

answered 2011-12-14 at 09:20:45

5281's gravatar image


Not difficult - in fact, if you open a 1.1 site in Visual Studio 2010, it will offer to upgrade it for you - you can choose to target .net 3.5 or .net 4, and it will give you a report of any features it could not convert.

As I said, 3.5 is really an enhanced/upgraded version of the 2.0 Framework, so it's really just an issue of how up-to-date your web server is.

answered 2011-12-14 at 11:01:43

eflamm's gravatar image


Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



Asked: 12/14/2011 12:03

Seen: 336 times

Last updated: 12/14/2011 04:34