Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Module Load Exception
Previous Previous
 
Next Next
New Post 4/8/2008 3:06 PM
Unresolved
User is offline weldonr30
11 posts
10th Ranked


Module Load Exception 

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 7:16 AM
User is offline Mitch Sellers
5269 posts
www.mitchelsellers.com
3rd Ranked




Re: Module Load Exception 

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
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
New Post 4/9/2008 11:12 AM
User is offline weldonr30
11 posts
10th Ranked


Re: Module Load Exception 

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 12:22 PM
User is offline William Severance
676 posts
www.wesnetdesigns.com
7th Ranked






Re: Module Load Exception 

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
 
New Post 4/9/2008 12:41 PM
User is offline weldonr30
11 posts
10th Ranked


Re: Module Load Exception 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Module Load Exception
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com
Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com
Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP