【问题标题】:Specify .NET Framework version for a stand-alone ASPX page为独立的 ASPX 页指定 .NET Framework 版本
【发布时间】:2013-04-17 04:04:05
【问题描述】:

是否可以不在web.config中设置目标.NET Framework版本,而是直接在以下页面中设置?:

<%@ Page Language="C#" Debug="true" %>

<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.IO" %>
..............

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
.......
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
........
</head>
<body>
.........
</body>
</html>

【问题讨论】:

    标签: asp.net version


    【解决方案1】:

    没有。该版本还与 IIS 中的应用程序池相关联,该应用程序池设置在 IIS 中的 Application 级别,而不是页面级别。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-28
      • 1970-01-01
      • 2013-08-10
      • 2011-10-23
      • 1970-01-01
      • 1970-01-01
      • 2022-11-16
      • 1970-01-01
      相关资源
      最近更新 更多