Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Can NullReferenceException causes SystemOutOfMemory Error?

Posted on 2009-03-31
1
712 Views
Last Modified: 2013-11-07
We get NullReferenceException errors like below within like 2 hours of every day. And like once a day, we get SystemOutOfMemory error. Could NullReferenceException caused the out of memory?
Event Type:	Warning
Event Source:	ASP.NET 2.0.50727.0
Event Category:	Web Event 
Event ID:	1309
Date:		3/29/2009
Time:		4:32:23 PM
User:		N/A
Computer:	PORTAL
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 3/29/2009 4:32:23 PM 
Event time (UTC): 3/29/2009 8:32:23 AM 
Event ID: 81fe2ea994aa46b39184a0d58f5d87bc 
Event sequence: 5083 
Event occurrence: 145 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1034077820/Root-1-128827852699273750 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Inetpub\wwwroot\mediaprima\GUA\ 
    Machine name: PORTAL 
 
Process information: 
    Process ID: 7644 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 
 
Exception information: 
    Exception type: NullReferenceException 
    Exception message: Object reference not set to an instance of an object. 
 
Request information: 
    Request URL: http://gua.com.my:8012/CMSPages/PortalTemplate.aspx?aliaspath=/Home 
    Request path: /CMSPages/PortalTemplate.aspx 
    User host address: 192.168.0.229 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
 
Thread information: 
    Thread ID: 50 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at CMS.CMSHelper.CMSContext.get_CurrentBodyClass()
   at PortalPage.get_BodyClass()
   at ASP.cmspages_portaltemplate_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at CMSPages_PortalTemplate.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details: 
 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Open in new window

0
Comment
Question by:melwong
1 Comment
 
LVL 37

Accepted Solution

by:
meverest earned 200 total points
ID: 24036064
/probably/ not.

nullReference is usually a software error - like when you try to read a string from a memory pointer that has not been initialised.  That kind of error will normally crash the application, or under managed code, will be shut down by the runtime engine/interpreter.

out-of-memory is usually caused by applications that do not properly release allocated memory properly.

the two are possibly related (still unlikely) for example if a software routine allocates some memory, then crashes due to null pointer without freeing up those allocated resources.  this is very unusual (perhaps impossible) for managed code like asp and c# etc, but if you have some native code plugin modules (isapi, httpmodule dlls, etc) then those can cause these kinds of problems.

I suggest that you inspect the behaviour of the relevant script/s (e.g. /CMSPages/PortalTemplate.aspx) and determine what modules are called.  then inspect each module source code for the kinds of problems referred to.

Cheers.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IIS on Server 2012 R2 Datacenter 5 54
Add a Condition in ASP Repeater 6 34
Change to file doesn't show up 16 51
Code works but breaks when I add one section 4 20
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question