Hello Steve,
I have found a last problem... And after that, it should be ok...
Scenario:
- Use [URLCONTROLFILE] in FORM.HTML
- if a user with "UPLOAD ROLE" (but not a user with "Moderation role") upload a file in the repository folder. When the "moderation role" approve the item, the item is displaying correctly. Unfortunately, the reference to the item is LOST !
If you try to download the item, you have the following error message (in the event viewer):
AssemblyVersion: 04.05.05
PortalID: 0
PortalName: Declic Video FX | Hollywood FX | Pinnacle Studio | Vitascene | Heroglyph | Adorage | proDAD | Tutorials
UserID: 3
UserName: SuperDeclic
ActiveTabID: 56
ActiveTabName: Free HFX
RawURL: /Hollywood-FX/Free-HFX.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://declic-video-fx.com/Hollywood-FX/Free-HFX.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 9ee11c97-5a65-4c1f-b9f0-56c6929894b2
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Repository.RepositoryBL.DownloadFile
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.at DotNetNuke.Modules.Repository.RepositoryBL.DownloadFile(String ItemID, String target)at DotNetNuke.Modules.Repository.Repository.lstObjects_ItemCommand(Object source, DataGridCommandEventArgs e)at System.Web.UI.WebControls.DataGrid.OnItemCommand(DataGridCommandEventArgs e)at System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs e)at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source, EventArgs e)at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)--- End of inner exception stack trace ---
Source:
Server Name: DEDI542
Conclusion: you are obliged to EDIT the item before approving it (to re-record the correct reference to the file)...
Or, the user uploading the item must ensure that the file is correct (by opening again the drop down box). This is a very weird problem, I do not manage to reproduce it each time.
DV