Hello, A user reported an issue to me where he is getting the following error message from a module I wrote: (I have bolded what I believe the issue is)
Error: Default is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: d:\hosting\admintroop3740\home\DesktopModules\csClassifieds\Classifieds.ascx(9): error BC30456: 'Page' is not a member of 'ASP.desktopmodules_csclassifieds_classifieds_ascx'. ---> System.Web.HttpCompileException: d:\hosting\admintroop3740\home\DesktopModules\csClassifieds\Classifieds.ascx(9): error BC30456: 'Page' is not a member of 'ASP.desktopmodules_csclassifieds_classifieds_ascx'. at System.Web.Compilation.AssemblyBuilder.Compile() 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.Compilation.BuildManager.GetVPathBuildResultWithAssert(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 --
The error seems to be cause by my code:
If Not Page.IsPostBack Then
The user is running dnn 4.8. Can anyone tell me why the Page object may not be available?