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.0Module Load ExceptionModule Load Exception
Previous
 
Next
New Post
4/8/2008 6:06 PM
 

This is my first DNN module.  I keep getting this error after installing the module up to remote IIS server.  Everything works fine on my local IIS server.  This happens after  adding the module to  page.  My local machine is version 4.8.1 and remote server is 4.8.0.  Any help appreciated in advance.

DotNetNuke.Services.Exceptions.ModuleLoadException: D:\DNN2\DesktopModules\CERSDB\CERSDB.ascx(1): error BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.desktopmodules_cersdb_cersdb_ascx'. ---> System.Web.HttpCompileException: D:\DNN2\DesktopModules\CERSDB\CERSDB.ascx(1): error BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.desktopmodules_cersdb_cersdb_ascx'. 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
4/9/2008 10:16 AM
 

How did you build your installation package?

It can't find a method of your module, this can be caused by not providing source in the install file if you are working with a WSP projecy


-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
4/9/2008 2:12 PM
 

Thanks for helping out.

I created my module in a DNN compiled module project.  Then I compiled the web project and copied the dll file from the bin folder and the .ascx file from the desktop module folder into zip file (with the dnn manifest) and installed.  The installation seems to work fine.  It is just when I try to actually use the module on a page that I get the error.  I think I am missing a reference but I haven't yet figured it out.  Here is my latest findings....

 

After researching the CreateResourceBasedLiteralControl Method

I changed the commented out line in my code behind .ascx.vb file below to the one directly beneath it

Imports DotNetNuke
Imports DotNetNuke.Security.PortalSecurity
Imports DotNetNuke.Entities.Modules.PortalModuleBase
Imports System.Configuration.ConfigurationManager
Imports System.Text
Imports System.Collections.Generic
Imports System.Reflection
Imports Microsoft.VisualBasic
Imports System.Data
Imports Microsoft.ApplicationBlocks.Data
Imports System.IO
Imports System.Text.RegularExpressions
Imports System.Data.SqlClient

Namespace APA.Modules.CERSDB

    Partial Public Class CERS
        'Inherits Entities.Modules.PortalModuleBase
        Inherits System.Web.UI.UserControl

and I now get this error which I think is telling me I need to change it back to the way I had it.  So I am back to square one with this thing.

Error: CERSDB is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unable to cast object of type 'ASP.desktopmodules_cersdb_cersdb_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'. ---> System.InvalidCastException: Unable to cast object of type 'ASP.desktopmodules_cersdb_cersdb_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 ---

 

 

 
New Post
4/9/2008 3:22 PM
 

Answer the following questions and I think you'll see the problem:

1. In the @Control directive of CERSDB.ascx, what is the value for the attribute Inherits =   ??
2. In the code behind cersdb.ascx.vb what is the full namespace and class?  From the above it would appear to be APA.Modules.CERSDB.CERS
3. In your WAP project properties for this module, did you specify (or did one get filled in by default) a root namespace?

Also note that your module controls must inherit from Entities.Modules.PortalModuleBase not System.Web.UI.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
4/9/2008 3:41 PM
 

Thanks Bill,

I am still stuck...right now I am completely out of ideas on this. 

To answer the questions you have posed this is what I have...

1.  <%@ Control Language="VB" AutoEventWireup="false" Inherits="APA.Modules.CERSDB.CERS" Codebehind="CERSDB.ascx.vb"  %>

2.  You are correct my full namespace and class = APA.Modules.CERSDB.CERS

        Namespace APA.Modules.CERSDB

        Partial Public Class CERS
        Inherits Entities.Modules.PortalModuleBase
        'Inherits System.Web.UI.UserControl

3.  I have nothing designated as a root namespace WAP properties.

I also changed the inherits back to from Entities.Modules.PortalModuleBase not System.Web.UI.UserControl but now I am back to my original error below..

Error: CERSDB is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: D:\DNN2\DesktopModules\CERSDB\CERSDB.ascx(1): error BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.desktopmodules_cersdb_cersdb_ascx'. ---> System.Web.HttpCompileException: D:\DNN2\DesktopModules\CERSDB\CERSDB.ascx(1): error BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.desktopmodules_cersdb_cersdb_ascx'. 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 ---



 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module Load ExceptionModule Load Exception


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