0 | |
|
I've created an "empty" module, placed it on a page and get the error below. Included are source files. The other odd thing is that the module shows up twice on the page.
Any ideas?
Kevon
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.Web.HttpException: Multiple controls with the same ID 'ctr360_DD' were found. FindControl requires that controls have unique IDs. at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id) at DotNetNuke.Common.Globals.FindControlRecursive(Control objControl, String strControlName) in C:\!!DNN!!\components\Shared\Globals.vb:line 1488 at DotNetNuke.UI.Utilities.DNNClientAPI.EnableContainerDragAndDrop(Control objTitle, Control objContainer, Int32 ModuleID) in C:\!!DNN!!\components\Shared\ClientAPI.vb:line 88 at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in C:\!!DNN!!\admin\Skins\Skin.vb:line 550 --- End of inner exception stack trace ---
the ENTIRETY of the .ascx file is this
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ViewRandomImage.ascx.cs" Inherits="kh.dnn.modules.RandomImage.ViewRandomImage" %>
the ENTIRETY of the .cs file is this
namespace kh.dnn.modules.RandomImage
{
using System; using System.Web; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using DotNetNuke.Entities.Modules; //other using statements cut
public class ViewRandomImage : PortalModuleBase //in the tutorial this was DotNetNuke.PortalModuleControl but that dosn't exist anymore???? { private void Page_Load(object sender, System.EventArgs e) {} override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } } }
Kevon |