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.0Generel Exception when running modules in non-development environmentGenerel Exception when running modules in non-development environment
Previous
 
Next
New Post
6/30/2008 3:20 AM
 

Hi all,

Im getting a mysterious error in the log of my public portal (this error doesn't occur in my development site), and this error does that my module doesn't function properly - ANY help would be greatly appreciated, since I am unable to debug.

The modules themselves doesn't send any errors to the userinterface, only this entry in the website log : 

------------------------------LOG ENTRY------------------------------------------
AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Error Creating BusinessControllerClass 'ToolpackSolutions.License' of module(Toolpack License Management) id=(1178) in tab(561) and portal(8)
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.Exception: Error Creating BusinessControllerClass 'ToolpackSolutions.License' of module(Toolpack License Management) id=(1178) in tab(561) and portal(8) ---> 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) --- End of inner exception stack trace --- at DotNetNuke.Services.Search.ModuleIndexer.GetModuleList(Int32 PortalID)
Source:
Server Navn: 70204009-01

------------------------------END LOG ENTRY------------------------------------------

This error then causes another error :

------------------------------LOG ENTRY------------------------------------------

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Could not load type 'ToolpackSolutions.License'.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.Web.HttpException: Could not load type 'ToolpackSolutions.License'. 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 Navn: 70204009-01


------------------------------END LOG ENTRY------------------------------------------

So, if ANYONE could direct my in the rigt direction, I would be eternally greatful:-)

Regards,

Martin Moesby

 
New Post
6/30/2008 9:46 AM
 

Hey Martin,

Do you have in your module registration (manifest file or otherwise) a business controller class defined? If so, does the class actually exist in your project? And if it does exist in your project, does it also exist on your server (in an assembly or in the app code)?

To me, it looks like you have a business controller class (I like to call it the FeatureController) defined in your module registration and that DNN is attempting to create an instance of this class but failing.

Take a look and let us know what you find.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
7/1/2008 3:44 AM
 

Hi Ian,

Thanks for the input, I'll take a look to see if I inadvertently changed the name of the Business Controller Class...

I'll let you know what I find out.

/Martin

 
New Post
7/1/2008 4:00 AM
 

Hi again,

OK, I found the mistake - it seems I have put the Namespace as the Controller class (duhh!!), and I think it may be because I have 5(!) controller classes, that lies within the namespace (i.e. ToolpackSolutions.License.[Name of the controller class]...

The module is a License management and -creation system, which consists of 5 moduledefinitions, each with their own specific controller class.
Some of the controller classes implements the IModuleCommunication interface, others implements the IPortable and ISearchable interfaces.....

Should I refactor the system to only use 1 controller class, or can I put in 5 controller classes in the manifest?

Regards

Martin

 
New Post
7/1/2008 10:38 AM
 

Hey Martin,

The business controller class specified in your manifest file is intended to be the repository for IPortable, ISearchable and IUpgradeable implementations. The only reason that you need to specify a business controller class is to support those features. So - if you have those features spread out across multiple classes - put them in one and use that class as your business controller. If you aren't using those features -- I wouldn't even worry about it - just remove that node from your manifest file.

Hope that helps,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Generel Exception when running modules in non-development environmentGenerel Exception when running modules in non-development environment


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