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>