Clicky

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.
link

answered

eflamm's gravatar image

eflamm

This is my web.config file.

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

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

5281's gravatar image

5281

I don't see anything there providing a clue about which version of the framework is targeted. You might take a look at http://msdn.microsoft.com/en-us/library/ms227549.aspx 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.
link

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

eflamm's gravatar image

eflamm

eflamm,

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?  
 
link

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

5281's gravatar image

5281

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.
link

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

eflamm's gravatar image

eflamm

Your answer
[hide preview]

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Tags:

×59
×102
×156
×37

Asked: 12/14/2011 12:03

Seen: 293 times

Last updated: 12/14/2011 04:34