Shared Files Module: Error when adding folder

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/22/2007 3:20:30 PM
Gravatar
Total Posts 80

Shared Files Module: Error when adding folder

1. Add folder to shared files module
2. See below stacktrace

There are is no "UploadDate" column in the SharedFileFolders db table.

-Jesse

Server Error in '/mojodev' Application.

Object cannot be cast from DBNull to other types.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Object cannot be cast from DBNull to other types.

Source Error:

Line 73: 						<ItemStyle HorizontalAlign="Right"></ItemStyle>
Line 74: <ItemTemplate>
Line 75: <%# Convert.ToDateTime(((System.Data.DataRowView)Container.DataItem)["modified"]).AddHours(timeOffset).ToString() %>
Line 76: </ItemTemplate>
Line 77: </asp:TemplateColumn>

Source File: c:\z_drive\mojoportal_2.x\Web\Modules\SharedFiles.ascx    Line: 75

Stack Trace:

[InvalidCastException: Object cannot be cast from DBNull to other types.]
System.DBNull.System.IConvertible.ToDateTime(IFormatProvider provider) +54
System.Convert.ToDateTime(Object value) +29
ASP.modules_sharedfiles_ascx.__DataBind__control24(Object sender, EventArgs e) in c:\z_drive\mojoportal_2.x\Web\Modules\SharedFiles.ascx:75
System.Web.UI.Control.OnDataBinding(EventArgs e) +99
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +206
System.Web.UI.Control.DataBind() +12
System.Web.UI.Control.DataBindChildren() +216
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
System.Web.UI.Control.DataBind() +12
System.Web.UI.Control.DataBindChildren() +216
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
System.Web.UI.Control.DataBind() +12
System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) +200
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) +1519
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +56
System.Web.UI.WebControls.BaseDataList.DataBind() +72
mojoPortal.Web.SharedFilesUI.SharedFilesModule.BindData() in C:\z_drive\mojoportal_2.x\Web\Modules\SharedFiles.ascx.cs:161
mojoPortal.Web.SharedFilesUI.SharedFilesModule.Page_Load(Object sender, EventArgs e) in C:\z_drive\mojoportal_2.x\Web\Modules\SharedFiles.ascx.cs:72
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
1/22/2007 3:24:03 PM
Gravatar
Total Posts 80

Re: Shared Files Module: Error when adding folder

Note that I broke the demo site while testing this bug...sorry. Had to test the repository code base because my shared files module code has been extended.

-Jesse
1/22/2007 3:40:56 PM
Gravatar
Total Posts 18439

Re: Shared Files Module: Error when adding folder

This is fixed in svn and on the demo site.

Thanks,

Joe
You must sign in to post in the forums. This thread is closed to new posts.