如何为IIS7更新.net框架3.5到4.0? [英] how to update .net framework 3.5 to 4.0 for IIS7 ?

查看:137
本文介绍了如何为IIS7更新.net框架3.5到4.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把我的asp.net项目放在IIS7上,但它给出了错误,即.net framework 3.5不是一个有针对性的框架。我下载并安装了框架4.0,但仍然无法正常工作。可能是什么问题??

i put my asp.net project on IIS7 but it gives error that .net framework 3.5 is not a targeted framework. i downloaded and installed framework 4.0 but still doesn't work. what could be the problem??

推荐答案

参考 - 如何:将ASP.NET Web应用程序升级到ASP.NET 4 [ ^ ]。

Refer - How to: Upgrade an ASP.NET Web Application to ASP.NET 4[^].
Quote:

建议您使用Visual Studio执行升级所需的任务。如果不使用Visual Studio自动执行升级,则必须手动编辑Web.config文件,并且必须手动将IIS中的应用程序与.NET Framework版本4关联。

It is recommended that you use Visual Studio to perform the tasks that are required in order to upgrade. If you do not use Visual Studio to perform the upgrade automatically, you must manually edit the Web.config file and must manually associate the application in IIS with the .NET Framework version 4.


您需要检查具有正确.net框架的Web应用程序的应用程序池。

转到IIS并单击应用程序池。你能看到从ASP.NET 4.0开始的应用程序池吗?如果它存在,您已成功在IIS上注册.net 4.0。

如果您没有4.0应用程序池,请在答案中尝试以下步骤

如何在IIS 7,Windows 7上添加ASP.NET 4.0作为应用程序池 [ ^ ]
You need to check the app pool of your web application having correct .net framework or not.
Go to IIS and click on Application Pools. Can you see application pool starting with ASP.NET 4.0? if it is there, you have successfully registered .net 4.0 on IIS.
if you don't have 4.0 app pool try below steps in the answer
How to add ASP.NET 4.0 as Application Pool on IIS 7, Windows 7[^]


这篇关于如何为IIS7更新.net框架3.5到4.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆