20 March 2008

Where is ASP.NET 3.5 on IIS ?

Most people on installing .NET 3.5 on the server "expect" an entry for  v3.5 under the ASP.NET version Tab in IIS manager. And not finding that entry start panicking. If you have been one of those read on. The more tech savvy folks try to run aspnet_regiis -i from the v3.5 framework folder... but even that is missing :)

vijaysk-no35

That brings us to the question

What exactly is ASP.NET 3.5 ?

Take a look at the v3.5 framework folder you will not find most of the files needed for ASP.NET to run like aspnet_isapi.dll / aspnet_filter.dll / aspnet_regiis.exe / aspnet_regsql.exe...

The reason being .NET 3.5 is not a stand alone framework like v2.0 or v1.1 . It is just an extension of the 2.0 framework. The extension provides developers with new language features like Anonymous Types, Extension Methods, Lambda Expressions and of course LINQ .... and AJAX is now integrated ... also you have a few new ASP.NET controls <asp:ListView>, <asp:LinqDataSource>, <asp:DataPager>

Will I get ASP.NET version 3.5 under the ASP.NET tab in IIS 6.0 ?

Nope. Because as far as IIS is concerned nothing has changed. The aspnet_isapi.dll from the version 2.0 folder will still handle the requests and there is no new ISAPI dll specific to version 3.5. So you don't have to change any Script Mappings in IIS ...just leave the web application pointing to v2.0 under the ASP.NET Tab. And this brings us to the next question

What exactly is the extension ?

For that if you have Visual Studio 2008 go ahead and create a Website targeting the .NET 3.5 framework. Then go to the Property Pages of the Website and select References. You will find an entry like this

vijaysk-references

And those four assembly references provide the new features of v3.5.  Here is a 10,000 ft view of the functionality implemented in these assemblies

System.Core - Provides namespaces like System.Linq, System.IO

System.Data.DataSetExtensions - LINQ to DataSet

System.Web.Extensions - AJAX

System.Xml.Linq - New XML API.. supports LINQ to XML

Do I have to configure anything manually ?

No. When you install the .NET 3.5 redistributable on the server it installs these assemblies in the GAC. And any website that refers to these assemblies can fetch them from the GAC so you do not have to configure anything manually. All you need to do is publish the content to a web application that is marked with ASP.NET v2.0

And now you should be thinking

The new language features should require a new compiler. How exactly is the new compiler used ?

The answer is your web.config file. When you create an ASP.NET 3.5 website in Visual Studio 2008 an entry is made in the web.config something like

<system.codedom>
  <compilers>
    <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
              type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <providerOption name="CompilerVersion" value="v3.5"/>
      <providerOption name="WarnAsError" value="false"/>
    </compiler>

The new features do require a new compiler to be used and the web.config tells .NET that the v3.5 compiler has to be used.

What about IIS 7.0 ?

IIS 7.0 is no different. 

vijaysk-iis7apppool

Bookmark and Share
Filed under: ,
 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# php code and scripts » Blog Archive » Where is ASP.NET 3.5 on IIS ? said:

PingBack from http://www.stonecode.com/where-is-aspnet-35-on-iis/

20 March 08 at 4:54 PM
# Hosam Kamel said:

Most people on installing .NET 3.5 on the server "expect" an entry for v3.5 under the ASP.NET version

20 March 08 at 8:23 PM
# Phil Baldwin said:

Thank you for this - it has solved this problem for me - I had already gone down the blind alley with aspnet_regiis.

It is much appreciated, especially with the detail of the reasons why this happens.

Thanks again.

21 March 08 at 5:54 AM
# kamii47 said:

Wonderful article and great explanation.

Thanks Vijayshinva Karnure

22 March 08 at 3:13 AM
# Jereme Guenther said:

Very good article indeed.

I have to admit it is irritating not being able to set the version in IIS.  Maybe/hopefully as I begin using the new updates I will start to understand better then reasoning Microsoft had for doing this.  Right now the only reason I can think of is making the upgrade a smaller install.

25 March 08 at 11:22 AM
# sunillkc said:

Simple and very good explanation

01 April 08 at 2:55 AM
# Vincent Yang said:

Ref:http://blogs.msdn.com/vijaysk/archive/2008/03/20/running-asp-net-3-5-on-iis.aspxMostpeopleon...

08 April 08 at 7:51 PM
# Federico Caldas said:

Very good article. I was also one of those looking for a way to "register" ASP.NET 3.5 in IIS.

10 April 08 at 12:13 PM
# chuck123q said:

If I am using MSBuildToolsPath set to 3.5 is their anyway to find the path to tools I need (aspnet_regiis) from within msbuild?

15 April 08 at 11:51 AM
# Sheree said:

Thanks for laying out all of the answers in one article!

17 April 08 at 2:11 PM
# News said:

Most people on installing .NET 3.5 on the server &quot;expect&quot; an entry for v3.5 under the ASP.NET

23 April 08 at 5:52 AM
# gc said:

Thank you for this info, it was very helpful. Clear consice and accurate.

25 April 08 at 12:24 PM
# Nguyễn Gia Thăng said:

ASP.NET Version when you  installing .NET 3.5 ?

07 May 08 at 12:12 PM
# Richard said:

thanks..this article was very helpful

10 May 08 at 9:01 AM
# Manoj Nair said:

Thanks a lot... Saved me a lot of unnecessary work

12 May 08 at 12:06 PM
# Kamil said:

A related issue -- my computer does not have an ASPNET account. How do I create it? I have just now installed v3.5 of .NET framework on Windows 2003 Server.

Thanks.

13 May 08 at 4:35 PM
# kyma said:

A really good article to explain something actually quite fundamental.  A lot of developers are not aware of the basic concept that 3.5 is not a standalone framework.

Thank you.

15 May 08 at 9:29 AM
# Loretta said:

Great article.  Saved me some time!

23 May 08 at 1:00 PM
# YTC said:

Exactly what I was looking for.

Thank you!!!

23 May 08 at 2:11 PM
# Parveen Battan said:

Thanks for such a nice article

27 May 08 at 2:00 AM
# David Anderson said:

Very helpful!!  Like you started your article - I was one of those confused by the whole thing.  Not any more!

03 June 08 at 3:18 AM
# Patrick Collins said:

Thanks, a very helpful article!

26 June 08 at 4:55 AM
# Huseyin said:

Thank you for that clarification.

15 July 08 at 3:00 AM
# Tanmoy Ghosh said:

Great! thanks for this extremely helpful information

17 July 08 at 1:27 PM
# sangam said:

yes, useful.i had iis installed after .ne t 3.5 and i

wished asp.net  3.5 extension in iis dropdownlist.

but it is clear now.

regards,

sangam

http://www.dotnetspidor.blogspot.com

06 August 08 at 1:23 AM
# Mahesh said:

Really a good Article!!!!!!!!!!!!!!!!!!1

07 August 08 at 8:28 AM
# Sylvie said:

Thank you for clarifying how 3.5 is working in this article. I just installed 2008 and converted the 1st projects. I was confused when I saw 2.0 references in IIS ....  Your article really helped me.

28 August 08 at 1:28 PM
# Saroj said:

I've an Web Application in ASP.NET 3.5, I'm trying to run it through IIS 6.0, how ever the application is not running. After 10 mins its showing Timeout error waiting for a program to execute. The command being executed was "C:WINDOWS....\v3.5\......\vbc.exe" /noconfig @"C:\WINDOWS\.........\v2.0.50727\............ *.cmdline"

PLease suggest something, its very urgent.

04 September 08 at 9:13 PM
# Levi said:

Boy do I feel silly  :)  

This was great info, thanks!

16 September 08 at 3:56 PM
# udayt said:

Thanks Buddy!

Very helpful.

27 September 08 at 8:50 AM
# Balat said:

I re-installed version 3.5 twice... I thought there is a problem... thanks for this article... now I can smile :)

06 October 08 at 4:17 AM
# Vinayy said:

I was also one of those looking for a way to "register" ASP.NET 3.5 in IIS.

I share my view with Federico Caldas (his post dated 10 Apr 2008).

06 October 08 at 7:33 AM
# praveen said:

Excellent I was Looking for the same thing.

Thanks a lot for such a good explination.

22 October 08 at 3:15 AM
# Rainer said:

Excellent article! Exactly the information I was looking for. Thanks  Danke!

22 October 08 at 8:38 AM
# David said:

Brilliant. Excellent and very useful article.

Thanks a lot for sharing your knowledge.

24 October 08 at 1:11 PM
# tc said:

This is a very nice article. Thank you very much.

28 October 08 at 8:55 AM
# John Grayless said:

I don't know how many times I get asked this same question daily. Thank you for writing the article so clearly and simply. I will certainly offer your URL as part of my answer in the future.

29 October 08 at 10:31 AM
# Adrian Valdez said:

Thanxs a lot!

Jus to be clear this is the same for IIS 5.0, 5.1, 6.0 and 7.0 ?

From your explanations its seems to be that it is

01 November 08 at 1:31 PM
# very helpful said:

Very helpful and very clear explanation. Great

11 November 08 at 3:15 AM
# Jonathan K. Herschel said:

Thanks, you saved me from pulling ALL of my hair out.

18 November 08 at 4:08 PM
# Prema said:

Very helpful and informative article.

19 November 08 at 4:37 PM
# Nirav Shah said:

I have created one project on Visual studio 2005.  I craeted virtual directory and it worked fine. I was able to access it. Now I have installed Visual studio 2008. I have upgraded my project to 2008. I also created virtual directory.

             This time it is giving an error when I am trying to browse my project from I.E. The error is failed to access iis metabase. Can you please help me regarding this?

24 November 08 at 3:46 AM
# matt said:

Thanks! I just installed VS2008 and was hella confused about "registering" 3.5

29 November 08 at 11:51 AM
# dikasths said:

Kalo arthro. Kerdizeis ena xryso papari .NET 3.5

03 December 08 at 8:23 AM
# CM Cody said:

Simple, clean, and direct explanation.  Excellent article. Much appreciated.

18 December 08 at 10:19 AM
# Sam said:

Excellent Article. I was confused about .net 3.5.

Thanks a lot

19 December 08 at 12:00 PM
# Senthil said:

Hats Off !!!!!!

Thanks a Bunch !

30 December 08 at 6:39 AM
# Ben said:

Thanks! Of course, MS could maybe make this a little more obvious?

12 January 09 at 12:59 AM
# mauri said:

excelent post!!! really helpful

13 January 09 at 9:04 AM
# Vern said:

Great info and to the point. Bravo!

13 January 09 at 10:41 AM
# Priya said:

Excellent Article. Answer to many questions. Thanks

22 January 09 at 12:54 AM
# Abhas said:

Thanks for the very Informative article

22 January 09 at 6:01 AM
# sun said:

good info and nice presentation..thx

29 January 09 at 6:14 PM
# Useful IIS/ASP.NET Information provided by Microsoft Support Teams said:

Most people on installing .NET 3.5 on the server &quot;expect&quot; an entry for&#160; v3.5 under the

30 January 09 at 2:01 PM
# NicMartel said:

Bastards!!  I spent an enormous amount of time trying to resolve this obvious issue.  It SHOULD BE MENTIONNED CLEARLY UP-FRONT BY MICROSOFT ON THE DOWNLOAD PAGE...  f idiots!!  The proof is above... see how many have wasted valuable time!!!  and think of HOW MANY have not stumbled ONTO THIS ARTICLE!!!!!! 1000s.... again f idiots!

04 February 09 at 3:05 AM
# ashwinkavale said:

Excellent Article...solved my confusion regarding  3.5 and IIS.

06 February 09 at 2:14 AM
# ashwinkavale said:

Excellent Article...resolved my confusion regarding  3.5 and IIS.

06 February 09 at 2:14 AM
# Mr Farney said:

Thank!  This article was very helpful.

25 February 09 at 9:34 AM
# neevan said:

thanks ...

very useful ..............

13 March 09 at 3:56 AM
# Jini said:

Well explained.... simple and neat

22 March 09 at 3:48 AM
# Tyler said:

Thanks, was looking for 3.5 in the tab.  

01 April 09 at 3:11 PM
# pallavi said:

thanks buddy it really helps us to know new things for 3.5

14 April 09 at 7:28 AM
# Minesaguinness said:

Thanks - I was scratching my head when I first installed 3.5 I like most others was expecting the entry in Iss to change which framework was being used.

21 April 09 at 10:36 AM
# Brian B said:

Extremely helpful and well written (with nice illustrations)

21 April 09 at 1:51 PM
# Faraz said:

Thanks for the article...I was looking for the entry, this really saved me a lot of time.

04 May 09 at 11:16 PM
# Nishantha said:

Excellent... simple, brief and lets you know what you need to know..

05 May 09 at 2:22 PM
# Hara Prasad said:

Excellent and useful article. Earlier I was thinking 3.5 as a standalone appln, but now its clear to me. I got this article while searching for article regarding the migration of project from .net 2.0 to .net 3.5. This article flushed all my doubts. Thanks a lot again. God bless u.

08 May 09 at 11:34 AM
# freggel said:

Thanks for this article, but I have still one question.

Does this mean that it also still uses the machine.config from the .net framework 2.0?

19 May 09 at 5:34 AM
# Kashyap said:

Thank God! I was not the only one to get confused with this.

But your article made everything clear. Superb! Thanks a lot!

19 May 09 at 8:50 AM
# Harish said:

Very good article. Thank you very much.

22 May 09 at 7:41 AM
# Sharon said:

Thanks for the info - helped a lot to clarify this 3.5 install process, and it's end results.

10 June 09 at 1:35 PM
# Rock said:

Thanks for this . it is very clear.

15 June 09 at 1:05 AM
# Puneeth said:

Thanks for the information, very useful!!!

16 June 09 at 8:16 AM
# Rapolu said:

Thanks a lot for the Info. Good Atricle

07 July 09 at 12:11 PM
# bonisagus said:

Great article. It explains very clearly.

10 July 09 at 3:04 AM
# tyahid3 said:

Excellent information.. I have been looking for this info for 2 days and finally got my website to work...

17 July 09 at 1:16 PM
# KIra said:

Thanks! Simple yet very informative.. :)

21 July 09 at 9:56 PM
# SV said:

Superb Explanation !!!

Thanks a lot !

30 July 09 at 2:33 AM
# Sandy said:

Very good explaination but I am having a problem here.

I recently converted a 1.1 application to 3.5 and everything works fine on local machine. But when its moved to server, i am getting error saying "script manager is not known element". Please help. I have System.Web.Extensions included in my config.

31 July 09 at 2:12 PM
# Sandy said:

Finally I got it resolved. I enabled scripts on the permission tab. And then app worked fine.

But I appreciate your article. Its solid.

31 July 09 at 4:42 PM
# rainmanalex said:

Couldn't have said it any better and simpler Thanks a lot

08 August 09 at 10:08 PM
# zorkmead said:

This article was clearly written and very useful.  Thank You

13 August 09 at 1:26 PM
# Gunasekaran said:

Really a nice article keep up the things!!!!

21 August 09 at 8:08 AM
# Mac said:

I hate to be the guy who isn't posting a "thank you" but I think your presentation is misleading. There is no such thing as ASP.NET 3.5. Microsoft marketing actually deserves most of the blame. ASP.NET has only proceeded to version 2.0. The .NET Framework is versioned separately and has had a 3.0 and 3.5 release.

So it isn't really correct to say that ".NET 3.5 isn't a stand-alone framework" in this context because the .NET Framework version doesn't bear any direct relationship to the ASP.NET version number.

Just ran across this while looking for something else. :)

27 August 09 at 11:22 PM
# Ric said:

This blog post saved me a lot of time. Thanks!

28 August 09 at 3:01 AM
# Raj said:

Thanks & Saved my time as well.

06 September 09 at 6:32 PM
# Jonas said:

Thanks! This article answered all my ASP.NET 3.5 confusions in one place. ;-)

07 September 09 at 8:11 AM
# suvarna said:

Recently we have migrated our code frm 1.1 to 3.5 and i was searching for 3.5 option under asp.net version but i cudn't get it and i have been searching for this since a long time and finally i got this nice explanation here. Thanks for the useful information...this has answered all my questions.

18 September 09 at 8:47 AM
# Julian said:

hi, i from argentina, MUCHAS GRACIAS :D thank you!!

29 September 09 at 3:05 PM
# Sanal Chandran said:

Thanks a lot.... Very nice article...

04 October 09 at 6:08 AM
# Harsha said:

This is great. I was starting to sweat when I did not see the 3.5 version under IIS.

Harsha

09 October 09 at 3:32 PM
# Natalya said:

I like many other was puzzeled, not anymore... Thank you so much for the explanation.

20 October 09 at 9:57 AM
# roor said:

thanks very much, it was very helpful article

01 November 09 at 3:11 AM
# chad said:

How can you tell 3.5 SP1 is installed 3.5.1 on the versions?

07 November 09 at 5:56 PM

Leave a Comment

Comment Policy: No HTML allowed. URIs and line breaks are converted automatically. Your e–mail address will not show up on any public page.

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Page view tracker