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.0Quote of day moduleQuote of day module
Previous
 
Next
New Post
5/29/2008 3:14 AM
 

Hey Bill,

Downloaded the souce and ran an install against my 4.8.3 .net 3.5 test site and get thown errors when 
I try to create a new item etc

Error: Add/Edit ContentDejour is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: C:\wwwbtcdev\www\DesktopModules\WESNet_ContentDejour\EditContentDejour.ascx.vb(411): error BC30451: Name 'ModuleController' is not declared. ---> System.Web.HttpCompileException: C:\wwwbtcdev\www\DesktopModules\WESNet_ContentDejour\EditContentDejour.ascx.vb(411): error BC30451: Name 'ModuleController' is not declared. 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.GetVPathBuildResult(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 ---

When i look at the source - line 411 of the editmodule shows a reference to

ModuleController.SynchronizeModule(ModuleId)

Changed code to explicitly reference the namespace path

DotNetNuke.Entities.Modules.ModuleController.SynchronizeModule(ModuleId)

Works well now

Westa

 
New Post
5/29/2008 7:57 AM
 

Hi Westa,

Thanks for spotting that namespace error. My development install and unfortunately all of installations including my own website on which I tested the module all include in the \bin a dll of utilities having a WESNet.DNN.Modules namespace which I refer to in many of my modules. This was allowing me to reference the ModuleController class indirectly so that it not only showed up in VS2008 intellesense but was accessible in the test installs without being fully qualified. Not picking up on this at compile time is one of the reasons I don't normally like to use the dynamically-compiled (WSP) model for module distribution.

I have corrected the error in the release package at www.codeplex.com/contentdejour

 


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
5/29/2008 9:08 AM
 

cheers

 
New Post
5/30/2008 1:56 PM
 

I've setup the News module to display a "Quote of the day" using quotes from QuoteDB.com.  Their quote generator will make a URL that returns an RSS feed contain a single item, different each day.  I then created a simple XSL transform file that displays the quote.  I'm now real good with XSL so this could probably be even simplier but it does work.  I put it in a marque tag (by client request and agianst my better judgment) but you can take that out and change the styling as you see fit.  Here is the XSL, save this to a file on you DNN site and point the News module at it.

 

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" indent="yes"/>
  <!-- RSSv2.0 XSL to display a single "quote" from www.QuoteDB.com -->
  <xsl:template match="title" />
  <xsl:template match="link" />
  <xsl:template match="description" />
  <xsl:template match="language" />
  <xsl:template match="webMaster" />
  <xsl:template match="managingEditor" />
  <xsl:template match="pubDate" />
  <xsl:template match="lastBuildDate" />
  <xsl:template match="image" />

  <xsl:template match="item">
    <div class="Normal" style="font-size: 18px">
      <MARQUEE scrollAmount="3" scrollDelay="1">
        <xsl:value-of select="description" disable-output-escaping="yes"/>
        by <xsl:value-of select="title" disable-output-escaping="yes"/>
      </MARQUEE>
    </div>
  </xsl:template>
</xsl:styleshee

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Quote of day moduleQuote of day module


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