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...Confusing error on Application restartConfusing error on Application restart
Previous
 
Next
New Post
1/26/2009 10:52 AM
 

My Event log shows the following 2 errors every time the application restarts:

1/26/2009 9:12:26 PM   Host Alert       EventQueue.ProcessMessage: Message Processing Failed; Proces ...
EventQueue.ProcessMessage: Message Processing Failed
ProcessorType: DotNetNuke.Entities.Modules.EventMessageProcessor, DotNetNuke
Body:
Sender:
BusinessControllerClass: Imbibe.DNN.Modules.Member.MemberController, II_Members
DesktopModuleId: 58
UpgradeVersionsList: 02.00.00
ExceptionMessage: Value cannot be null. Parameter name: type
Server Name: IKE-LAPI
1/26/2009 9:12:26 PM   General Exception       AssemblyVersion: 04.09.00; PortalID: -1; PortalN ...
AssemblyVersion: 04.09.00
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /ioffice/Host/Host Settings/tabid/16/portalid/0/Default.aspx
AbsoluteURL: /ioffice/Host/Host%20Settings/tabid/16/portalid/0/Default.aspx
AbsoluteURLReferrer: http://localhost/ioffice/Host/Host%20Settings/tabid/16/portalid/0/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, Imbibe.DNN.Provider.SharedProfile
ExceptionGUID: 749d5c6d-5672-4033-9bae-bba707de340c
InnerException: Could not load type 'Imbibe.DNN.Modules.Member.MemberController' from assembly 'II_Members'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.RuntimeTypeHandle._GetTypeByName
StackTrace:
Message: System.TypeLoadException: Could not load type 'Imbibe.DNN.Modules.Member.MemberController' from assembly 'II_Members'. at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) 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: IKE-LAPI

What's more, both of these messages are repeated 3 times, everytime the application restarts. I am completely stumped at his one.

I have created & installed custom modules into DNN, whose Assembly and class names are visible in the log above. But I have NOT plugged into the application domain loading up process in any way.

My modules are working fine. Even if I assume that there is some problem with my modules, it should show up when the page containing the module is requested. I have no idea what's going wrong on app restart. This even happens on clicking 'Restart application' on Host Settings page.

Any advice would be greatly appreciated.

 
New Post
1/26/2009 12:07 PM
Accepted Answer 

What the problem is that your module manifest file doesn't correctly reference the appropriate BusinessControllerClass.  The "businesscontrollerclass" section should display an actual Namespace and class; since you've already installed it, you'll need to change it manually in the database table "DesktopModules" (BusinessControllerClass column) or fix in your manifest and reinstall; also depending which version of DNN you may need to manually fix the EventQueue table so it doesn't try to reprocess -- I've just updated EventQueue and set IsComplete = 1 where IsComplete = 0 when I had this problem in the past.

Snippet of one of my manifest files below:

<dotnetnuke type="Module" version="3.0">
 	<folders>
 		<folder>
 			<name>MACU.Rewards</name>
 			<friendlyname>MACU.Rewards</friendlyname>
 			<foldername>MACU.Rewards</foldername>
 			<modulename>MACU.Rewards</modulename>
 			<description>Module used to manage Employee recognition, fitness tracking, etc.</description>
 			<version>01.00.00</version>
 			<businesscontrollerclass>Macu.Modules.Rewards.Components.RewardsController</businesscontrollerclass>
 			<modules> ... 
</modules></folder></folders>
</dotnetnuke>

 


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
1/26/2009 10:49 PM
 

Jon Seeley wrote

you may need to manually fix the EventQueue table so it doesn't try to reprocess -- I've just updated EventQueue and set IsComplete = 1 where IsComplete = 0 when I had this problem in the past.

Thanx Jon. This solved the issue. I was so fed up at finding the cause of this, that it had come to a point, where I was disturbing the perfect code of my modules, to see who the culprit was. I thought that DNN should try to create an object of my BusinessControllerClass only when the page containing the module loads.

Let me explain what went wrong, so that others can benefit from it. I had a module whose BCC (BusinessControllerClass) did not implement IUpgradable in first version. In second version it did, however the BCC had no parameterless constructor. So, while upgrading, DNN was not able to create an instance of the class, and so left a message in EventQueue and tries to upgrade it on every restart.

This is where, I disagree with the behaviour. If a module cannot be upgraded on installation, what's the point in pursuing it later and causing unncessary exceptions??

 
New Post
1/28/2009 12:03 AM
 

r_honey wrote

 Jon Seeley wrote

you may need to manually fix the EventQueue table so it doesn't try to reprocess -- I've just updated EventQueue and set IsComplete = 1 where IsComplete = 0 when I had this problem in the past.

 

Thanx Jon. This solved the issue. I was so fed up at finding the cause of this, that it had come to a point, where I was disturbing the perfect code of my modules, to see who the culprit was. I thought that DNN should try to create an object of my BusinessControllerClass only when the page containing the module loads.

Let me explain what went wrong, so that others can benefit from it. I had a module whose BCC (BusinessControllerClass) did not implement IUpgradable in first version. In second version it did, however the BCC had no parameterless constructor. So, while upgrading, DNN was not able to create an instance of the class, and so left a message in EventQueue and tries to upgrade it on every restart.

This is where, I disagree with the behaviour. If a module cannot be upgraded on installation, what's the point in pursuing it later and causing unncessary exceptions??

The reason for DNN re-trying I am guessing is that DNN doesn't necessarily know WHY it failed, and in order to be a good "host system" it needs to re-try the operation, to ensure that the module is up to date.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
1/30/2009 2:10 AM
 

Mitch Sellers wrote

The reason for DNN re-trying I am guessing is that DNN doesn't necessarily know WHY it failed, and in order to be a good "host system" it needs to re-try the operation, to ensure that the module is up to date.

And in the process filling up the Event Log with errors unnecessarily??? If it did not work at module upgrade time, how can it work later (assuming you are not changing the code manually after module install, which should be the normal scenario in most hosted situations)??

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Confusing error on Application restartConfusing error on Application restart


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