Can I run ASP.NET 4.0 on Windows XP IIS6? - iis-7

Can I run ASP.NET 4.0 websites on Windows XP II6 or do I need Windows 7 with II7 in order to run it?

Yes you can run ASP.Net 4 applications on IIS 6, but some features will not be available like some of the additions to web publishing added to Visual Studio 2010 and the Auto Start feature to mention a few.
Of course don't forget to give it a different App Pool than the other applications using the other .Net versions.

Related

can my .NET framework 4 web application run on windows 8?

I've been developing a web application with an expected client machine OS of XP. I just found out that the customer upgraded their machines to Windows 8.
So my questions are:
Can I still deploy my web application (.NET 4.0 and 2008 SQL Server express backend) on a Win 8 machine as expected?
Are there any concerns for running my app on Win 8?
I haven't had time to even check out Windows 8 yet as I was not expecting this.
Yes, .NET 4.0 application can work without any problems on Windows 8 and Windows Server 2008/2012.

No ASP.NET features shown in IIS 7.5

I'm having an issue in IIS 7.5 where the ASP.NET feature section isn't showing on my web application.
My environment: Windows 2008 R2 SP1, IIS 7.5 (7.5.7600), .NET Framework 4.0
My issue is similar to the issue posted here: No asp.net features on IIS 7.5, only my environment is different. The 'add features' fix mentioned in that post doesn't appear to work in Windows Server 2008, as I'm not seeing a simple "ASP.NET" feature that can be selected.
I tried running the aspnet_regiis tool as administrator against .NET 4.0 with no luck. The application pool selected for the web application is currently configured to use .NET 4.0. This application is functional, so I'm assuming that .NET 4.0 is installed correctly, but I'd like to be able to configure a few more things that are in the ASP.NET section.
Try Roles > Right Click Web Server (IIS) > Add Role Services > Application Development to turn on the ASP.Net features in IIS
The UI is a bit different in the newer versions of Windows Server. Here is where you have to enable ASP.Net in order to get it working on IIS
The same issue but in a developer machine it may solve:
Windows Features - Internet Information Services - World Wide Web Services - Application Development Features - ASP.NET 3.5 + ASP.NET 4.8

IIS and Server OS requirements for ASP.NET 4

This only references requirements for clients:
http://msdn.microsoft.com/en-us/library/8z6watww%28v=VS.100%29.aspx
I am looking for similar documentation in reference not just for .NET 4, but ASP.NET 4 and what IIS versions, OS SP's, etc. are required. I would like to see if there are any pitfalls to requesting IT to install ASP.NET 4 and MVC 3 on our server. Don't want to have egg on my face :)
Per the documentaiton on the installer download for .NET 4.0 ( http://www.microsoft.com/download/en/details.aspx?id=17851)
Additional Requirements for Server
Installation
If you have to perform a server
installation, your computer must have
the following software in addition to
the basic requirements:
•Internet Information Services (IIS)
version 6.0 or later. To access the
features of ASP.NET, IIS with the
latest security updates must be
installed before the .NET Framework is
installed. ASP.NET is supported only
on Windows XP Professional, Windows
Server 2003, Windows Server 2008, and
Windows Server 2008 R2.
So it will run in IIS 6.0 or above. If you want to know which operating systems support asp.net 4.0, that would be any operating system that supports IIS version 6.0 or above. This jives with my comment on your question.
That said, the biggest thing to watch out for is that you have to configure any .NET 4.0 IIS application to use a different applicaiton pool than 2.0, 3.0, or 3.5. There's more info on this here: http://johan.driessen.se/posts/getting-an-asp.net-4-application-to-work-on-iis6
WinXP has IIS 5 and the .net framework and ASP.NET 4 is supported on it. For server technologies, IIS6 and newer are supported, as Server 2003 which has IIS6 is the oldest server technology that supports ASP.NET 4.

My asp.net application needs the "IIS Metabase and IIS 6 Configuration Compatibility" - how to get rid of it?

Some while ago I've upgraded an asp.net 1.1 application (which ran on IIS 5 and 6) to .net 3.5 and later to .net 4.0 (and IIS 7.5)
Still, when I want to open it in VS, I need to install the "IIS Metabase and IIS 6 Configuration Compatibility". It works after I install it, but..
How to get rid of this requirement?
When debugging ASP.NET projects using Windows 7's IIS7.5 web server, Visual Studio 2010 RTM requires the IIS6 Metabase and IIS6 Configuration Compatibility components.
However Visual Studio 2010 SP1 fixes this dependency and VS2010 now works natively with IIS7.5 without any need to use the IIS6 bits.
I also proved this by knocking out a test project in Visual Studio 2003 and then copying to two different IIS7.5 machines configured as:
PC1: VS2010 RTM, no IIS6 Compatibility
PC2: VS2010 SP1, no IIS6 Compatibility
Here's a long-winded explanation (in case you need it) but the short answer (which also appears there) is to run
aspnet_regiis -ga <WindowsUserAccount>
I believe that this only happens when you upgrade a machine or you are not an administrator of the machine when you install .Net/Visual Studio. I recently had to do this on a brand new laptop with Visual Studio 2010 installed by others before I had admin rights. So, the way to get rid of this requirement from your end is to do the install as an admin.

can we use windows 7 home edition to develop asp.net applications

I am planning to buy a new laptop to learn asp.net web applications and also windows applications. Do we get IIS7 installed when we buy the home edition of windows 7 or should we buy windows 7 professional version?
Looking at some documentation on TechNet, it looks like all the Windows 7 Home editions (Starter, Basic, Premium) have the ability to install IIS, but it is not installed by default.
If you just want to learn, Visual Studio has a built in webserver for development that will work. If you want to deploy your web applications, this page has information on which versions of Windows 7 have which IIS options available
Following this thread, no problem found so far.
You don't need IIS for ASP.NET Development if you use Visual Studio.
Visual Studio Express for the web is free, and comes with its own web server.
http://www.microsoft.com/express/Web/
You can also create windows programs with Visual Studio Express for windows.
http://www.microsoft.com/express/Windows/
If you want to do both, then you may need to buy Visual Studio.
If you want to do local debugging of asp.net using IIS then you need one of these versions. Not supported on Windows 7 Home.
Windows 7 Ultimate
Windows 7 Professional
Windows 7 Enterprise
reference:
http://msdn.microsoft.com/en-us/library/kd3se23d.aspx

Resources