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...Object reference errorObject reference error
Previous
 
Next
New Post
2/8/2007 3:50 PM
 

Hello :)

I was editing some modules, just making routine changes, then this error came up several times:

Error: Host Settings 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.Host.HostSettingsModule.cmdUpdate_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

Any ideas as to what I did wrong, and how to fix?

thanks

 
New Post
2/10/2007 2:24 PM
 

I am consistently having the same problem in DNN 4.4.1 after several reinstalls.

I don't think this is due to user error on your part.


pmgerholdt
 
New Post
2/10/2007 4:35 PM
 

I removed httpcompression (commented out in web.config, and set to zero via database query in HostSettings table) as well as set Whitespace to 'N' in that table.

Gave it an hour, came back, and all seems fine. Not the performance I would like in terms of speed, but working and slow-ish is better than not working fast.


pmgerholdt
 
New Post
2/12/2007 2:44 AM
 
hi PM, thanks.  could you pls tell me the specific database query string which you used successfully, and how to change Whitespace to 'N'?  (i'm no SQL expert for sure...).  cheers
 
New Post
2/12/2007 9:46 AM
 

An update on my experience - even after removing compression and whitespace the same problem has recurred. It seems not to be quite as often or consistent but is still giving me fits. There is a gemini support issue regarding this:

http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=5030

as far as updating the settings via direct update to the database table, I did so from MS SQL client tools, not the SQL window in the HOST menu. I suppose you could do it there as well. I would caution you first to back up your database before doing anything of this nature.

The database table in question is HostSettings, and what you want to do is something like this:

I'm assuming you are running this from within the HOST SQL window.

First, select the data out to see that you are looking at the correct info:

select * from hostsettings

If you have set the object qualifier in web.config then prefix that to the table name as

select * from objq_hostsettings (if for example your object qualifier were "objq")

Now you will see the current host settings.

you want to change the httpcompression to be zero and the whitespace filter to be 'N'

update hostsettings set settingvalue = '0' where settingname = 'HttpCompression'

update hostsettings set settingvalue = 'N' where settingname = 'WhitespaceFilter'

Of course, if using an object qualifier, it must be prepended to the table name here as well.

run each separately, and in between each run the select query above to see that your changes were effective.

I suggest great caution when updating such settings manually - back up the database first, make sure you have the entire query correctly written (if you just put in part of it such as "update hostsettings set settingvalue = '0'" you will change every value for every column ... very bad!)

It's not difficult to do it correctly and if done correctly will be reflected the next time you view Host Settings as superuser. But please take every precaution and don't hole me responsible for any ensuing problems ... got enough of my own!

Perhaps someone from core could respond as to the advisability and accuracy of the above.

 


pmgerholdt
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Object reference errorObject reference error


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