简体   繁体   English

在Server上将框架从3.5更改为4.0

[英]Changing framework from 3.5 to 4.0 at Server

I know my Question is little bit basic but have to ask about this: 我知道我的问题有点基础,但不得不问这个问题:

i have my website build in Visual Studio 2008 with .Net framework 3.5 that site is hosted on my server. 我的网站使用.Net framework 3.5在Visual Studio 2008中构建,该站点托管在我的服务器上。

now because of some specific reason i have to install framework 4.0 to the server. 现在因为某些特定原因我必须将framework 4.0安装到服务器上。 and i just want to know that my site will be okk with it or not. 我只是想知道我的网站是否会好起来。

I mean if i change my framework from 3.5 to 4.0 then is there some changes i should make to my site or that site will run fine as before. 我的意思是,如果我将我的框架从3.5更改为4.0,那么我应该对我的网站进行一些更改,或者该网站将像以前一样运行良好。

You should also change Framework Version in the application pool of your WebSite. 您还应该在WebSite的应用程序池中更改Framework Version。 池

Basically, remember that Framework version != CLR Version. 基本上,请记住Framework版本!= CLR版本。

In your case, .NET Framework 3.5 = CLR 2.0 + (C# 3.0 | VB9) 在您的情况下,.NET Framework 3.5 = CLR 2.0 +(C#3.0 | VB9)

.NET Framework 3.5 and 4.0 have different CLR Versions and can be installed side by side on same machine. .NET Framework 3.5和4.0具有不同的CLR版本,可以在同一台计算机上并排安装。

That means your site will not see any issues. 这意味着您的网站不会发现任何问题。

There is no problem installing the framework 4 on the server. 在服务器上安装框架4没有问题。 Your site should be fine as long as you don't change the target framework on the IIS appPool. 只要不更改IIS appPool上的目标框架,您的站点就可以正常运行。 You can have all the frameworks installed on the same machine. 您可以在同一台计算机上安装所有框架。

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

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