Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

where is asp.net 3.5 in IIS | how to publish/setup asp.net 3.0 and 3.5 applications on IIS.

Nov 5, 2011

Introduction:

In this article I will explain where is asp.net 3.5 in IIS and how to setup asp.net 3.0 and 3.5 applications on IIS and how to publish asp.net 3.5 applications on IIS.

Description:

I am writing this post because in one of the interview interviewer has asked one interesting question that is now you’re using .NET 3.5 if I want to deploy .NET 3.5 version web application which type asp.net version I need to select in IIS or same question another way if I setup .NET 3.5 framework version on my machine whether I will get 3.5 version in IIS ASP.NET version dropdown or I will get only 2.0.50727, 1.1.4322 versions.

Generally open IIS just by type inetmgr in run command prompt and select website in Default Web Site right click on that and select properties. Now select Asp.Net tab under that check asp.net versions we will find versions like this



If we install .NET 3.5 and try to check Asp.NET version dropdown we will get only 2.0.5072 or 1.1.4322 versions there is no 3.5 version. Now we will get many questions like why this happened? What exactly .NET 3.5 version is? Whether we need to set any separate configurations to deploy .NET 3.5 applications? and many more questions.

If we observe asp.net 3.5 features it is just extension of asp.net 2.0 version it’s not a standalone framework like 2.0 version or 1.0 version because of that we won’t get 3.5 version in ASP.NET version dropdownlist. If we want to publish or deploy website with 3.5 version we don’t want to make any modifications in configurations.

When we install .NET 3.5 version on server it installs Syste.Core, System.Data.DataSetExtensions, System.Web.Extensions, System.XML.Linq assemblies in the GAC. If any website that refer these assemblies can fetch from the GAC because of that we don’t want to configure anything manually. Only the thing we need to do is just publish the website and select ASP.NET version 2.0.50727. Now we will get doubt like how it will work without making any changes am I right? The changes will be made in web.config file of website to check these details create new website 3.5 in visual studio 2008 and open web.config file we will see something like this


<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>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4"
type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>

Here if we observe above code it creating new compilers by using these we can say that version 3.5 has to be used in application.


If you enjoyed this post, please support the blog below. It's FREE!

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

4 comments :

Anonymous said...

i want to know how to publish web application(not website) of localhost IIS

Anonymous said...

Please explain step by step procedure to Build & Publish web application on Localhost(IIS installed)

Suresh Dasari said...

Check this link
http://www.aspdotnet-suresh.com/2012/04/aspnet-host-website-on-local-machine.html

56756 said...

76678

Give your Valuable Comments

Note: Only a member of this blog may post a comment.

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.