Unable to Delete, Restore or Update in Shared File Module

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/15/2012 1:01:29 PM
Gravatar
Total Posts 9
Robert

Unable to Delete, Restore or Update in Shared File Module

I'm attempting to move my instance of Mojo to a new server.  

As far as I can tell, everything is working except I can't delete, restore or update files that exist in the Shared File module I copied over along with the rest of the old file structure (data is being stored on a production sql server).

I can upload and delete new files to the module, and can even download any of the old versions of existing files.

When I attempt to delete or restore I see errors like this in the log, any help is much appreciated.

2012-06-15 10:47:10,672 ERROR 10.10.40.17 - en-US - /Portal/SharedFiles/Edit.aspx?pageid=2&ItemID=215~file&mid=2 - mojoPortal.Web.Global -  Referrer(http://10.20.10.140/Portal/SharedFiles/Edit.aspx?pageid=2&ItemID=215~file&mid=2)
System.UnauthorizedAccessException: Access to the path 'D:\wwwroot\Portal\Data\Sites\1\SharedFiles\History\f1703904-9a76-4f72-90af-a76fe57d8aa0.config' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.Delete(String path)
   at mojoPortal.FileSystem.DiskFileSystem.DeleteFile(String virtualPath)
   at mojoPortal.Web.SharedFilesUI.SharedFilesHelper.DeleteHistoryFile(Int32 id, IFileSystem fileSystem, String virtualHistoryPath)
   at mojoPortal.Web.SharedFilesUI.SharedFilesEdit.grdHistory_RowCommand(Object sender, GridViewCommandEventArgs e)
   at System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup)
   at System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

6/15/2012 1:07:47 PM
Gravatar
Total Posts 18439

Re: Unable to Delete, Restore or Update in Shared File Module

You need to make sure that the windows user that is the identity on the application pool has full control file system permissions on the /Data folder and all child folders and files, as well as on the /App_Data folder.

You may have set the permissions on the folders but it apparently did not propagate write permissions to the existing files. You'll need to update the permissions on the affected files.

Hope that helps,

Joe

6/15/2012 3:27:00 PM
Gravatar
Total Posts 9
Robert

Re: Unable to Delete, Restore or Update in Shared File Module

Thanks Joe...Looks like I made sure everything had write permissions, but not modify...hence not being able to modify the existing files.

 

Thanks again.

Robert

 

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