#
Nicole
As a means of learning the module system, I'm attempting to create a really simple module by following the module development instructions. However, I keep getting the following error and stack trace:
Any ideas? I have a very simple "Hello World" control, module code-behind, and module controller. Could there be a problem with my codebehind file not being recognized properly?
Unable to cast object of type 'ASP.modules_imagecontrol_web_imagecontrol_ascx' to type 'Cuyahoga.Web.UI.BaseModuleControl'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Unable to cast object of type 'ASP.modules_imagecontrol_web_imagecontrol_ascx' to type 'Cuyahoga.Web.UI.BaseModuleControl'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Unable to cast object of type 'ASP.modules_imagecontrol_web_imagecontrol_ascx' to type 'Cuyahoga.Web.UI.BaseModuleControl'.]
Cuyahoga.Web.UI.PageEngine.LoadModuleControl(ModuleBase module) in X:\WWWROOT\cuya\Web\UI\PageEngine.cs:325
Cuyahoga.Web.UI.PageEngine.CreateModuleControlForSection(Section section) in X:\WWWROOT\cuya\Web\UI\PageEngine.cs:317
Cuyahoga.Web.UI.PageEngine.LoadContent() in X:\WWWROOT\cuya\Web\UI\PageEngine.cs:285
Cuyahoga.Web.UI.PageEngine.OnInit(EventArgs e) in X:\WWWROOT\cuya\Web\UI\PageEngine.cs:225
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692Any ideas? I have a very simple "Hello World" control, module code-behind, and module controller. Could there be a problem with my codebehind file not being recognized properly?