Shared Files Module don't delete files

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.
3/5/2011 5:41:09 AM
Gravatar
Total Posts 16

Shared Files Module don't delete files

Shared Files Module works fine when I load files but I can't delete or replace them.

I have this error message (in italian):

---

Errore server nell'applicazione '/'.
Impossibile trovare una parte del percorso.
Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere l'analisi dello stack.

Dettagli eccezione: System.IO.DirectoryNotFoundException: Impossibile trovare una parte del percorso.

Errore nel codice sorgente:

Durante l'esecuzione della richiesta Web corrente è stata generata un'eccezione non gestita. Per informazioni sull'origine e la posizione dell'eccezione, vedere l'analisi dello stack dell'eccezione riportata di seguito.

Analisi dello stack:

[DirectoryNotFoundException: Impossibile trovare una parte del percorso.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7716485
   System.IO.__Error.WinIOError() +33
   System.IO.File.Move(String sourceFileName, String destFileName) +257
   mojoPortal.Business.SharedFile.CreateHistory(String sourceFilePath, String historyFolderPath) +89
   mojoPortal.Web.SharedFilesUI.SharedFilesEdit.btnDeleteFile_Click(Object sender, EventArgs e) +119
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Informazioni di versione: Versione di Microsoft .NET Framework:2.0.50727.3615; Versione di ASP.NET:2.0.50727.3618

---

System informations:
mojoPortal 2.3.6.2 MSSQL
S.O. Microsoft Windows NT 5.2.3790 Service Pack 2
ASP.NET v2.0.50727 in 'Partial Trust'
W. Europe Standard Time

Thank you.

3/5/2011 6:08:07 AM
Gravatar
Total Posts 18439

Re: Shared Files Module don't delete files

I suspect you have a file/folder permissions problem so it cannot create the history folder.

It should try to create one at /Data/Sites/[SiteID]/SharedFiles/History

but it will fail if file and folder permissions don't allow it.

Best,

Joe

3/5/2011 11:40:56 AM
Gravatar
Total Posts 16

Re: Shared Files Module don't delete files

Thank you Joe but I checked. The /Data folder and subfolders permissions appear set up correctly as writable. I'm beginning to worry :)

3/5/2011 11:48:21 AM
Gravatar
Total Posts 18439

Re: Shared Files Module don't delete files

I believe you that you think the permissions are correct but the evidence says not. You should check that the permissions are propagating down to child folders and files below /Data correctly.

ie clearly /Data/Sites/1/index is not writable

and it seems it cannot create folders below /Data/Sites/1/SharedFiles

You could try manually creating the folder History under /Data/Sites/1/SharedFiles

Hope it helps,

Joe

 

3/6/2011 4:42:43 AM
Gravatar
Total Posts 16

Re: Shared Files Module don't delete files

It works! A beer is coming.
I see the permissions set correctly and I can't do anything else. What should I do? I have to change hosting?

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