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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Unable to load site - Object reference not set to an instance of an objectUnable to load site - Object reference not set to an instance of an object
Previous
 
Next
New Post
7/17/2008 1:06 PM
 

Hi.  One of our sites stopped functioning normally.  If you try to access it by going to www.mysite.com, you get the following error:

  

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.]
   DotNetNuke.Entities.Portals.PortalSettings.VerifyPortalTab(Int32 PortalId, Int32 TabId) +320
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +2413
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +83
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +2677
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 

 

Here's some information about the site:

  • DNN 04.05.01
  • Windows Server 2000 Standard, SP4, Latest Patches
  • SQL Server 2000 Standard

It's a simple site.

  • No 3rd party skins.
  • No 3rd party modules.
  • It's the only portal in this instance of DNN.

 

The interesting thing is that I can login if I'm specific with my URL.  For example, if I type (http://www.mysite.com/dotnetnuke/Home/tabid/36/Default.aspx), I can login successfully as host.

 

The Event Viewer shows several similar error messages like:

AssemblyVersion: 04.05.01
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /ScriptResource.axd?d=h5veskUv3v7v5Hfn50dP5T-gtllc21tuxARuABfFjLlcRpEMHegtUTXwtbRcxaR50&t=633049125920000000
AbsoluteURL: /ScriptResource.axd
AbsoluteURLReferrer: http://www.mysite.com/Admin/SiteSettings/tabid/40/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 29e6fe28-ba36-4ad6-9c14-a89554483405
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Entities.Portals.PortalSettings.VerifyPortalTab
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalSettings.VerifyPortalTab(Int32 PortalId, Int32 TabId) at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
Source:
Server Name: IIS

 

 

The site was fine a week or two ago.  Then it sat there unused for several days.  Then when we went to access it, we discovered the errors above.

 

But wait...there's more!  If I try to make changes to page settings, or add a new page, I get this error in my browser:

Error
A Runtime Error has occurred.
Do you wish to Debug?
Line: 0
Error: “Webform_PostBackOptions’ is undefined”

Here's the offending line of code:
Webform_DoPostBackWithOptions(new Webform_PostBackOptions("dnn$ctr370$ModuleSettings$cmdUpdate", "", true, "", "", false, true))

 

 

I've got over 8 hours into the problem.  I've scraped Google and Live extensively.  Lots of people have similar errors.  However, whenever anyone has my exact error, there's never been a follow up with a solution.

 

The PortalAlias table contains a single record:

 

Here are some other settings:

Admin -> Site Settings:
     Advanced -> Page Management
          Splash Page:  <None Specified>
          Home Page:  <None Specified>
          Login Page:  <None Specified>
          User Page:  <None Specified>
          Home Directory:  Portals/0
Host -> Host Settings
     Advanced -> Performance Settings
          Page State Persistence:  Page
          Module Caching Method: Disk
          Performance Setting: Moderate Caching
          Authenticated Cacheability: ServerAndNoCache
          Compression Setting: No Compression
          Use Whitespace Filter: No

 

Things that I've tried:

  • Add a second PortalAlias
  • disable Compression in Web.Config
  • Remove "www" from www.mysite.com in PortalAlias
  • Add space to the end of Web.Config to clear cache (because I get the silly postback error if I click the "Clear Cache" link.)
  • Flushed temp files on several clients to no avail
  • Setting the home page so that it defaults to a specific TabID (in Portals table).

 

I appreciate any and all assistance on this matter.  At this point, I basically have no choice but to go back to a backup.  I would prefer a surgical solution, if possible, though.

Also, if anyone thinks that it would behoove me to upgrade this site to DNN 4.8.4, I'll do it.  I was going to do that anyway, before we discovered the errors.  I've just been nervous to attempt an upgrade while the existing site is malfunctioning so dramatically.

 

Thanks!
Van


See Ya! Van
 
New Post
7/18/2008 3:41 AM
 

Van,

first a simple question: did you try to restart the application? I assume yes. This sounds weird, but I remember that 4.5.1 had a number of issues, and due to security issues fixed, I strongly suggest to upgrade to DNN 4.8.4.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Unable to load site - Object reference not set to an instance of an objectUnable to load site - 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