Hi,
I've been building a custom module on DNN 5, and when I install and run it locally, everything is fine. No problems at all. I'm using the starter kit in VS 2008 Express.
But when the module gets loaded onto a server with a DNN 5 installation, it installs fine, but when I place it on a page, an error pops up.
Here's the text of the error. I've bolded what I think are the relevant parts:
DotNetNuke.Services.Exceptions.ModuleLoadException: C:\Web 2\AR-Clients\DesktopModules\WebQuote1\AddWebQuote.ascx(1): error BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.desktopmodules_webquote1_addwebquote_ascx'. ---> System.Web.HttpCompileException: C:\Web 2\AR-Clients\DesktopModules\WebQuote1\AddWebQuote.ascx(1): error BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.desktopmodules_webquote1_addwebquote_ascx'. 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) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---
I've must have read over 50 posts with similar problems, but none have rectified it. There aren't any namespace problems, the web control references the correct code-behind-class, I'm compiling against the 3.5 framework. I've spent 2 days on this error and it's a bit frustrating :-)
If anyone has any suggestions it would be much appreciated. Thanks.