views:

228

answers:

3

I've recently upgraded VS 2008 to VS 2010. On our server we have IIS6 installed and we can not change that in near future. Even though we will develop new applications to be deployed on IIS7 but if situation demands we may need to develop an application using .net 4.0 and to be deployed on IIS6, then in this case I wanted to know whether IIS6 supports .net 4.0 application or not?

If I can deploy, then do I need to take care of any configuration or any other setting I should change before deploying it?

+2  A: 

IIS6 does support ASP.NET 4.0, though if you want to use URL routing you'll need to make some tweaks.

This page has some details on this: http://blog.stevensanderson.com/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/

Program.X
I'm not using MVC, so in that case it wont possible for me to deploy any web application? Is there any alternative to go ahead?
JPReddy
This link should help you for Web Forms. http://msdn.microsoft.com/en-us/magazine/dd347546.aspx
Program.X
+1  A: 

Yes You can deploy .NET 4.0 with IIS 6 . refers to following links. for solutions..

http://stackoverflow.com/questions/2821514/default-aspx-with-iis-6-0-and-net-4

http://www.microsoft.com/downloads/details.aspx?FamilyID=ded875c8-fe5e-4cc9-b973-2171b61fe982&displaylang=en

Second link is not working. Can you please recheck it again.
JPReddy
+2  A: 

My very complicate sites now are on iis6 running asp.net 4.0

My only issue moving from 3.5 to 4.0 it was this

http://stackoverflow.com/questions/2821514/default-aspx-with-iis-6-0-and-net-4

and the

<httpRuntime requestValidationMode="2.0" />

You can check all this list of breaking change moving to 4.0 http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes

Aristos