Browser is Runtime Error - FileNotFoundException

Dec 12, 2011 at 7:00 AM
Edited Dec 12, 2011 at 7:01 AM

Browser is Runtime Error with following error in event log:

@Tha_Watcha: You are missing try catch in somewhere??

Event Type: Warning

Event Source: ASP.NET 2.0.50727.0

Event Category: Web Event

...

Event message: An unhandled exception has occurred. 

...

Exception information:    

  • Exception type: FileNotFoundException    
  • Exception message: Could not find file 'C:\Inetpub\vhosts\mydomain.com\httpdocs\CDN\4D\Logo.png'.  

 

Request information:    

  • Request URL: http://mydomain.com/Providers/HtmlEditorProviders/CKEditor/Browser/Browser.aspx?Type=Image&tabid=1756&porid=40&mid=4501&ckid=txtContent&CKEditor=dnn_ctr4501_EditHTML_txtContent_txtContent&CKEditorFuncNum=2&langCode=vi    
  • Request path: /Providers/HtmlEditorProviders/CKEditor/Browser/Browser.aspx    

...

Thread information:    

  • Thread ID: 1    
  • Thread account name: NT AUTHORITY\NETWORK SERVICE    
  • Is impersonating: False    

Stack trace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   at WatchersNET.CKEditor.Browser.Browser.FilesGridView_RowDataBound(Object sender, GridViewRowEventArgs e)   at System.Web.UI.WebControls.GridView.OnRowDataBound(GridViewRowEventArgs e)   at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource)   at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)   at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()   at System.Web.UI.WebControls.GridView.DataBind()   at WatchersNET.CKEditor.Browser.Browser.ShowFilesIn(String dir)   at WatchersNET.CKEditor.Browser.Browser.Page_Load(Object sender, EventArgs e)   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)   at System.Web.UI.Control.OnLoad(EventArgs e)   at System.Web.UI.Control.LoadRecursive()   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  

Dec 12, 2011 at 7:09 AM

i think it not compatible with DNN File system, error orcue when the file exist in database but not exist in physical disk.

Dec 12, 2011 at 7:21 AM

i think in Current Directory info, do not show full absolute path: C:\Inetpub\vhosts\mydomain.com\httpdocs\CDN\4D\Logo.png

Only show relative path info same: ...\CDN\4D\Logo.png

Coordinator
Dec 12, 2011 at 5:52 PM
thienvc wrote:

i think it not compatible with DNN File system, error orcue when the file exist in database but not exist in physical disk.

Yes that happens when a file is deleted outside of dnn, and the file system is not synced. I almost forget about that error. I fix that in the next Version.