0

当尝试在 asp.net 应用程序中打开特定页面时,我得到一个 YSOD:

Server Error in '/CommonLoon' Application.

Parser 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.

Source Error: 


Line 9:  </asp:Content>
Line 10: 
Line 11: <!-- Might want to replace this old .css with a newer version, such as 1.10.2: http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css -->
Line 12: <asp:Content ID="indexStyles" ContentPlaceHolderID="MainHead" runat="server">
Line 13:     <link type="text/css" href="/<%= System.Configuration.ConfigurationManager.AppSettings["ThisApp"] %>/Content/jquery-ui-1.8.16.custom.css"

Source File: /CommonLoon/Views/Home/Index.aspx    Line: 11 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

首先,为什么注释掉的行有问题?

其次...无论如何,第二个:该文件中没有(或不再)有该评论;相反,现在是该行:

<!-- 5/6/2013: Replace 1.8.16 with a newer css, such as http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css? The "custom" part of the name of the file makes me hesitate to make a change, though... -->

该文件的旧版本来自哪里?解决方案中的任何地方都没有出现“可能想要”这个短语......???

更新

还是陌生的;我只是取消了一些之前注释掉 jQjuery 以测试旧功能的注释,并没有注意到有一条注释应该阻止代码编译,即:

$("#BeginDate").datepicker( try this as a anytime date component

...但它编译并运行!Murgatroid 的天堂!那是怎么回事?!?!?

4

0 回答 0