First Line Error On A Design PageSKSameer Khan11yAsked Jul 20, 2015, 2:04 AM EDT5 answersShareLinkedInXCopy linkSaveError: Type 'System.Web.UI.Page' does not have a public property named 'masterpagefile'
First Line Error On A Design PageSKSameer Khan11yAsked Jul 20, 2015, 2:04 AM EDT5 answersShareLinkedInXCopy linkSaveError: Type 'System.Web.UI.Page' does not have a public property named 'masterpagefile'
Manas MohapatraRank #182 · 13.2K reputation11y agoPosted Jul 20, 2015, 2:27 AM EDT0Hi Sameer, You are getting error due to target framework in Visual Studio. Means your web.config file targetFramework version mismatch with your project property target version. Please target to 4.0 Please see below link.. http://devblog.alexsapps.com/2012/06/solution-to-type-systemwebuiwebcontrols.html0
SKSameer KhanRank #8,108 · 228 reputation11y agoPosted Jul 20, 2015, 3:05 AM EDT0I have checked it. And it is targetting to proper framework i:e 4.0 both in web .config and Property Pages also anyother solution available !!!0
Manas MohapatraRank #182 · 13.2K reputation11y agoPosted Jul 20, 2015, 5:05 AM EDT0Hi,Please find below checklists and provide your code also: Make sure that your IIS application pool runs under 4.0 framework. Make sure that web.config targetframework match with project properties framework as 4.0 Please post your master page file and child page aspx code here to analyse deeply.0
SKSameer KhanRank #8,108 · 228 reputation11y agoPosted Jul 21, 2015, 1:20 AM EDT0This is my Master Pages Name Admin And Child Page Name HomesError are : 1. Error parsing attribute 'masterpagefile': Type 'System.Web.UI.Page' does not have a public property named 'masterpagefile'. 2. Error parsing attribute 'title': Type 'System.Web.UI.Page' does not have a public property named 'title'. 0SKSameer KhanRank #8,108 · 228 reputation11y agoPosted Jul 21, 2015, 9:03 PM EDT0I have attached my code file plz have a look naa!!0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SKSameer KhanRank #8,108 · 228 reputation11y agoPosted Jul 21, 2015, 9:03 PM EDT0I have attached my code file plz have a look naa!!0
Manas MohapatraRank #182 · 13.2K reputationPosted Jul 20, 2015, 2:27 AM EDT
Sameer KhanRank #8,108 · 228 reputationPosted Jul 20, 2015, 3:05 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Jul 20, 2015, 5:05 AM EDT
Sameer KhanRank #8,108 · 228 reputationPosted Jul 21, 2015, 1:20 AM EDT
Sameer KhanRank #8,108 · 228 reputationPosted Jul 21, 2015, 9:03 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts