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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsAnnouncementsAnnouncementsDotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an obDotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an ob
Previous
 
Next
New Post
4/10/2007 10:22 AM
 

I'll do that, fortunately I haven't been able to reproduce it yet ;-)

 
New Post
6/4/2007 1:53 PM
 

Error: Module is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Admin.Modules.ModuleSettingsPage.BindData() at DotNetNuke.Modules.Admin.Modules.ModuleSettingsPage.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

 

I was also having this problem. It happened only when I would go into Module Settings.
I figured out what my problem was.
On the page level settings at the bottom
under Advanced Settings then under Other Settings I had a link URL listed.
When I removed the Link, the setttings then worked again.
I am using Announcements module version 03.04.00

 
New Post
12/11/2008 6:02 PM
 

I would also like to know what causes this behavior. It has happened to our site several times www.johnsonferry.org ; where the Announcements Module on the home page or the News & Announcements page will suddenly stop displaying announcements. In each one's place there will be an error:

Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Announcements.Announcements.lstAnnouncements_ItemDataBound(Object sender, DataListItemEventArgs e) --- End of inner exception stack trace ---

Sometimes this occurs only when viewing past announcements, or future announcements, but at other times--like right now, GRRR!--it is occuring with current announcements. I have found that it seems to be related to images in the File Manager. Somehow, the Announcements module "forgets" where an image that is related to an announcement is located. I have had to go in and physically alter the database to change all the images in the offending Announcement module's announcements to an ImageSource that I am sure is okay. It is a huge hassle to try to track down which one is causing the problem.

At first, I thought that it may be caused by an image file being moved physically on the server rather than through the DNN File Manager, but this has not been the case. This issue is sporadic, but it happens again and again. I cannot put my finger on any particular cause.

One thing that would be extremely helpful would be for the Announcements module to be smart enough that if, it does not find an image for one announcement, rather than tell the world that it is having trouble by throwing an ugly error on every visible announcement, it would instead simply place the text, "Image Missing" where the image would be on that one announcement, and leave the other announcements alone.

This time, there also seems to be a problem with another one of our portals, www.johnsonferry.org/johnsonferrystudents . When we try to upload a document into a Documents module, the top half or so of the directories, where the directory we need resides, are not visible.

Something seems to be going on with the File Manager in both of these cases. I have tried syncronizing the File System, restarting the application, restarting IIS, and restarting the web server; nothing works.

Any help or direction in trying to understand what is going on would be appreciated.

We use DNN v04.08.00 and Announcements module v03.04.00

 

Thanks,
--Kurt


JF Logomark

Kurt Meredith

Web Developer
Johnson Ferry Baptist Church
Marietta, Georgia

www.johnsonferry.org

 
New Post
12/12/2008 10:16 AM
 

I have a little more to add to this issue. I was working on our site last night, trying to get the problem with the Announcements module not being able to find the images that were being defined by the [IMAGESOURCE] token in the Announcements custom template. The problem seems to be that, somewhere, somehow, the FileID field in the Files table is being changed.

For example; we have an image named "RTFF.jpg" that has a record in our Files table which originally had the FileID value of 1685. In the Announcements table, the ImageSource field for the Announcment that used this image is correctly set to the value of "FileID=1685". All should be well...until you check the database now and find that the FileID value of that image in the Files table is now, inexplicably, set to 2993902. Suddenly, an announcement in the Announcements module is trying to fill the [IMAGESOURCE] token with an image that matches its record's ImageSource value of "FileID=1685", but it can't find any such image. What does it do? It throws up an error for everyone to see.

To put it more simply, here is the above example:

Original File Record:

Files.FileID   = "1685"
Files.FileName = "RTFF.jpg"

Announcements Record:

Announcements.ImageSource = "FileID=1685"


...Something happens to the Files table that I cannot explain and we are left with.....

 

Altered File Record:

Files.FileID   = "2993902" (FileID 1685 no longer exists)
Files.FileName = "RTFF.jpg"

The Announcments module is still looking for "FileID=1685":

[IMAGESOURCE] = NULL  **Error**

 

I cannot understand how the auto-incrementing, identity column, "FileID" in the Files table is being changed. If you looke at out Files table, you would see that the FileID values jump suddenly, as is shown here:

1875
1876
1877
1878
1809654 1809655 1809656

And then they do it again further down, although not as dramatically:

1924831
1953481
1960900
2088181 2089412 2100520

This seems to show that a great number of the FileID values are being drastically changed at some point.

As of this writing, we have 3,763 records in our Files table, but the highest FileID value is 3071444. If these were auto-incrementing, that would mean that we would have had to have added and deleted 3,067,681 other records to this table. I assure you, that is not the case.

If anyone can give me some direction as to where I can look for what is causing my Files table's FileID values to change, I would certainly appreciate it.

 

Thank you,

Kurt


JF Logomark

Kurt Meredith

Web Developer
Johnson Ferry Baptist Church
Marietta, Georgia

www.johnsonferry.org

 
New Post
12/12/2008 10:32 AM
 

Kurt,

  • Announcement module will use old content (fileID 1685) as long as data is cached. you may delete cache in Host Settings
  • FileID values cannot be altered, if the ID has changed, the record has been deleted and recreated
  • I am pretty sure, that this has been done by scheduled file sync, which is buggy. I strongly suggest to turn it of (In Host :: Scheduler)
  • use autosync (enable in Host Settings) instead and perform a recursive manual file sync in Admin :: File Manager instead.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsAnnouncementsAnnouncementsDotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an obDotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an ob


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