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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Could not load type Could not load type 'XYZ' - Adding module to the page problem
Previous
 
Next
New Post
8/8/2009 10:24 PM
 

Hello.

I have just created a new module, following instructions given in WROX Professional Module Creation book.

I created a new project using the DotNetNuke_Community_05.01.01_StarterKit, then I built the module architecture including controls and DataBase script.

I put all the necessary stuff inside DNN test site on localhost, by creating my module folder inside DesktopModules.

After that, I went to site/host/SQL, I exectuted SQL script with success. Then, I went to module definitions, and imported succesfully the module manifest from mymodule.dnn file.

I can see my new module in the module's list of my site, I clicked on it to view the properties and all is correct there.

So, I went to the home page of the site, and I chosen to put my module on that page.

And... The error message appeared: Error: VideoLinker is currently unavailable.

DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'CodexStar.Modules.VideoLinker.ViewVideoLinker'....bla bla bla...

I don't know why is it happening and what exactly it means.

I even set the breakpoint on the code execution, and there's CType conversion that is throws the exception.

So, I verified the namespaces, classnames and inheritence of all module's components and found nothing exceptional.

Please help me to resolve this problem.

Thank you.

 

 

 

 
New Post
8/9/2009 8:59 AM
 

please post full details of the error (might be found in DNN EventViewer, if exception iscaught).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/9/2009 10:10 AM
 

From EventViewer:


ModuleId: 376
ModuleDefId: 140
FriendlyName: VideoLinker
ModuleControlSource: DesktopModules/VideoLinker/ViewVideoLinker.ascx
AssemblyVersion: 5.1.1
PortalID: 0
PortalName: DNN Test Site
UserID: 1
UserName: admin
ActiveTabID: 39
ActiveTabName: Home
RawURL: /test_site/default.aspx
AbsoluteURL: /test_site/default.aspx
AbsoluteURLReferrer: http://localhost/test_site/default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: e616b0bf-c6e0-4fd1-8b5e-135732ecf8f5
InnerException: Could not load type 'CodexStar.Modules.VideoLinker.ViewVideoLinker'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.TemplateParser.GetType
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'CodexStar.Modules.VideoLinker.ViewVideoLinker'. ---> System.Web.HttpParseException: Could not load type 'CodexStar.Modules.VideoLinker.ViewVideoLinker'. ---> System.Web.HttpParseException: Could not load type 'CodexStar.Modules.VideoLinker.ViewVideoLinker'. ---> System.Web.HttpException: Could not load type 'CodexStar.Modules.VideoLinker.ViewVideoLinker'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- 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) --- End of inner exception stack trace --- 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.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) in C:\Server\TestSite\DotNetNuke\Library\UI\ControlUtilities.vb:line 57 at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() in C:\Server\TestSite\DotNetNuke\Library\UI\Modules\ModuleHost.vb:line 248 --- End of inner exception stack trace ---
Source:
Server Name: TOSHIBA


And, just before that:


AssemblyVersion: 5.1.1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 0d0c3d09-dc78-49e2-a928-2e8df475f13f
InnerException: Could not load type 'CodexStar.Modules.VideoLinker.VideoLinkerController'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Compilation.BuildManager.GetType
StackTrace:
Message: System.Web.HttpException: Could not load type 'CodexStar.Modules.VideoLinker.VideoLinkerController'. at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at DotNetNuke.Framework.Reflection.CreateType(String TypeName, String CacheKey, Boolean UseCache, Boolean IgnoreErrors) in C:\Server\TestSite\DotNetNuke\Library\Framework\Reflection.vb:line 278
Source:
Server Name: TOSHIBA

 
New Post
8/9/2009 10:50 AM
 

I have just opened the solution, where my newly created module resides inside DesktopModules folder, I built this solution, and after that, I have looked inside the BIN folder, to check if my module's DLL is here. And, it's not there. The solution is compiling OK, with no errors, but dll is not generated.

I don't know what to do...

 
New Post
8/9/2009 11:25 AM
 

I'm still debugging while posting :)

So, I said before, that solution compiled with no errors, and that was false. The compilation stopped at the DNN module Store.AddressEdit.ascx.

What I did, is to temporary remove that control from the project and rebuild the solution again.

Now, I don't see anymore DNN related AddressEdit error, but my module errors in the errors list while compiling.

I got 4 errors:

Error    1    Could not load type 'CodexStar.Modules.VideoLinker.ManageAttributes'.    C:\Server\TestSite\DotNetNuke\Website\DesktopModules\VideoLinker\ManageAttributes.ascx    1   
Error    2    Could not load type 'CodexStar.Modules.VideoLinker.Settings'.    C:\Server\TestSite\DotNetNuke\Website\DesktopModules\VideoLinker\Settings.ascx    1   
Error    3    Could not load type 'CodexStar.Modules.VideoLinker.EditVideoLinker'.    C:\Server\TestSite\DotNetNuke\Website\DesktopModules\VideoLinker\EditVideoLinker.ascx    1   
Error    4    Could not load type 'CodexStar.Modules.VideoLinker.ViewVideoLinker'.    C:\Server\TestSite\DotNetNuke\Website\DesktopModules\VideoLinker\ViewVideoLinker.ascx    1   

 

Those errors are related to the controls used by my module.

What's strange in here, is that my controls XYZ.ascx are not related to their associated classed(code behind) - XYZ.ascx.cs !

In the solution explorer, I have:

-XYZ.ascx
   ...XYZ.ascx.cs
XYZ.ascx.designer.cs

 

The designer is completely appart and not nested inside the control node. What is that?

So the control is searching for it's class (code behind) and cannot find it...

How can it be possible?

 

Just to remind, I built my module in the newly generated project by DotNetNuke_Community_05.01.01_StarterKit.

After that, I took the XYZ folder and I copied it to the DNN test site, inside the folder Desktop Modules.
 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Could not load type Could not load type 'XYZ' - Adding module to the page problem


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