p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 (http://p2p.wrox.com/book-professional-dotnetnuke-module-programming-isbn-978-0-470-17116-5-486/)
-   -   Could not load type 'WroxModules.GuestbookVB.EditGuestbookVB' (http://p2p.wrox.com/book-professional-dotnetnuke-module-programming-isbn-978-0-470-17116-5/75769-could-not-load-type-wroxmodules-guestbookvb-editguestbookvb.html)

gvdamn August 18th, 2009 01:08 PM

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.

gvdamn August 19th, 2009 05:33 AM

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 ---"

msellers August 19th, 2009 02:22 PM

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.

gvdamn August 20th, 2009 06:37 AM

Deploying the .dll file to the bin directory did the trick. Thank you.

Intellisoft August 6th, 2016 04:23 AM

.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?


All times are GMT -4. The time now is 12:43 PM.

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