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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0General Exception Errors when viewing the Event ViewerGeneral Exception Errors when viewing the Event Viewer
Previous
 
Next
New Post
12/7/2007 12:04 PM
 

I've coded an module for DNN Running on 04.05.01

The module itself seems to perform fine when running it.

However, the Event Viewer is filling up with a lot of General Exception Errors that aren't making sense to me.

The Error Message is: System.Web.HttpException: Could not load type 'MyProject.Modules.JobCenter.JobCenterController'. at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at DotNetNuke.Framework.Reflection.CreateType(String TypeName, String CacheKey, Boolean UseCache, Boolean IgnoreErrors)

The InnerException is not much more help:  Could not load type 'MyProject.Modules.JobCenter.JobCenterController'

Method: System.Web.Compilation.BuildManager.GetType

Anyone have a clue as to why I'm getting all these General Exceptions?

 

 
New Post
12/7/2007 12:26 PM
 

I am also having a similar problem with general exception errors:

Message: System.Web.HttpException: Could not load type ''. ---> System.ArgumentException: String cannot have zero length. at System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) --- End of inner exception stack trace --- at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at DotNetNuke.Framework.Reflection.CreateType(String TypeName, String CacheKey, Boolean UseCache, Boolean IgnoreErrors)

 and

Message: System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey) at DotNetNuke.Services.Search.ModuleIndexer.GetModuleList(Int32 PortalID

 
New Post
12/7/2007 12:29 PM
 

In further searching I found this answer in another thread:

There is an issue with DNN where sometimes modules will get a bad value recorded for their supported features (like Searchable, Portable, etc).  This can cause the Search provider to try to create a the module's business class when it doesn't exist.  The easiest fix is to look in the database for bad values.  You'll want to look for a -1 in the SupportedFeatures column in the DesktopModules table, change it to a 0.  Run this from the Host SQL menu.

UPDATE {databaseOwner}{objectQualifier}DesktopModules SET SupportedFeatures = 0 WHERE SupportedFeatures = -1

Hope it helps,

 
New Post
11/21/2008 6:12 AM
 

I am getting these errors and I just cannot fathom out how to deal with them.

I see loads of these errors in the Event Log:

  2008-11-21 11:01:52   Host Alert       EventQueue.ProcessMessage: Message Processing Failed; Proces ...
EventQueue.ProcessMessage: Message Processing Failed
ProcessorType: DotNetNuke.Entities.Modules.EventMessageProcessor, DotNetNuke
Body:
Sender:
BusinessControllerClass: Modules.TravelAlertNews_V2.TravelAlertNews_V2Controller
DesktopModuleId: 146
UpgradeVersionsList: 01.00.02
ExceptionMessage: Value cannot be null. Parameter name: type
Server Name: **********
  2008-11-21 11:01:52   General Exception       AssemblyVersion: 04.09.00; PortalID: -1; PortalN ...
AssemblyVersion: 04.09.00
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /WebResource.axd?d=_QVTbQf5zXcqxLehccO37g2&t=632781905580375000
AbsoluteURL: /WebResource.axd
AbsoluteURLReferrer: http://*******.*******.com/Host/File%20Manager/tabid/19/ctl/Edit/mid/323/ftype/Module/rtab/18/portalid/25/language/sv-SE/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: e4640673-889c-4025-802c-be6c0eb098d5
InnerException: Could not load type 'HRG.Modules.ProfileAlert_V2.ProfileAlert_V2Controller'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Compilation.BuildManager.GetType
StackTrace:
Message: System.Web.HttpException: Could not load type 'HRG.Modules.ProfileAlert_V2.ProfileAlert_V2Controller'. at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at DotNetNuke.Framework.Reflection.CreateType(String TypeName, String CacheKey, Boolean UseCache, Boolean IgnoreErrors)
Source:
Server Name: *******



I have applied the SQL fix mentioned above (UPDATE DesktopModules SET SupportedFeatures = 0 WHERE SupportedFeatures = -1)

I don't get these errors on my localhost application where I develop the modules, it is only when they are deployed to our staging servers I see the error.

I read somewhere else that it could be a namespace issue.

I checked my manifest file and found there was a problem with the class name as highlighted in bold above. I corrected this and installed a new version of the module.

New module files:

DNN File:

      <businesscontrollerclass>HRG.Modules.ProfileAlert_V2.ProfileAlertController</businesscontrollerclass>
 

Code file

Namespace HRG.Modules.ProfileAlert_V2

    Public Class ProfileAlertController
        Implements Entities.Modules.ISearchable
        Implements Entities.Modules.IPortable
 

Still I got these errors, still referring to to the OLD HRG.Modules.ProfileAlert_V2.ProfileAlert_V2Controller .

 

So, I have just uninstalled this module (including deleting files), cleared the cache and restarted the application, but again i am STILL seeing this error????????

I have checked the database (all module tables) and every reference to the .ProfileAlert_V2 module has been removed. I have also stopped the app pool and done an iisreset.

What on earth is going on?

Why am I stillgetting errors referencing a class that is no longer installed on the portal????

 

 I have just found another vaguely similar thread and this recommended switch off the search scheduler, but I have already done that so please don't suggest that as a fix.


Blue & White hooped blood runs through my veins!
 
New Post
11/21/2008 9:16 AM
 

Check the DNN EventQue table for related entries where IsCompleted=False.


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
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0General Exception Errors when viewing the Event ViewerGeneral Exception Errors when viewing the Event Viewer


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