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...Error when saving site settings after upgrading to 6.2.3Error when saving site settings after upgrading to 6.2.3
Previous
 
Next
New Post
9/14/2012 12:33 PM
 

 I get the following error if I make a change to any site settings and try and save. "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.Portals.SiteSettings.UpdatePortal(Object sender, EventArgs e) --- End of inner exception stack trace ---"

If I refresh the page I can see that the changes I made were not saved. Host settings work fine and everything else seems to work. I've recycled the pool and restarted the application. I've also tried deleting custom skins and restoring the default skin. We have multiple portals and this happens on all of them. This appears to have only started after upgrading to 6.2.3. Any ideas on how to fix this issue?


ModuleId: 585
ModuleDefId: 14
FriendlyName: Site Settings
ModuleControlSource: DesktopModules/Admin/Portals/SiteSettings.ascx
AssemblyVersion: 6.2.3
PortalID: 2
PortalName: QLE
UserID: 3
UserName: TestUser
ActiveTabID: 131
ActiveTabName: Site Settings
RawURL: /Admin/SiteSettings.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://qlednn.qln.local/Admin/SiteSettings.aspx
UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 13ea50a9-b1fc-4c82-9760-4831ab5c45ba
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Admin.Portals.SiteSettings.UpdatePortal
StackTrace:
Message: 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.Portals.SiteSettings.UpdatePortal(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: WEB
 
New Post
9/17/2012 1:47 PM
 
I found that commenting out line 1131 in SiteSettings.ascx.cs fixes the problem.
The line is: AdministratorId = Convert.ToInt32(cboAdministratorId.SelectedItem.Value),

So the problem may be unrealated to upgrading to 6.2.3 It could be a permissions error of some kind. We never encountered this before the upgrade but the timing could be a coincidence. The account making the changes is a SuperUser and admins have read/write permissions on the page. Anyone know why this line might cause problems?
 
New Post
2/20/2013 4:18 AM
 
For any reason this might happen, your portal has lost the administrator user related to it. You can create a new user account, make it an administrator and update that setting by manually querying the database.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error when saving site settings after upgrading to 6.2.3Error when saving site settings after upgrading to 6.2.3


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