Hello,
I created my first module. It is using an Ajax timer to refresh some text. I'm able to package it up and move it to another host and install it without issue. However, when I try to follow the instructions on precompiling the code located here.
, I get the following error when I install the new precompiled module.
I'm not clear as to what it's complaining about. It doesn't seem to like the compiled Timer control. I did check-off 'Allow this precompiled site to be updatable' and 'Use fixed naming and single pass assemblies'
I realize it's not telling me much, if anyone has any ideas as to what the problem might be or what I could try, I'm all ears. I worked on it for awhile yesterday and gave up and went to bed, and now I'm back at it this morning. I just can't make heads or tails of what the error is trying to tell me.
Thanks
Kevin J Baird
DotNetNuke.Services.Exceptions.ModuleLoadException: The base class includes the field 'Timer1', but its type (System.Web.UI.Timer) is not compatible with the type of control (System.Web.UI.Timer). ---> System.Web.HttpParseException: The base class includes the field 'Timer1', but its type (System.Web.UI.Timer) is not compatible with the type of control (System.Web.UI.Timer). ---> System.Web.HttpParseException: The base class includes the field 'Timer1', but its type (System.Web.UI.Timer) is not compatible with the type of control (System.Web.UI.Timer). at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) --- End of inner exception stack trace --- at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(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 System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---