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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryGallery : Gallery : 'GalleryConfig' is not declared
Previous
 
Next
New Post
8/9/2007 5:05 AM
 

I keep getting this error, nomatter what I do. I upgraded from standard forum, installed from scratch etc etc :

Error: Gallery is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: D:\Webdata\DotNetNuke\DesktopModules\Gallery\Container.ascx(6): error BC30451: Name 'GalleryConfig' is not declared. ---> System.Web.HttpCompileException: D:\Webdata\DotNetNuke\DesktopModules\Gallery\Container.ascx(6): error BC30451: Name 'GalleryConfig' is not declared. 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.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 ---

 Gallery Version : 04.03.00   (Jegers)

DNN version 04.05.03

Any clues please?

 
New Post
8/9/2007 3:50 PM
 

For those getting the "Name 'GalleryConfig' is not declared" error.  The problem was that I compiled the gallery against DNN 4.5.5, if you were running an older version of the gallery you would get an error (sorry).  I've posted a new version, which also lets you show/hide some more fields, removeal of the _source directory (source files are now stored in the main directory of the album), removal of the maintenance screen (nothing to maintain anymore, gallery is self-maintaining), and better support for Firefox.   www.Jegers.com

 

 
New Post
8/10/2007 3:57 AM
 

This works perfectly.

I had to uninstall the module first and then install the updated version in order to kill the error - but it has really helped.

Thank you very much for the great work you do.

Last question - this error has been around all the time. Annoying but not a showstopper. It still persist even in the updated version :

EventQueue.ProcessMessage: Message Processing Failed
ProcessorType: DotNetNuke.Entities.Modules.EventMessageProcessor, DotNetNuke
Body:
Sender:
BusinessControllerClass: DotNetNuke.Modules.Gallery.Controller, DotNetNuke.Modules.Gallery
DesktopModuleId: 103
UpgradeVersionsList: 04.00.00,04.02.00
ExceptionMessage: Object reference not set to an instance of an object.
Server Name: WEBSRV01

Regards

/Vels

 
New Post
8/10/2007 4:43 PM
 

Regarding your 2 questions:

The reason you had to uninstall the module and then reinstall to get the changes to apply was that I forgot to update the version number in the dll and therefore it wasn't upgraded during install.  But a fresh install got the file.  I made a note in my build instructions to not forget that in the future.

As for the "Message Processing Failed" message.  I really dug into the source for DNN and figured out how all that works (neat stuff, I really know a lot more about internal DNN processing now).  When DNN upgrades a module it queries the modules "BusinessControllerClass" to see if the module needs to run any "upgrade" code.  If the module says yes, DNN adds an "Event" to its queue of functions that it needs to call on that module.  From what I can see, neither the original 3.0.12 nor any of my versions implemented this feature, but for some reason DNN thought that it did and added an event to the queue to run.  So when it actually goes to run the event, it fails as it isn't implemented.  The "event" will only get cleared from the queue if it executes successfully.  Since it doesn't, it tries to keep running it over and over.

How to remove:  Go into your database in the table "EventQueue",look under the "attributes" column, and delete any rows that reference the gallery.  (In particular the ones where the "iscomplete" column is false.)

 

 
New Post
9/29/2007 8:42 PM
 

Hi James,

I just installed jegers gallery and when i add the modulle to a page this is the error that im getting. any ideas???

Error: Gallery is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at System.ThrowHelper.ThrowArgumentOutOfRangeException() at System.Collections.Generic.List`1.get_Item(Int32 index) at Jegers.Gallery.GalleryUserRequest..ctor(Int32 ModuleID, String Path) at Jegers.Gallery.Container.Initialize() --- End of inner exception stack trace ---

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryGallery : Gallery : 'GalleryConfig' is not declared


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