You need to Register for free and Login to post a message in the forum.

Forum

Subject: Not able to add module
Prev Next
You are not authorized to post a reply.

Author Messages
obautista
DNN Creative Magazine Subscriber

Posts:10

16 Aug 2008 12:09 PM  
I am new to DNN.  I am using 4.8.4, Startkit.  I created a test module and attempted to add it to a page I created.  I am getting the following module load exception error message.  Can anyone help?

ModuleId: 374
ModuleDefId: 99
FriendlyName: OscarModule
ModuleControlSource: DesktopModules/OscarModule/OscarModule.ascx
AssemblyVersion: 04.08.04
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 54
ActiveTabName: OscarModule
RawURL: /dotnetnuke/Default.aspx?TabId=54
AbsoluteURL: /dotnetnuke/Default.aspx
AbsoluteURLReferrer: http://localhost/dotnetnuke/Default.aspx?TabId=54
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.0.04506; InfoPath.2; .NET CLR 3.5.21022)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 71eeb9be-faca-4888-8e21-4df7c4878594
InnerException: Unable to cast object of type 'ASP.desktopmodules_oscarmodule_oscarmodule_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Skins.Skin.InjectModule
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Unable to cast object of type 'ASP.desktopmodules_oscarmodule_oscarmodule_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'. ---> System.InvalidCastException: Unable to cast object of type 'ASP.desktopmodules_oscarmodule_oscarmodule_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'. at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
Source:
Server Name: BAUTISTA-LAPTOP
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


16 Aug 2008 6:36 PM  
It looks (from the "unable to cast" error message) like your module doesn't inherit from the DotNetNuke.Enties.PortalModuleBase class.

Joe Craig
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.
Forums > DotNetNuke® > Modules - What's needed? > Not able to add module



ActiveForums 3.7

Latest Forum Posts

RE: Cannot view host filespace using text/html editor by NonStopMark
Hi Joe, The problem has gone away. May have been a caching issue. Thanks for posting. DNN : ht...
Firefox Does Not Display WMV File In Media Module by johnmk777
Hi All,I can't believe I am having such a hard time finding and answer to this question.  I have see...
advice wanted convert site to DNN while keeping existing asp functionality by max2o
I am running into the issue that a client wants to redesign their site and they want content managem...
RE: Site is not opening by leesykes
from the message it is referencing php - is it a dnn site? - is asp.net applied for the site?
RE: SolPart Menu Font Color Control by leesykes
Hello,I'm not aware of any documentation at the moment. But here is a list of Nav Menu PropertiesTo ...
Site is not opening by kaustav_kar
Hi,Whenever I'm writing the url (http://tajfood.com.sa) it's showing the following error; Index of ...
RE: SolPart Menu Font Color Control by cdees
 Lee, Is there documentation, or perhaps a tutotial on activating and using Nav menu?  Where would I...
RE: EasyCGI help? by Dr Joe
I found some interesting posts on some other sites that explain some of the challenges I've been exp...
RE: Menu's, menu's, and more menu's! by roadshow41
Thanks! I'm still a bit curious about some of the other options, but I think that gives me enough c...
RE: Menu's, menu's, and more menu's! by leesykes
Hello,Yes that should be possible with snapsis, I have used snapsis CSS with flyout menus on a horiz...
RE: Menu's, menu's, and more menu's! by roadshow41
I typically end up using a hybrid of a vertical menu and a horizontal menu due to the sheer number o...
DotNetNuke SEO (Search Engine Optimization) by leesykes
Hello,I regularly get asked for tips on SEO with DotNetNuke, there are several resources available o...
RE: Menu's, menu's, and more menu's! by leesykes
Hello,If you are looking for a menu for SEO reasons, any CSS based unordered list menu will be SEO f...
Menu's, menu's, and more menu's! by roadshow41
Well, I've been trying to steam ahead with the DNN sites I inherited a few months ago.  I've found l...
RE: EasyCGI help? by derpir
Hi Lee I told them that solution two days ago and still no answer, but thanks for suggesting that s...
RE: quick question by derpir
Hithanks! yes I understand. I will deal with my skins more tomorrow, maybe some questions will arriv...
RE: Restart Application by leesykes
It will restart your DotNetNuke installation and reload the application.Clearing cache will clear th...
RE: How can i edit any module from front end by leesykes
hello,I have just tested this and can see exactly the same as you, I suspect the core team have set ...
RE: EasyCGI help? by leesykes
You may want to ask them to reset the correct permissions on your DotNetNuke installation files, som...
RE: quick question by leesykes
Hello,It will be possible to a degree, but it depends on how both of the skins have been built. You ...
DotNetNuke Modules
RSS Feeds