Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm writing test cases on ASP.Net page. All the controls are in content holder.
When I write test caes for the controls, it's throwing following exception
"Problems with DOCTYPE DTD: The remote server returned an error: (500) Internal Server Error. Your DOCTYPE is probably incorrect. If you're not sure what the DOCTYPE should be, use "!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"" , Visual Studio .NET's default."

I added !DOCTYPE , then page is not loading and showing following error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls.

Can anyone please help me how to fix this?
Posted
Updated 8-Jan-15 10:38am
v3
Comments
Sergey Alexandrovich Kryukov 8-Jan-15 16:58pm    
Start from writing correct DOCTYPE, or better remove it at all, unless this is XHTML (it is not).
Before you do it, you have nothing to test. :-)
—SA

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