Visual Studio .net 2003 Web 组件问题上的 Asp.net

标签 asp.net iis frameworks .net-1.1

我想在 VS 2003 上运行 ASP.NET,但它引发了一个错误:

"Visual studio has detected that web server is running asp.net version 1.0.The web application you are creating or opening can be configured to be compliant with asp.net 1.0. However, the web application will not be able to use the new features from asp.net 1.1."



当我选择“使应用程序符合 asp.net 1.0”选项时,则无法设置合规性说

"Visual Studio.NET cannot create or open the application. The likeliest problem is that required components are not installed on the local web server. Run Visual Studio.NET setup and add the web development component."

最佳答案

您似乎正在运行 Vista 上的 Visual Studio 2003 ,不支持。

  • 默认情况下,Vista 不包含 .NET Framework 1.1 SP1 .首先安装它。确保已安装 SP1。如果您查看“c:\Windows\Microsoft.NET\Framework\v1.1.4322\mscorsvr.dll”的属性,您应该得到版本 1.1.4322.2032。
  • 启用 IIS 6 兼容性 在控制面板 -> 程序和功能 -> 打开或关闭 Windows 功能。检查“Internet 信息服务”下的“IIS 6 管理兼容性”。
  • 向 IIS 注册 .NET 1.1 通过运行“c:\Windows\MIcrosoft.net\Framework\v1.1.4322\aspnet_regiis.exe -ir”。它将使用 IIS7 中的经典管道创建针对 Framework 1.1 的应用程序池,并在 64 位操作系统上将 Enable32BitAppOnWin64 属性设置为 true。
  • 在 IIS7 中允许 ASP.NET 1.1。 打开 IIS 管理器并单击左侧树中的计算机名称。在主窗口中选择“ISAPI 和 CGI​​ 限制”并确保启用了 ASP.NET v1.1.4322。如果没有,请选择它并单击右侧的允许链接。
  • 在任何运行 .NET 1.1 或更低版本的目录上创建应用程序时,总是 选择面向 Framework 1.1 的应用程序池 .对于已配置的应用程序,您必须手动更改它。
  • 关于Visual Studio .net 2003 Web 组件问题上的 Asp.net,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/661165/

    相关文章:

    c# - Asp.net MVC 如何从 Controller 打开新窗口

    asp.net - 从 ASP.NET 内容页面调用 onresize

    asp.net - 为什么removeServerHeader可以在Azure Web App中工作?

    c++ - 为我的应用程序搜索框架

    ios - Xcode:找不到框架头文件 - 每次新启动后

    asp.net - JavaScriptSerializer 用于序列化 JavaScript 函数名称

    c# - Radpanelbar 折叠/展开问题

    c# - 在 IIS8 中部署时缓存不起作用

    asp.net - IIS7 URL 重写出站规则

    ant - 基于 Web 的复杂数据中心自动化工具