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 28: 
Line 29:                 Response.Clear();
Line 30:                 Response.Write(myWms.RunTemplate("\\_templates\\newsdescription.html"));
Line 31:             }
Line 32:         }

Source File: c:\inetpub\vhosts\sharpsunshinecoast.com.au\httpdocs\newsdescription.aspx.cs    Line: 30

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WMS.Erp.Custom.CustomErp.ProcessTemplate(String template) in X:\Dev\All Age\New Website\Source\WMS.Erp.Custom\CustomErp.cs:10102
   WMS.Erp.Custom.CustomErp.RunTemplate(String strTemplateFile) in X:\Dev\All Age\New Website\Source\WMS.Erp.Custom\CustomErp.cs:19158
   wms.RunLibraryTemplate(String strTemplateFile) in X:\Dev\All Age\New Website\Source\WMS\wms.cs:2448
   wms.GetHeadScriptsTemplate() in X:\Dev\All Age\New Website\Source\WMS\wms.cs:4487
   wms.ProcessTemplate(String template) in X:\Dev\All Age\New Website\Source\WMS\wms.cs:2822
   WMS.Erp.Wms.ProcessTemplate(String template) in X:\Dev\All Age\New Website\Source\WMS.Erp\Wms.cs:476
   WMS.Erp.Custom.CustomErp.ProcessTemplate(String template) in X:\Dev\All Age\New Website\Source\WMS.Erp.Custom\CustomErp.cs:10165
   WMS.Erp.Custom.CustomErp.RunTemplate(String strTemplateFile) in X:\Dev\All Age\New Website\Source\WMS.Erp.Custom\CustomErp.cs:19158
   productdescription.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\sharpsunshinecoast.com.au\httpdocs\newsdescription.aspx.cs:30
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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