tags:

views:

2626

answers:

2

I have a website that can be accessed from www.blahblah.com and special.blahblah.com. The www site always works but occasionly I get a 'Content controls have to be top-level controls in a content page or a nested master page that references a master page' error on the special site.

It's exactly the same code running in both situations and the offending page doesn't even have a master page. Why would it work all the time on one and fail sometimes on the other?

A: 

have you made 100% sure the contentplaceholderid attribute on your contentpage has been correctly assigned?

FailBoy
It doesn't have a master page.
horatio
+1  A: 

Look for an unclosed tag in one of your server controls, im running VS2010 and the IDE aspx validator didnt pick up on the unclosed tag

ewitkows