Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...The most hated MS error: Object reference not set to an instance of an object.The most hated MS error: Object reference not set to an instance of an object.
Previous
 
Next
New Post
5/19/2006 4:42 PM
 

Its like playing snakes and ladders. 

You think you are almost there and then the bite  ... Object reference not set to an instance of an object. back down to square one...  You look and look and can't find the reason....  For me its the worst MS bite...  I don't  even know where to start looking.  I feel sentenced to start all over again.  How could I get more information?  VB2005

If you can help me, thanks

Charly

 
New Post
5/19/2006 7:12 PM
 

I agree it's a very generic error, typically you can get a bit more of a clue by looking down the rest of the stacktrace. All it means is that something tries to read a value from an object, expecting it to be there, but the object is not initialised for some reason e.g.

dim firstnum as integer

dim secondnum as integer

dim divisionresult as integer=firstnum\secondnum

This code will work fine in most cases, but if the secondnum variable is zero, then a division by zero error will happen and divisionresult will not initialise.

Where are you getting the error, in corecode, or in one of your own modules?


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/23/2006 4:44 PM
 

Please forgive if I am highjacking the thread, but it seemed the best place to ask the question.

I am getting "Object reference not set to an instance of an object." only when using the search bar on the main page of a site.  I just added the Inventua passthrough modules and this error occurs on any page when using the search bar (not sure if related).  Any thoughts on what the process would be for tracking down the problem?

 
New Post
5/24/2006 3:54 AM
 

Dear all

I have a DNN installation www.crystalbuilder.com.  I created another parent portal www.angusbeare.com from this. However, when I try to edit the site settings I get the following error.  I'm using a company in the US to host my sites (I'm in the UK) but they can't seem to help and I don't have access to IIS to tweak or check security settings.  It all works fine on my laptop running locally.  I think it must be either a file or DB permissions issue.  Can't find anything on the web or DNN forums.

Server Error in '/' Application.

Object reference not set to an instance of an object.

My web.config has

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

and the stack trace is

NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Modules.Admin.PortalManagement.SiteSettings.cmdUpdate_Click(Object sender, EventArgs e) +1337

[ModuleLoadException: Error: Site Settings is currently unavailable.]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, PortalModuleBase ctrlModule, Exception exc, Boolean DisplayErrorMessage) +467
   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(PortalModuleBase ctrlModule, Exception exc) +82
   DotNetNuke.Modules.Admin.PortalManagement.SiteSettings.cmdUpdate_Click(Object sender, EventArgs e) +2756
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +105
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

[PageLoadException: Error: Site Settings is currently unavailable.]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +354
   DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +375
   System.Web.UI.TemplateControl.OnError(EventArgs e) +105
   System.Web.UI.Page.HandleError(Exception e) +73
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6944
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +29
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

This has stopped progress.  Unless I can find an answer I will have to forget using DNN.


"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
5/29/2006 7:44 AM
 

Thanks Cathal,

I've been out for a while.  I had to rewrite that module (own) and don't have the faulty one anymore.  However, thinking back, I was missing the stacktrace.  Is there a special way of setting it on or off?  

Thanks

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...The most hated MS error: Object reference not set to an instance of an object.The most hated MS error: Object reference not set to an instance of an object.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out