Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Object Reference Error on Folders
Last Post 02/18/2013 3:07 PM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Support Rogue Wave
New Member
New Member
Posts:11


--
02/05/2013 1:53 AM
Object Reference errors are showing up in the DNN logs. If you attempt to access a folder at the download.aspx address you get an error.

For example, http://www.roguewave.com/...oad.aspx?entryid=951

951 is actually a folder.

Accessing via a DMX page gives you the folder as expected, no error:

http://www.roguewave.com/...nts.aspx?EntryId=951

or (admin required):

http://www.roguewave.com/...ult.aspx?EntryId=951

This only seems to apply to folders. If a File EntryId is not found, the expected 404 page is returned.

Here is the full stacktrace:

[NullReferenceException: Object reference not set to an instance of an object.]
Bring2mind.DNN.Modules.DMX.Services.Storage.StorageProvider.InstanceByProviderId(Int32 ProviderId) +458
Bring2mind.DNN.Modules.DMX.Download.ᜂ() +9075
Bring2mind.DNN.Modules.DMX.Download.ᜁ(Object A_0, EventArgs A_1) +234
System.Web.UI.Control.LoadRecursive() +70
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3177


Note, you will only get the friendly error on the live site, so I included a dev site screenshot: http://prntscr.com/rlpzi
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
02/05/2013 8:23 PM
I'll look into this. Are you on version 6.1.3 of the module? And also: the expected behavior for you is to zip up and download or to just error out with a not found? I'm wondering what you're expecting from the module when a user requests to download a folder.

Peter
Support Rogue Wave
New Member
New Member
Posts:11


--
02/14/2013 12:20 AM
Currently 6.1.0. For our case, displaying the folder (or DMX root) using a redirect would be best. A 404 would work too I guess. Perhaps it needs to be an option as some would like to zip and download the folder?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
02/18/2013 3:07 PM
Could you tell me how you go to the download url? Which UI action took you there? If I try the regular Ajax UI here, I can only get there through right-click and selecting "zip and download" which takes one to download but with the following pattern:
GET /DesktopModules/Bring2mind/DMX/Download.aspx?language=en-US&Command=Core_Download&EntryList=ent1473&PortalId=0&TabId=81
And that pattern works fine.

Peter
You are not authorized to post a reply.