Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   HZ.CMSLabel.CMSLabelService.GetCMSContentPerPage(PerPageEntity Item, String template) +13

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +76
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +211
   Vici.Core.Parser.InstanceMethod.Invoke(Type[] types, Object[] parameters, Type& returnType, Binder binder) +267
   Vici.Core.Parser.CallExpression.Evaluate(IParserContext context) +1238
   Vici.Core.Parser.Expression.Vici.Core.Parser.IExpression.Evaluate(IParserContext context) +25
   Vici.Core.Parser.TemplateParserConfig.OnEvalExpression(ExpressionParser parser, TemplateToken templateToken, IParserContext context) +152
   Vici.Core.Parser.TemplateParser.EvalExpression(TemplateToken templateToken, IParserContext context) +23
   Vici.Core.Parser.TemplateParser.BuildOutput(CompiledTemplate compiledTemplate, Dictionary`2 macros, Node rootNode, StringBuilder outputBuffer, IParserContext context) +1111
   Vici.Core.Parser.TemplateParser.Render(CompiledTemplate compiledTemplate, IParserContext context) +241

[TemplateRenderingException: Error rendering template: Exception has been thrown by the target of an invocation.]
   Vici.Core.Parser.TemplateParser.Render(CompiledTemplate compiledTemplate, IParserContext context) +584
   HZ.Templates.Template.ReplaceLabels(String& _tempcontent, T data) +381
   HZ.CMSLabel.CMSLabelService.GetCMSInfoContent(String InfoID, String template) +879

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +76
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +211
   Vici.Core.Parser.InstanceMethod.Invoke(Type[] types, Object[] parameters, Type& returnType, Binder binder) +267
   Vici.Core.Parser.CallExpression.Evaluate(IParserContext context) +1238
   Vici.Core.Parser.Expression.Vici.Core.Parser.IExpression.Evaluate(IParserContext context) +25
   Vici.Core.Parser.TemplateParserConfig.OnEvalExpression(ExpressionParser parser, TemplateToken templateToken, IParserContext context) +152
   Vici.Core.Parser.TemplateParser.EvalExpression(TemplateToken templateToken, IParserContext context) +23
   Vici.Core.Parser.TemplateParser.BuildOutput(CompiledTemplate compiledTemplate, Dictionary`2 macros, Node rootNode, StringBuilder outputBuffer, IParserContext context) +1111
   Vici.Core.Parser.TemplateParser.Render(CompiledTemplate compiledTemplate, IParserContext context) +241

[TemplateRenderingException: Error rendering template: Exception has been thrown by the target of an invocation.]
   Vici.Core.Parser.TemplateParser.Render(CompiledTemplate compiledTemplate, IParserContext context) +584
   HZ.Templates.Template.ReplaceLabels(String& _tempcontent) +283
   HZ.CMSRouteHandler.HttpHandler.ProcessRequest(HttpContext context) +1937
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165


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