Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > DotNetNuke > BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5
This is the forum to discuss the Wrox book Professional DotNetNuke Module Programming by Mitchel Sellers and Shaun Walker - Wrox DotNetNuke Series Editor; ISBN: 978-0-470-17116-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 18th, 2009, 01:08 PM
Authorized User
 
Join Date: Jul 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default Could not load type 'WroxModules.GuestbookVB.EditGuestbookVB'

I'm getting the following error message when building the solution and a similar error message when inserting GuestbookVB on to a DNN webpage.

"Could not load type 'WroxModules.GuestbookVB.EditGuestbookVB'. D:\DotNetNuke511\DesktopModules\GuestbookVB\EditGu estbookVB.ascx" in line 1.
Line 1 of this file reads:
<%@Controllanguage="vb"Inherits="WroxModules.GuestbookVB.EditGuestbookVB"AutoEventWireup="false"Explicit="True"Codebehind="EditGuestbookVB.ascx.vb" %>

The same goes for ViewGuestBookVB, SignGuestbook, ViewSettings and Settings.

First part of the error message on the DNN webpage is:
"Error: Guestbook VB is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException : Could not load type 'WroxModules.GuestbookVB.ViewGuestbookVB'."

I'm probably overlooking something simple.
  #2 (permalink)  
Old August 19th, 2009, 05:33 AM
Authorized User
 
Join Date: Jul 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Using the C# version of Guestbook(CS) delivers the same error message:

"Error: Guestbook CS is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException : Could not load type 'WroxModules.GuestbookCS.ViewGuestbookCS'. ---> System.Web.HttpParseException: Could not load type 'WroxModules.GuestbookCS.ViewGuestbookCS'. ---> System.Web.HttpParseException: Could not load type 'WroxModules.GuestbookCS.ViewGuestbookCS'. ---> System.Web.HttpException: Could not load type 'WroxModules.GuestbookCS.ViewGuestbookCS'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttrib ute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirect iveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exce ption ex) at System.Web.UI.TemplateParser.ParseStringInternal(S tring 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.ParseReader(StreamRea der reader, VirtualPath virtualPath) 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.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.g et_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTy peFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.Proc essBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.Perf ormBuild() at System.Web.Compilation.BuildManager.CompileWebFile (VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildR esult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualP ath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl () --- End of inner exception stack trace ---"
  #3 (permalink)  
Old August 19th, 2009, 02:22 PM
Wrox Author
 
Join Date: Jul 2008
Location: Des Moines, IA, USA.
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers Send a message via Skype™ to msellers
Default

You will want to check the namespaces on the codebehind files and validate that they match the namespaces that are identified in the .ascx files.

In addition, ensure that the .dll file has been deployed to the bin directory.
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
The Following User Says Thank You to msellers For This Useful Post:
gvdamn (August 20th, 2009)
  #4 (permalink)  
Old August 20th, 2009, 06:37 AM
Authorized User
 
Join Date: Jul 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Deploying the .dll file to the bin directory did the trick. Thank you.
  #5 (permalink)  
Old August 6th, 2016, 04:23 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default .dll file

which are the.dll file add in bin folder?Please specify the.dll file name?
i added the all.dll file but its showing error?
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not load type skhan ASP.NET 3.5 Basics 0 July 29th, 2009 12:05 PM
Could not load type 'WebForm1' error hastikeyvan ASP.NET 2.0 Professional 10 July 14th, 2008 02:16 PM
Could not load type 'WebForm1' error hastikeyvan ASP.NET 2.0 Basics 0 June 22nd, 2006 02:31 AM
type load exception crazy_eye_bob Crystal Reports 4 November 7th, 2005 01:16 PM
Cannot load Type Abstract planoie VS.NET 2002/2003 2 September 3rd, 2003 04:13 PM



All times are GMT -4. The time now is 05:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.