简体   繁体   English

3.5应用程序池下的ASP.NET 4.0应用程序

[英]ASP.NET 4.0 application under 3.5 application pool

The server has .NET framework 4.0 installed but the application pool is set to 3.5. 服务器已安装.NET Framework 4.0,但应用程序池设置为3.5。 Is there a way to force it to run my 4.0 application? 有没有办法强制它运行我的4.0应用程序? I need this because my web hosting provider takes too long to make the change for me. 我需要这个,因为我的网络托管服务提供商需要很长时间才能为我做出改变。

No you can not. 你不能。

The pool can run ether on 2/3.5 version, or in 4. Can not run on both. 该池可以在2 / 3.5版本或4中运行以太网。无法在两者上运行。 Now think that under any pool can live many web site. 现在认为在任何池下都可以存活很多网站。 So its impossible one site to run on 4, and some other to run on 3.5. 因此,不可能有一个站点在4上运行,而另一些站点在3.5上运行。

The pool is a program that compile the webs that are under it, and then its runs them and show the pages. 该池是一个程序,用于编译其下的Web,然后运行它们并显示页面。 Many web sites can not run on different versions at the same time under the same pool, because actually there are different programs that keeps the 2/3.5 version and the 4 versions. 许多网站不能在同一个池下同时在不同版本上运行,因为实际上有不同的程序可以保留2 / 3.5版本和4个版本。 Its different setup, different global variables, different libraries. 它的设置不同,全局变量不同,库也不同。

This two versions, 3.5 and 4.0 they live on different directories with totally different exe and dlls. 这两个版本,3.5和4.0,它们位于不同的目录上,具有完全不同的exe和dll。 So when a pool run one version of them, stay on that version. 因此,当一个池运行它们的一个版本时,请继续使用该版本。

no, but depends on your hosting provider's control panel, you can actually set this by yourself. 不,但取决于您的托管服务提供商的控制面板,您实际上可以自己设置。 For example WebsitePanel you can switch between .net framework version by yourself, but again if your hosting provider assign a dedicated application pool for you, if not then it's shared with other websites which is not possible. 例如,WebsitePanel您可以自己在.net框架版本之间切换,但如果您的托管服务提供商为您分配专用的应用程序池,如果没有,那么它将与其他网站共享,这是不可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM