Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create a website with master page i getting error above when i upload my website on ftp server
but same website when i upload on my iis server it will work Right. i can't understand why i got this type of error: please help


Cannot find ContentPlaceHolder 'MainContent' in the master page '/MasterPage.master', verify content control's ContentPlaceHolderID attribute in the content page.
Posted
Comments
Did you follow what exception is telling you to do?
Deepak Kanswal Sharma 28-Dec-14 10:42am    
Have you tried adding new contentplaceholder?
Suvendu Shekhar Giri 29-Dec-14 0:53am    
Make sure that the name of your ContentPlaceHolderID in content page is same as that of the master page. If I am not wrong, you might have copied that particular page from another project. However, these are just assumptions as you are saying it is working with local IIS. It'll be better if you can post the snippet containing the master page contentplaceholder tag and same of the content page. That'll help others to resolve your problem :)
Tejas Vaishnav 29-Dec-14 2:30am    
Please check ContentPlaceHolderID property in your content page, you need to provide same id as your master page having.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900