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/9/2009 11:25 AM
 

Next step that I took, is to replace here:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ManageAttributes.ascx.cs"
    Inherits="CodexStar.Modules.VideoLinker.ManageAttributes" %>

CodeBehind by CodeFile

And, I also deleted the designer files. Now I have another problem. The controller class is not found.

Error    29    The type or namespace name 'VideoLinkerController' could not be found (are you missing a using directive or an assembly reference?)    C:\Server\TestSite\DotNetNuke\Website\DesktopModules\VideoLinker\VideoDetail.ascx.cs    35   

Here are the headers:

ASCX file:

using System;
using System.Collections;
using System.Web.UI.WebControls;
// DNN
using DotNetNuke;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;


namespace CodexStar.Modules.VideoLinker
{

    /// -----------------------------------------------------------------------------
    /// <summary>
    /// The EditVideoLinker class is used to manage content
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// </history>
    /// -----------------------------------------------------------------------------
    partial class EditVideoLinker : PortalModuleBase
    {...}

}

CONTROLLER CLASS:

using System;
using System.Configuration;
using System.Data;
using System.Xml;
using System.Web;
using System.Collections.Generic;

using DotNetNuke;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Services.Search;
using DotNetNuke.Entities.Modules;

namespace CodexStar.Modules.VideoLinker
{

    /// -----------------------------------------------------------------------------
    /// <summary>
    /// The Controller class for VideoLinker
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// </history>
    /// -----------------------------------------------------------------------------
    public class VideoLinkerController
    {...}

}


Reference problems... Maybe I have done something wrong in the module creation procedure. Correct me please.

 

 


 

 

 
New Post
8/9/2009 4:46 PM
Accepted Answer 

Finally, I took the DLL from the project compiled under m odule creation template, in the bin folder, and I put it inside the bin folder of my test site.

I included this dll as a reference to the web site, rebuilt the solution, and it works!

 

 
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