Data/Sites/1/ folder is not writable

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/22/2009 8:15:51 AM
Gravatar
Total Posts 5

Data/Sites/1/ folder is not writable

I have done everything as per the installation instructions. It worked great on my local machine(on IIS 7). But on the server(IIS 6) I get this exception -

An Error Occurred:Access to the path 'D:\Webserver\mydomain.com\www\Data\Sites\1\skins' is denied.

Source:mscorlib

Stack Trace at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) at mojoPortal.Web.mojoSetup.CreateOrRestoreSiteSkins(Int32 siteId) at mojoPortal.Web.mojoSetup.EnsureSkins(Int32 siteId) at mojoPortal.Web.UI.Pages.SetupHome.RunSetup() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(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)

There is also a 'File system permissions problems found.' message. These are the folders mentioned,

Folder Details

  • The Data folder is not writable.
  • The Data/Sites/1/ folder is not writable
  • The Data/Sites/1/systemfiles/ folder is not writable
  • The Data/Sites/1/index/ folder is not writable
  • The Data/Sites/1/SharedFiles/ folder is not writable
  • The Data/Sites/1/SharedFiles/History/ folder is not writable
  •  I have checked and rechecked the folder permissions for Data and it's sub-folders. They all seem to have Read and Write permissions. Not sure where the permissions have gone whacky. Do I need to provide execute permissions to these folders?

    I have also tired the Medium trust instructions both, the config file and the theme file changes . But the results are same.

    The hosting details are as follows: OS - Windows 2003, Database - MSSQL 2003, IIS 6.0, Mojo  2.3.2.9

    Any help/suggestions/directions ?

    Thanks in advance

    MojoPortal rocks!

    P.S. - Please excuse the post subject, couldn't find a more appropriate one.

    11/22/2009 9:10:11 AM
    Gravatar
    Total Posts 18439

    Re: Data/Sites/1/ folder is not writable

    Hi,

    Those messages are telling you exactly what the problem is. The /Data folder needs to be writable by the web process user. Typically on Windows 2003 this will be the IIS_WPG user or Network Service user.

    Right click the /Data folder in windows explorer and grant the user full control. Then visit the setup page again.

    Hope it helps,

    Joe

    11/22/2009 9:21:37 AM
    Gravatar
    Total Posts 5

    Re: Data/Sites/1/ folder is not writable

    Thanks for your reply Joe. I thought the same, it looks obvious. I have emailed the hosting people already. Thought of double checking this. I basically have only control panel access to the folders, no explorer access. I uploaded the files using FTP and have set Read and Write permissions to Data and it's sub-folders and files. This is for all - the Owner, Group and Public.

    11/22/2009 9:23:10 AM
    Gravatar
    Total Posts 18439

    Re: Data/Sites/1/ folder is not writable

    You will also want to make the App_Data folder writable.

    Best,

    Joe

    11/22/2009 9:26:23 AM
    Gravatar
    Total Posts 5

    Re: Data/Sites/1/ folder is not writable

    It is. Did that too. No luck, same result.

    11/22/2009 9:28:40 AM
    Gravatar
    Total Posts 18439

    Re: Data/Sites/1/ folder is not writable

    Was just telling you that as an additional step for your host to do in addition to making /Data writable. Sometimes web control panels have the ability to set folder permissions but if not then your host will need to do it.

    Hope it helps,

    Joe

    11/22/2009 9:31:50 AM
    Gravatar
    Total Posts 5

    Re: Data/Sites/1/ folder is not writable

    I will make sure of that. Will post the outcome. Thank you for your suggestions.

    11/25/2009 6:41:40 PM
    Gravatar
    Total Posts 5

    Re: Data/Sites/1/ folder is not writable

    Fixed. The folder permissions it was. It seems, the hosting company was undergoing some maintenance and hence the permissions I was setting were getting reverted.

    Thanks a million.

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