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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN 3.2.2 Critical ErrorDNN 3.2.2 Critical Error
Previous
 
Next
New Post
2/9/2006 10:36 PM
 

A humble appeal to all DNN Gurus...  

All of a sudden one of my portals is displaying a message after selecting a folder in the logo file dialog from the  Admin/Site settings tab.  Critical Error:  Folder. 

This error is displayed when the site settings tab loads. 

I also notice this error on various other tabs where file controls exist: 

Your help is greatly appreciated!!!!

Sal

  Appearance


File Location:

File Name:

Upload New FileUpload Selected File
Select An Existing File


An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Folder ---> System.IndexOutOfRangeException: Folder at System.Data.Common.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at DotNetNuke.Common.Globals.GetFileList(Int32 PortalId, String strExtensions, Boolean NoneSpecified, String Folder, Boolean includeHidden) at DotNetNuke.UI.UserControls.UrlControl.GetFileList(String strExtensions, Boolean NoneSpecified, String Folder) at DotNetNuke.UI.UserControls.UrlControl.ShowControls() at DotNetNuke.UI.UserControls.UrlControl.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---


File Location:

File Name:

Upload New FileUpload Selected File
Select An Existing File


An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Folder ---> System.IndexOutOfRangeException: Folder at System.Data.Common.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at DotNetNuke.Common.Globals.GetFileList(Int32 PortalId, String strExtensions, Boolean NoneSpecified, String Folder, Boolean includeHidden) at DotNetNuke.UI.UserControls.UrlControl.GetFileList(String strExtensions, Boolean NoneSpecified, String Folder) at DotNetNuke.UI.UserControls.UrlControl.ShowControls() at DotNetNuke.UI.UserControls.UrlControl.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

 
New Post
2/10/2006 12:05 AM
 

Bad Sal, bad bad Sal... *grin*

This one is simple.  You deleted a file in the file system directly that had already been synched in the DNN database ( rather than deleting it through the File Manager ).  Likely the file that would normally appear as the first ( and thus selected ) item in the picker.  I'm guessing this file was probably aspnet.gif or one of those.  The easiest thing to do would be to put those back, and then delete them through the file manager... otherwise you have a little hunt and peck to do through the DB table to delete entries you know are no longer there.

You might be tempted to ask why we don't handle this for you on the synch.  But the reason is simply that although synching the addition of new files is pretty straightforward, understanding why a file does not exist can be much harder ( it could be moved or renamed ).  And for existing files, which may already be linked to other things... we just don't force that.  I'm sure there's room for enhancement in here... but its not my area so I can't speak to it directly.

Cheers


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
2/10/2006 7:22 AM
 

Thank you Mr Swoop... a little more info for you.  The plot thickens.

Since this is a fairly new and controlled environment - only one user who has access to the os - (me, bad, bad Sal).  I can say with (reasonable assuredness) that I haven't deleted any files (to the best of my recollection).  I have added applications to the server and perhaps something got moved or changed by the process.  I have added a new mail server program and a new version of antivirus. Hmm.. I checked antivirus and it didn't quarantine anything in dnn. I have also added only a single new file through DNN.  I have checked out the "files" table and all rows containing portalid contain valid portalids.    The error appears in all portals, so I am assuming it's at the host level. Is this a correct assumption? Should I only be checking the default host's files?  I will reconcile the differences for files named in the dbo.files table with the physical file, but it's going to take some time... there are hundreds of them with a portal id of "null".   Your help is greatly appreciated.... 

Bad Sal.. (hey, I kind of like that handle!)

 

 
New Post
2/10/2006 1:25 PM
 

Still more info..

Ok... so here's the latest.  I have gone through (file by file) in the files table and the folders table and reconciled each entry to a physical file/folder under the dnn/portals structure.   There were a couple of references for folders in the folders table that did not exist in the directory... a few portals had the /skins folder that did not exist on disk.  So, I removed the rows from the database.   I am still getting the error referenced in the beginning of this thread.   So, I restored the database back to a prior date and copied the dotnetnuke directory from an earlier point in time, and I still get the error.   Could it be that there is something else happening to cause this?   The error appears anywhere in a DNN portal where there is a  file lookup control.   Otherwise, the file manager and all other aspects of the portals are working fine.   Here's the error when navigating to the site settings tab and the error for after selecting a folder from file location listbox control:

  Basic Settings

In this section, you can set up the basic settings for your site.
  Site Details




  Appearance

File Location:

File Name:

Upload New FileUpload Selected File
Select An Existing File


An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Folder ---> System.IndexOutOfRangeException: Folder at System.Data.Common.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at DotNetNuke.Common.Globals.GetFileList(Int32 PortalId, String strExtensions, Boolean NoneSpecified, String Folder, Boolean includeHidden) at DotNetNuke.UI.UserControls.UrlControl.GetFileList(String strExtensions, Boolean NoneSpecified, String Folder) at DotNetNuke.UI.UserControls.UrlControl.ShowControls() at DotNetNuke.UI.UserControls.UrlControl.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

 

And from after the file location listbox control:

   You are here:  AdminSite Settings   
A critical error has occurred.
Folder

   
 
Site Settings   
  Basic Settings

In this section, you can set up the basic settings for your site.
  Site Details




  Appearance

File Location:

File Name:

Upload New FileUpload Selected File
Select An Existing File


An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Folder ---> System.IndexOutOfRangeException: Folder at System.Data.Common.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at DotNetNuke.Common.Globals.GetFileList(Int32 PortalId, String strExtensions, Boolean NoneSpecified, String Folder, Boolean includeHidden) at DotNetNuke.UI.UserControls.UrlControl.GetFileList(String strExtensions, Boolean NoneSpecified, String Folder) at DotNetNuke.UI.UserControls.UrlControl.ShowControls() at DotNetNuke.UI.UserControls.UrlControl.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

 

 

 
New Post
2/10/2006 5:50 PM
 

Sal, hope you realize I'm just poking fun at you... I've done the same thing myself a few times and wind up looking in the mirror saying "Bad, bad Scott"...

Any chance your cache is still intact?  Did you restart the application?


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN 3.2.2 Critical ErrorDNN 3.2.2 Critical Error


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