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:

Line 55: public static void Display(string templateName)
Line 56: {
Line 57: Templates.template = Templates.velocityEngine.GetTemplate(templateName, "UTF-8");
Line 58: StringWriter writer = new StringWriter();
Line 59: Templates.template.Merge(Templates.velocityContext, writer);

Source File: f:\website\yayin.net\App_Code\Templates.cs    Line: 57

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
NVelocity.App.VelocityEngine.GetTemplate(String name, String encoding) +15
Templates.Display(String templateName) in f:\website\yayin.net\App_Code\Templates.cs:57
Index.ArticleDetailPage() in f:\website\yayin.net\index.aspx.cs:245
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +335
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
Index.Page_Load(Object sender, EventArgs e) in f:\website\yayin.net\index.aspx.cs:80
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +46
System.Web.UI.Control.OnLoad(EventArgs e) +83
System.Web.UI.Control.LoadRecursive() +120
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3958


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
足球在线开户必威体育app苹果diuwww.com