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  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


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


Re: Module Load Exception 

Thanks to everyone for trying to help out on this.  It turns out the problem was my local site was on version 4.8.1 and the remote site was on 4.8.0. 

For anyone having this problem I discovered this by creating a very simple "HelloWorld" module with nothing but a label on it then installing on the remote site.  This gave me a much more meaningful error.

 
New Post 4/9/2008 4:52 PM
User is offline William Severance
607 posts
www.wesnetdesigns.com
7th Ranked






Re: Module Load Exception 
Modified By William Severance  on 4/9/2008 7:56:12 PM)

Your @ Control directive and namespacing appears to be correct. Most often the CreateResourceBasedLiteralControl error is due to namespacing or other mismatch between the .ascx or .aspx and the codebehind. The reference in the error to 'ASP.desktopmodules_cersdb_cersdb_ascx' reminds me of the default class name that one gets when creating a usercontrol in VS2005 or VS2008 before editing the @ Control directive and the codebehind to use the desired namespace and class name. With a compiled module project, each control (.ascx file) will have an automatically generated designer file as well as the codebehind file. In your case the designer file should be named CERSDB.ascx.designer.vb. Usually, but not always, when one modifies the namespacing and class name in the .ascx and/or codebehind, that in the designer automatically changes to match. Check to see if you have a CERSDB.ascx.designer.vb file and that the namespace and classname exactly match those in the codebehind and if necessary make the change and then recompile.

EDIT: When I posted the above, your last post had not yet appeared. Glad you got it worked out. That's the first time I've seen the CreateResourceBasedLiteralControl error caused by a DNN version mismatch - usually the error for that is quite to the point.


Bill, WESNet Designs
 
New Post 5/8/2008 8:50 AM
User is offline Sandeep
1 posts
10th Ranked


Re: Module Load Exception 

Hello Everyone,

I have a query....I developed the module on DNN 4.7.0 and when I installed the module on the server (DNN 4.8.2)....its installed properly but when I placed the module on the page I got the following error-----however its working fine in local......

DotNetNuke.Services.Exceptions.ModuleLoadException: D:\inetpub\supp\DesktopModules\CRE\DisplaySingleCategoryProduct.ascx(10): error BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.desktopmodules_CRE_displaysinglecategoryproduct_ascx'. ---> System.Web.HttpParseException: D:\inetpub\supp\DesktopModules\CRE\DisplaySingleCategoryProduct.ascx(10): error BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.desktopmodules_CRE_displaysinglecategoryproduct_ascx'. ---> System.Web.HttpCompileException: D:\inetpub\supp\DesktopModules\CRE\DisplaySingleCategoryProduct.ascx(10): error BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.desktopmodules_CRE_displaysinglecategoryproduct_ascx'. at System.Web.Compilation.AssemblyBuilder.Compile() 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.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile) at System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath virtualPath) at System.Web.UI.MainTagNameToTypeMapper.ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry) 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) 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.Compilation.BuildManager.GetVPathBuildResultWithAssert(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 ---

I didnt find any solution....Any help would be appreciated

Thanks and Regards

Sandeep

 

 1 Reports
New Post 7/14/2008 3:56 AM
User is offline ajit
1 posts
www.midlandwebnet.com
10th Ranked


Re: Module Load Exception 

Hi,

I have similar type of problem!!

I had develope module using dnn 4.5 for server running dnn 4.8.2. Problem is when we add module on any page we get following error summary!!

"Unable to Cast Object of Type 'ASP.DesktopModules_ViewModule_Ascx'  to type 'DotNetNuke.Entities.Modules.PortalModuleBase' --> System.InvalidCastException: Unable to cast object of type 'ASP.DesktopModules_ViewModule_Ascx' ........


Any one having any idea. Please provide some infromation . How i can sort out this problem.
Thx.

 
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.

 


Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com
AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com
Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com

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