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 ...LogView showing Exceptions in Settings moduleLogView showing Exceptions in Settings module
Previous
 
Next
New Post
4/25/2011 7:33 AM
 

While looking at my LogView I’ve noticed a set of exceptions that occur every 30 minutes or so that I don’t understand.  The exception seems to be related to a rather empty settings module that I have associated to a View module that I’ve created.  While the View module seems to function correctly the exception(s) are cluttering up the log file.

 

Since I do not have any settings that are taking place the settings module is somewhat empty.  I have included below the exceptions that are being thrown, the settings module and my manifest.  There are several questions I have.

 

1.        If the settings module is not doing anything is it really required as part of my manifest/installation?

2.       What have I done or not done that is causing these exceptions to be thrown.

 

While I have navigated around many forums I have not seen anything specific that would solve this problem.  Any suggestion as to how to solve these problems would be greatly appreciated.

 

Thanks in advance.

 

Exceptions

System.Web.HttpException: Could not load type 'DBHGlobal.DNN.PropertyLossNotification.Settings'. at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throw , Boolean ignoreCase) at DotNetNuke.Framework.Reflection.CreateType(String TypeName, String CacheKey, Boolean UseCache, Boolean IgnoreErrors)

 

 

System.Exception: Error Creating BusinessControllerClass 'DBHGlobal.DNN.PropertyLossNotification.Settings' of module(PropertyLossNotification DNN Module) id=(720) in tab(202) and portal(0) ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey) at DotNetNuke.Services.Search.ModuleIndexer.GetModuleList(Int32 PortalID) --- End of inner exception stack trace --- at DotNetNuke.Services.Search.ModuleIndexer.GetModuleList(Int32 PortalID)

 

 

EventQueue.ProcessMessage: Message Processing Failed
ProcessorType: DotNetNuke.Entities.Modules.EventMessageProcessor, DotNetNuke
Body:
Sender:
BusinessControllerClass: DBHGlobal.DNN.PropertyLossNotification.Settings
DesktopModuleId: 114
UpgradeVersionsList: 11.04.25
ExceptionMessage: Value cannot be null. Parameter name: type

 

 

Settings Module
//
//    S y s t e m   U s i n g   S t a t e m e n t s
//
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Reflection;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Xml;
using System.IO;
//
//    D o t N E T N u k e   U s i n g   S t a t e m e n t s
//
using DotNetNuke;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Security;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Actions;
using DotNetNuke.Services.Personalization;
//
//    L o c a l   U s i n g s
//
using DBHGlobal.PropertyLossNotificationSettings;

namespace DBHGlobal.DNN.DBHGlobal
{
    public partial class PropertyLossNotificationSettings : ModuleSettingsBase
    {

        #region Base Method Implementations

        public override void LoadSettings()
        {
            try
            {
                if (Page.IsPostBack == false)
                {
                }
            }
            catch (Exception exc) //Module failed to load
            {
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }

 

        public override void UpdateSettings()
        {
            try
            {
                ModuleController modules = new ModuleController();
            }
            catch (Exception exc) //Module failed to load
            {
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }

        #endregion
     }
}

 

 

Manifest

<folders>
    <folder>
      <name>Cancellation Request DNN Module</name>
      <friendlyname>DBHGlobal.PropertyLossNotification</friendlyname>
      <foldername>DBHGlobal/PropertyLossNotification</foldername>
      <modulename>PropertyLossNotification DNN Module</modulename>
      <description>Property Loss Notification Data Entry DNN Module.</description>
      <version>11.04.25</version>
      <businesscontrollerclass>DBHGlobal.DNN.PropertyLossNotification.Settings</businesscontrollerclass>
      <modules>
        <module>
          <friendlyname>DBHGlobal.PropertyLossNotification</friendlyname>
          <cachetime>0</cachetime>
          <controls>
            <control>
              <title>View</title>
              <src>DesktopModules/DBHGlobal/PropertyLossNotification/PropertyLossNotificationView.ascx</src>
              <type>View</type>
              <helpurl></helpurl>
            </control>
            <control>
              <key>Settings</key>
              <title>Settings</title>
              <src>DesktopModules/DBHGlobal/PropertyLossNotification/PropertyLossNotificationSettings.ascx</src>
              <type>Edit</type>
              <helpurl></helpurl>
            </control>
          </controls>
        </module>
      </modules>
      <files>
        <file>
          <name>PropertyLossNotification.dll</name>
        </file>
        <file>
          <name>PropertyLossNotification_DataAccessComponents.dll</name>
        </file>
      </files>
      <resourcefile>PropertyLossNotificationResourceFiles.zip</resourcefile>
    </folder>
  </folders>
</dotnetnuke>

 
New Post
4/25/2011 1:06 PM
 
There would appear to be a mis-match between the business controller class specified in the manifest:

<businesscontrollerclass>DBHGlobal.DNN.PropertyLossNotification.Settings</businesscontrollerclass>

And the namespace used in the module settings control:

namespace DBHGlobal.DNN.DBHGlobal

I would suspect that in the manifest the business controller class should be "DBHGlobal.DNN.PropertyLossNotification.xxxxxxxx" where xxxxxxx is the name of the your controller class. Also, I would suspect that in the settings control the namespace should have been "DBHGlobal.DNN.PropertyLossNotification".

As for whether or not you need to include a settings control in the manifest . . . if your module does not make any use of per module or per tabmodule settings, there is no need for having a settings control and both the control itself and the registration in the manifest could be removed.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...LogView showing Exceptions in Settings moduleLogView showing Exceptions in Settings module


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