“/”应用程序中的服务器错误。

Encountered " class=\"active\" #end" at line 62, column 56.
Was expecting one of:
   "(" ...
   <RPAREN> ...
   <ESCAPE_DIRECTIVE> ...
   <SET_DIRECTIVE> ...
   "\\\\" ...
   "\\" ...
   <TEXT> ...
   <SINGLE_LINE_COMMENT> ...
   "*#" ...
   "*#" ...
   <STRING_LITERAL> ...
   "if" ...
   "stop" ...
   <NUMBER_LITERAL> ...
   <WORD> ...
   <DOT> ...
   "{" ...
   "}" ...
   <IDENTIFIER> ...
   

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: NVelocity.Runtime.Parser.ParseException: Encountered " class=\"active\" #end" at line 62, column 56.
Was expecting one of:
   "(" ...
   <RPAREN> ...
   <ESCAPE_DIRECTIVE> ...
   <SET_DIRECTIVE> ...
   "\\\\" ...
   "\\" ...
   <TEXT> ...
   <SINGLE_LINE_COMMENT> ...
   "*#" ...
   "*#" ...
   <STRING_LITERAL> ...
   "if" ...
   "stop" ...
   <NUMBER_LITERAL> ...
   <WORD> ...
   <DOT> ...
   "{" ...
   "}" ...
   <IDENTIFIER> ...
   

源错误:


行 155:        Nvh.Put("hasnextpage", hasnextpage);
行 156:        Nvh.Put("url", "https://www.ratuo.com");
行 157:        Nvh.Display(tplName);
行 158:
行 159:    }

源文件: c:\wwwroot\ratuo2017m\Class.aspx.cs    行: 157

堆栈跟踪:


[ParseException: Encountered " class=\"active\" #end" at line 62, column 56.
Was expecting one of:
    "(" ...
    <RPAREN> ...
    <ESCAPE_DIRECTIVE> ...
    <SET_DIRECTIVE> ...
    "\\\\" ...
    "\\" ...
    <TEXT> ...
    <SINGLE_LINE_COMMENT> ...
    "*#" ...
    "*#" ...
    <STRING_LITERAL> ...
    "if" ...
    "stop" ...
    <NUMBER_LITERAL> ...
    <WORD> ...
    <DOT> ...
    "{" ...
    "}" ...
    <IDENTIFIER> ...
    ]
   NVelocity.Runtime.Parser.Parser.Parse(TextReader reader, String templateName) in c:\TeamCity\buildAgent\work\1aab984413813fae\src\NVelocity\Runtime\Parser\Parser.cs:190
   NVelocity.Runtime.RuntimeInstance.Parse(TextReader reader, String templateName, Boolean dumpNamespace) in c:\TeamCity\buildAgent\work\1aab984413813fae\src\NVelocity\Runtime\RuntimeInstance.cs:658
   NVelocity.Template.Process() in c:\TeamCity\buildAgent\work\1aab984413813fae\src\NVelocity\Template.cs:77

[ParseErrorException: Encountered " class=\"active\" #end" at line 62, column 56.
Was expecting one of:
    "(" ...
    <RPAREN> ...
    <ESCAPE_DIRECTIVE> ...
    <SET_DIRECTIVE> ...
    "\\\\" ...
    "\\" ...
    <TEXT> ...
    <SINGLE_LINE_COMMENT> ...
    "*#" ...
    "*#" ...
    <STRING_LITERAL> ...
    "if" ...
    "stop" ...
    <NUMBER_LITERAL> ...
    <WORD> ...
    <DOT> ...
    "{" ...
    "}" ...
    <IDENTIFIER> ...
    ]
   NVelocity.Template.Process() in c:\TeamCity\buildAgent\work\1aab984413813fae\src\NVelocity\Template.cs:90
   NVelocity.Runtime.Resource.ResourceManagerImpl.LoadResource(String resourceName, ResourceType resourceType, String encoding) in c:\TeamCity\buildAgent\work\1aab984413813fae\src\NVelocity\Runtime\Resource\ResourceManagerImpl.cs:363
   NVelocity.Runtime.Resource.ResourceManagerImpl.GetResource(String resourceName, ResourceType resourceType, String encoding) in c:\TeamCity\buildAgent\work\1aab984413813fae\src\NVelocity\Runtime\Resource\ResourceManagerImpl.cs:267
   NVelocity.Runtime.RuntimeInstance.GetTemplate(String name) in c:\TeamCity\buildAgent\work\1aab984413813fae\src\NVelocity\Runtime\RuntimeInstance.cs:692
   Ratuo.Templates.NVelocityHelper.Display(String templatFileName) in F:\asp_net_web\_2017\Ratuo 新网站\Ratuo.Templates\NVelocityHelper.cs:76
   _Class.ShowClassPage() in c:\wwwroot\ratuo2017m\Class.aspx.cs:157
   _Class.Page_Load(Object sender, EventArgs e) in c:\wwwroot\ratuo2017m\Class.aspx.cs:23
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   Ratuo.Templates.RTBasePage.OnLoad(EventArgs e) in F:\asp_net_web\_2017\Ratuo 新网站\Ratuo.Templates\RTBasePage.cs:26
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3650.0