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.0help me in modulehelp me in module
Previous
 
Next
New Post
3/16/2008 7:32 AM
 

hi my friends

i need your help. i wrote module about customer's order and upload on dotnetnuke

but i have strong error and i don't know how to solve it?please help me

DotNetNuke.Services.Exceptions.ModuleLoadException: 'DotNetNuke.Modules.Order.CustomOrder' is not allowed here because it does not extend class 'System.Web.UI.UserControl'. ---> System.Web.HttpParseException: 'DotNetNuke.Modules.Order.CustomOrder' is not allowed here because it does not extend class 'System.Web.UI.UserControl'. ---> System.Exception: 'DotNetNuke.Modules.Order.CustomOrder' is not allowed here because it does not extend class 'System.Web.UI.UserControl'. ---> System.Exception: 'DotNetNuke.Modules.Order.CustomOrder' is not allowed here because it does not extend class 'System.Web.UI.UserControl'. ---> System.Web.HttpException: 'DotNetNuke.Modules.Order.CustomOrder' is not allowed here because it does not extend class 'System.Web.UI.UserControl'. at System.Web.UI.TemplateParser.ProcessError(String message) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) at System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective) at System.Web.UI.TemplateControlParser.ProcessMainDirective(IDictionary mainDirective) at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

 
New Post
3/16/2008 12:40 PM
 

Your module control (.ascx) must inherit from DotNetNuke.Entities.Modules.PortalModuleBase which in turn inherits from UserControl.


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
 
New Post
6/5/2009 6:30 PM
 

William,

I'm having the same issue.  Here's the first part of the stack trace:

Error: ISSI Flat File Reader is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: 'ISSI.DNN.FlatFileReader.LinksView' is not allowed here because it does not extend class 'System.Web.UI.UserControl'. ---> System.Web.HttpParseException: 'ISSI.DNN.FlatFileReader.LinksView' is not allowed here because it does not extend class 'System.Web.UI.UserControl'. --->

And ... here's the top part of the class in question:

'** Author: Michael W. Durthaler, DTS, 5 Jun 2009

'** Change:

'** -----1---------2---------3---------4---------5---------6---------7---------8---------9---------0---

Imports

System.Web.UI.WebControls

Imports

DotNetNuke

Imports

DotNetNuke.Common.Utilities

Imports

DotNetNuke.Entities.Modules

Imports

DotNetNuke.Services.Localization

Imports

 

DotNetNuke.Services.Exceptions

Namespace

 

 

 

ISSI.DNN.FlatFileReaderPartial Class LinksViewInherits DotNetNuke.Entities.Modules.PortalModuleBaseImplements Entities.Modules.IActionable

As you can see, I'm inheriting from Portal Module Base, fully qualified even.  I'm in VS 2008, DNN 4.9.4 and this is a known good working module from VS 2005.  I copied it over from there as I knew it worked.

The fact that the code files are copied should mean nothing -- the shell solution was created first and then the files copied over.  VB is VB, etc. known by any other name ... you know.

What's up here?  I'm under the gun ... hope you are around to reply.

 
New Post
6/5/2009 9:02 PM
 

Found the answer at least in my case.

Where I learned DNN, we use Web App Projects -- single solutions for each module with the website URL as the Start Url.  In versions of Visual Studio prior to 2008, the inherits class was only needed in the main code behind.  It was not also needed in the designer code behind.

That is, a web user control in a web app creates one user control, 2 code behind files:  WebControl1.ascx, WebControl1.ascx.vb and WebControl1.designer.ascx.vb.  In earlier versions of the VS IDE, one inherited Portal Module Base in the main code behind file and called it a day.  Now, one has to do what should cause an error -- a 2nd inherit in theoretically the same file.

This was a bear to find.  I knew the htmleditor.ascx and it's single vb file in the Text/HTML module worked.  I copied it down, overwrote them with my code, got a different error.  Conveted to web app ... module blew up.  Inheritied DotNetNuke.Entities.Modules.PortalModuleBase into the designer vb file and the module loaded.

This could be change in VS further abstracting the designer file, could be a change in DNN where it doesn't relate the 2 files but at any rate, this is what solved my issue.

So, if you're working with web app projects in 2008 ... this is probably what's creating the error for you.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0help me in modulehelp me in module


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