NET4.0下错误NET2.0下错误Server Error in '/' Application.Compilation ErrorDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0108: Warning as Error: 'ASP.default_aspx.Profile' hides inherited member '_Default.Profile'. Use the new keyword if hiding was intended.Source Error:
Line 153: }
Line 154:
Line 155: protected System.Web.Profile.DefaultProfile Profile {
Line 156: get {
Line 157: return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\94dc21eb\b33bd261\App_Web_default.aspx.cdcab7d2.4dgg8jug.0.cs Line: 155
Line 153: }
Line 154:
Line 155: protected System.Web.Profile.DefaultProfile Profile {
Line 156: get {
Line 157: return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\94dc21eb\b33bd261\App_Web_default.aspx.cdcab7d2.4dgg8jug.0.cs Line: 155
解决方案 »
- Web.Config配置用户权限
- 现有两个GridView ,用于实现网上选课功能,Gridview1显示课程信息,Gridview2显示已选课程信息
- +++++++++100分 进来看题目
- google maps 气泡窗口里面的文字链接,怎么能链接到外网?
- 请问,我们想在自己的空间上放一套blog系统,请问目前有哪个比较成熟的较好的系统?
- 我已经把模板列建立起来了,如何绑定模板列的数据?
- 求救啊,radgrid模板textbox取数据问题
- 怎么在两个窗体间传值?请教!!
- 【求助】大虾们都进来帮帮忙,下面代码在firefox中怎么写才能执行?
- asp.net在XP下的运行
- Extjs 怎样关闭当前窗口呀?
- mvc 浏览器回退
protected new System.Web.Profile.DefaultProfile Profile
原因是你父类中存在Profile属性,且不允许重写。