Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0the ASP.Net Page Object seems to be missing?the ASP.Net Page Object seems to be missing?
Previous
 
Next
New Post
3/3/2009 7:05 PM
 

Hello, I hope someone can help with this one.  It really has me scratching my head.  I have written a module that runs perfectly on my development machine and also on a production server.  Both of those machines are running 04.09.02.  When I try to install the Private Assembly version of my module on 04.09.01 I get the following error:

DotNetNuke.Services.Exceptions.ModuleLoadException: e:\hosting\member\comsite02\dnn\DesktopModules\csClassifieds\Classifieds.ascx(9): error BC30456: 'Page' is not a member of 'ASP.desktopmodules_csclassifieds_classifieds_ascx'. ---> System.Web.HttpCompileException: e:\hosting\member\comsite02\dnn\DesktopModules\csClassifieds\Classifieds.ascx(9): error BC30456: 'Page' is not a member of 'ASP.desktopmodules_csclassifieds_classifieds_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 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 line it is erroring out on is simply:  If not page.isPostback then

Does anyone know of any reason why this may occur?  I am wondering if it has something to do with the compiled DLL files referencing something in the DNN build that changes between versions??  But I am just grasping at straws...

 
New Post
3/4/2009 12:57 AM
 

well i think error says it all but try me.page.isPostbak , i think that will help.

Because ascx control is inherited from portalmodulebase and you can access page object by using Me.

 


Find out code snippets, tutorials and How Tos' about dotnetnuke at lakhlaniprashant.blogspot.com Umlimited wedding planning tips, free wedding websites and more at http://www.FirstPhera.com an indian dotnetnuke portal dedicated to wedding planning!
 
New Post
3/4/2009 5:24 PM
 

Well, I believe by default everything within the ME object is always in scope anyway.  But, I tried your solution and it did not help.  Just to narrow things down a bit, I created only one reference to the page object:

Dim oPage As Web.UI.Page = Me.Page

This still throws the error.  Maybe it has to do with the way my development machine is setup?  I followed the instructions in Michael Washington's PDF on DotNetNuke Module development.  So, I have the Install version of DNN installed.  I open the DNN website into VS 2008.  Then to create a new module, I right click the project and select Add New Item and choose DotNetNuke Dyanmic Module from the templates.  So, I don't have a seperate project for my module but rather it's part of the website project.  Then to distribute it, I am publishing the site and copying the necessary DLL files into my install zip.  Could this cause my module to be dependant on a specific version of the DotNetNuke.dll or something like that?

Please help, I have no idea where to even look for the answer to this issue.

 
New Post
3/4/2009 6:01 PM
 

Alright, I found this older thread that states you must set "Specific Version" = False for the reference to the DotNetNuke.dll

I am not sure how to do that when my module is part of the website project. 

Is there something in the web.config, or is there a different way I should be setting up my module development projects (IE: stand alone)?

 
New Post
3/6/2009 2:25 PM
 

Okay, so my suspicions were right.  It's a BAD idea to create your module by "Open Web Site" in visual studio, and then begin creating the module files in the website.  Even though you can publish the site, copy all the dll files from the publish folder and create a distributable module (as per Michael Washingtons instructions).  DONT DO IT!

Instead, download the source for the most recent version of DNN and the Starter Kit.  Then, open the VS Solution file from the source, and Add a new project to the solution.  The project will be the DotNetNuke Compiled Module template that gets installed by the starter kit.  Once I did that, now I have references in my project to the DNN dll files and I can specify Specific Version = False.

I am posting this just in case it may be helpful to someone else down the line.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0the ASP.Net Page Object seems to be missing?the ASP.Net Page Object seems to be missing?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out