如何在IIS6上运行.NET 4.5网站?

 醉苏芳华 发布于 2023-03-19 06:47
  • php
  • 我有一台运行IIS 6的旧Windows 2003服务器,我选择.net 4.5作为我最新的网络应用程序.问题是我无法让它在服务器上运行...

    安装了.NET 4.0框架.我运行了aspnet_regiis并部署了网站.我给它自己的应用程序池.但是我收到以下错误:

    The 'targetFramework' attribute in the  element of the Web.config 
    file is used only to target version 4.0 and later of the .NET Framework (for 
    example, ''). The 'targetFramework' attribute
    currently references a version that is later than the installed version of the 
    .NET Framework. Specify a valid target version of the .NET Framework, or install 
    the required version of the .NET Framework.
    

    我看到.NET 4.5的要求需要Windows Server 2008或更高版本,但是我看到很多人只需要为MVC4配置路由,所以看起来这应该是可能的.

    所以我需要做些什么才能让它发挥作用?

    编辑:奇怪的是我们正在使用一个工作得很好的ASP.NET Web API站点...但这应该需要.net 4.5 ...

    撰写答案
    今天,你开发时遇到什么问题呢?
    立即提问
    热门标签
    PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
    Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有