I want to start a small project. The target platform on which I have to deploy my system is Windows XP. I want to develop it in ASP.NET 4.0. Can I deploy ASP.NET 4.0 application on Windows XP?
As long as you have Service Pack 3 installed, you can install the .Net framework v4.0 on windows XP.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en
Related
I have a Windows Server 2008 R2 SP1 machine with IIS 7.5. In IIS there is an running asp.net mvc 3 app targeting .NET 4.0 framework. I need to publish an asp.net mvc 5 EF 6 targeting .NET 4.5 framework.
I've already installed .NET 4.5. Now I have to register .NET 4.5 in IIS, my question is: Does aspnet_regiis command crash running apps on IIS? Is it required to restart the server or the site?
If you have firstly installed .NET 4.0, and registered it on IIS 7.5. Then I don't think you need to run aspnet_regiis.exe after installing .NET 4.5.
If I have a server running on .NET Framework 4.0.
Will it be possible to run ASP.NET vNext on top of that? Or will a higher framework version be required?
As stated on Asp.NET vNext's page on GitHub the minimum requirements for Windows as follows:
Windows 7 or Windows Server 2008 R2.
.NET 4.5.1 for hosting in IIS
However, ASP.NET vNext will let you deploy different versions of the .NET Framework via NuGet packages for different apps on server as stated here. But it's not .NET Framework 4.0 anyway. So, you need the higher version.
I'm running IIS 7.0 on Windows Server 2008. It previously had .NET 4.0 installed with Application Pools for ASP.NET v4.0 and ASP.NET v4.0 Classic.
I've now installed .NET 4.5 (v4.0.30319) and I know that .NET 4.5 is an "in place upgrade", but do I need to re-register .NET 4.0 with IIS?
e.g. C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -ir
No, you don't need to re-register. I recently installed .NET 4.5 and did not change any IIS settings.
I have a working ASP.NET MVC 3 application. The project is built with VS 2010 and targets .NET 4.0. Now I re-targeted it to .NET 4.5 and successfully recompiled. Trying to deploy it to our test server (Windows 2008 R2 SP1) now fails:
Error Code: ERROR_APPPOOL_VERSION_MISMATCH
More Information: The application pool that you are trying to use
has the 'managedRuntimeVersion' property set to 'v4.0'.
This application requires 'v4.5'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_APPPOOL_VERSION_MISMATCH.
The server has .NET 4.5 installed but there is no app pool 4.5 (because it's inplace upgrade and as I understand 4.0 pool should be fine). The client machine has VS 2012 and so Web Deploy 3 (was Web Deploy 2 previously). I also installed Web Deploy 3 to the server.
Tried to re-register ASP.NET with aspnet_regiis - no luck.
Why do I get the error and how can I fix it? This is so frustrating...
p.s.
Found similar question about RC but it does not help
Update:
Looks like this is a bug Microsoft hasn't fixed since CTP. IgnoreDeployManagedRuntimeVersion property did the trick. What a shame!
You can try adding this property to the project:
<IgnoreDeployManagedRuntimeVersion>True</IgnoreDeployManagedRuntimeVersion>
Windows Server 2012 includes .NET 4.5 by default and (when Web server role added) IIS has the following app pools: DefaultAppPool, .NET v4.5, .NET v4.5 Classic that use .NET Framework 4.0 (because 4.5 is inplace upgrade of 4.0). However, if we install .NET 4.5 redistributable on Windows Server 2008 that has .NET 4.0 installed the pools are not renamed: ASP.NET v4.0, ASP.NET v4.0 Classic. And this is the key why Web Deploy fails.
#kzu: not trying, this will work.
Had the same problem when installing Orchard CMS. Keep targeting v2.0.
But find the simple solution: in IIS, on the Application Pools (the list with all application pools), you can find the 2nd setting top right list: "Set Application Pool Defaults.." change there the default from 2.0 to 4.0 et, voila.
Register ASP.NET for IIS
a. Run CMD as Admin
b. CD to \windows\microsoft.net\framework\v4.x
c. Aspnet regiis -i
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.