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 ForumsGalleryGalleryUnable to cast object of type Unable to cast object of type 'ASP.default_aspx' to type 'DotNetNuke.Modules.Gallery.Container'.
Previous
 
Next
New Post
11/12/2005 11:24 PM
 

Recently I started getting this error upon visiting a page with a gallery module installed:

A critical error has occurred.
Unable to cast object of type 'ASP.default_aspx' to type 'DotNetNuke.Modules.Gallery.Container'.

I upgraded to DNN v4.0, but the error persists...

In the logs, I see this entry:

AssemblyVersion: 04.00.00
Method: DotNetNuke.Modules.Gallery.WebControls.Pager.Page_Load
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: Marquette Area Public Schools
UserID: -1
UserName:
ActiveTabID: 228
ActiveTabName: AHS Image Gallery
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
ExceptionGUID: 4b56b432-b489-4f04-990c-2494c553d4a3
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Unable to cast object of type 'ASP.default_aspx' to type 'DotNetNuke.Modules.Gallery.Container'.
Message: DotNetNuke.Services.Exceptions.PageLoadException: Unable to cast object of type 'ASP.default_aspx' to type 'DotNetNuke.Modules.Gallery.Container'. ---> System.InvalidCastException: Unable to cast object of type 'ASP.default_aspx' to type 'DotNetNuke.Modules.Gallery.Container'. at DotNetNuke.Modules.Gallery.WebControls.Pager.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: WEBSERVER

How do I fix this without losing all the images entered into this gallery?

 
New Post
11/15/2005 4:44 AM
 
i tried 4.0 too (Clean install) with gallery module and same error
 
New Post
12/14/2005 1:29 PM
 
Anything new on this? I get the same problem using DNN 4.0.1 Here's my log AssemblyVersion: 04.00.01 Method: DotNetNuke.Modules.Gallery.WebControls.Pager.Page_Load FileName: FileLineNumber: 0 FileColumnNumber: 0 PortalID: 0 PortalName: XXXXXXXXXXXXXXXXXXXXX UserID: 1 UserName: host ActiveTabID: 58 ActiveTabName: Gallery AbsoluteURL: /Default.aspx AbsoluteURLReferrer: http://alumni.ksdelta.org/Guestbook/tabid/58/Default.aspx ExceptionGUID: d67c6acf-4a11-445d-9844-cfca29bb456d DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider InnerException: Unable to cast object of type 'ASP.default_aspx' to type 'DotNetNuke.Modules.Gallery.Container'. Message: DotNetNuke.Services.Exceptions.PageLoadException: Unable to cast object of type 'ASP.default_aspx' to type 'DotNetNuke.Modules.Gallery.Container'. ---> System.InvalidCastException: Unable to cast object of type 'ASP.default_aspx' to type 'DotNetNuke.Modules.Gallery.Container'. at DotNetNuke.Modules.Gallery.WebControls.Pager.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- StackTrace: Source: Server Name: DEDI376
 
New Post
12/14/2005 4:29 PM
 
I receive the same error with the exception that I installed this module into a clean DNN 4.01 instance and new database.  Any ideas?
 
New Post
12/16/2005 12:45 PM
 

I get this error too.

Any updates?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryUnable to cast object of type Unable to cast object of type 'ASP.default_aspx' to type 'DotNetNuke.Modules.Gallery.Container'.


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