.NET 4.0 framework on same server as .NET 1.1

人盡茶涼 提交于 2019-12-11 00:52:56

问题


Can these framework versions work and play well on the same server? Meaning that can IIS support two application pools where one pool is configured with .NET 4.0 and the other with .NET 1.1.

EDIT: This question is concerned with IIS 7.


回答1:


Yes, you can have 1.1, 2.0 and 4.0 CLRs all running in the same IIS instance, they are intentionally side-by-side installs to facilitate this, you'll have 3 options in the dropdown for your application pool .Net versions, one for each CLR version.




回答2:


yes - you can target the .net version of a specific framework in IIS [i use IIS 7] and can right click over an application pool > go to advanced settings and then choose .net framework version




回答3:


Yes, you can do this via IIS or via command line:

appcmd set apppool /apppool.name:  OldStuff /managedRuntimeVersion:v1.1  
appcmd set apppool /apppool.name:  NewStuff /managedRuntimeVersion:v4.0


来源:https://stackoverflow.com/questions/3611399/net-4-0-framework-on-same-server-as-net-1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!