此代码并非使用在 asp.net 和 c#中使用 .net 4.0 在我的网站中构建Visual Studio 2012
代码:
<%@ Page Title="" Language="C#" MasterPageFile="~/Master.master" ClientIDMode="Static"
AutoEventWireup="true" CodeFile="Mypage.aspx.cs" Inherits="info" %>
然后我开始构建页面,我收到了这个错误。
Error parsing attribute 'clientidmode': Type 'System.Web.UI.Page' does not
have a public property named 'clientidmode'.
对此有任何想法都非常感谢。
答案 0 :(得分:2)
听起来您的项目并非针对.NET 4.0框架。您可能已安装4.0,但请验证项目属性是否表明您正在编译完整的.Net 4.0+框架。您还需要确保运行该站点的App Pool是为.Net 4.0+框架设置的。