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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Object reference not set to an instance of an object <- what now?Object reference not set to an instance of an object <- what now?
Previous
 
Next
New Post
8/24/2007 5:35 PM
 
Hi,

We have a serious problem.

Having developed a website to a client, it has been in production for some months. Recently it started giving a serious error and we don't know what made it happen in the first place and how to correct it. As far as we know nothing changed in the website. The only thing that changed recently was that it was previously running in a temporary domain and now the DNS for the actual domain was updated to point to our server's IP. But this doesn't seem to be the cause because the problem still happens when the old temporary domain is used.

- The first page is a splash screen which uses its own skin and works fine. All the other pages (including the administration and hosting pages) share the same skin and explode with the exception detailed below.

- We also thought this could be a problem with the main skin and overwrote the main skin with the skin from the working splash page but the problem remains.


- Usually when a skin is not found DNN uses the default skin, but we've tried to remove the skin file and the problem remains.


- So we believe it is something related to either the content or some configuration. But since all pages have the same error there is no way to access both administration and hosting pages. I cannot even look at the site logs.


- We'd like to reset the website to use the default skin but only know how to do it through the site's own admin pages.


- We'd also like to be able to export the site structure and templates to try to reinstall it somewhere else, but also can only do it through admin or hosting pages.


- We'd also like to explore the database but the site is using a SQL Express file-based database under app_data and, even though the server has SQL Server Management Studio Express it doesn't seem to be able to open *.mdf files.


What can we do to solve this situation? Any ideas are welcome!


Below is the detailed error:


DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---


Thank you in advance,
Nuno

 
New Post
8/25/2007 4:04 PM
 

Hey nfgodinho,

Look for an error before that one. I have this happening a lot too and found a "General Exception Error" that has the following:

AssemblyVersion: 04.05.03
PortalID: 3
PortalName: Marry's House
UserID: -1
UserName:
ActiveTabID: 127
ActiveTabName: The Mistress
RawURL: /PhotoGallery/AboutMe/tabid/127/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: b7adf40d-abbe-4b47-a433-c3d91db5f302
InnerException: Conversion from string "21.07.2007" to type 'Date' is not valid.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Microsoft.VisualBasic.CompilerServices.DateType.FromString
StackTrace:
Message: System.InvalidCastException: Conversion from string "21.07.2007" to type 'Date' is not valid. at Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value, CultureInfo culture) at Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value) at DotNetNuke.Modules.Gallery.GalleryXML.ApprovedDate(String FileName) at DotNetNuke.Modules.Gallery.GalleryFolder.Populate() at DotNetNuke.Modules.Gallery.Utils.PopulateAllFolders(GalleryFolder rootFolder) at DotNetNuke.Modules.Gallery.Config..ctor(Int32 ModuleID) at DotNetNuke.Modules.Gallery.Config.GetGalleryConfig(Int32 ModuleID) at DotNetNuke.Modules.Gallery.Container.Initialize() at DotNetNuke.Modules.Gallery.Container.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings)
Source:

Then, after this error, there would be a "Module Load Exception" error and then a "Page Load Exception". All of this seemed to stem around the dates saved in the .resource files in each Gallery directory. It appears to save them in a DD.MM.YYYY format and my server isn't liking that. If I replace with dashes, it is happy.

 
New Post
8/26/2007 12:45 PM
 
Hi,

Thank you. What you say makes sense. But I don't know how can I check for the other errors. Because I don't have access to the administration and host pages so there is no way to browse through the logs :( Or if there is... I don't know it...

Regards,
Nuno
 
New Post
8/26/2007 5:52 PM
 

I would

1) Back everything up (this is a must, you can do irreversible damage)

2) Delete all the files in the dotnetnuke site (except the database) and replace with an install version of the latest DotNetNuke.

3) If you can get into the site you can fix the configuration and then replace all the files wit the original ones.

This may not work and if it doesn't the database is probably completely hosed so that is why you must first backup everything including the database



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
8/29/2007 2:26 AM
 
Hi,

Problem solved. We upgraded DNN to a newer version and the upgrade process somehow corrected the problem. We never got to understand what happened but probably something got screwed in the database. It's kind of scary that this can happen.

Thanks for all your help,
Nuno
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Object reference not set to an instance of an object <- what now?Object reference not set to an instance of an object <- what now?


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