Access to the path 'C:\...\Data\Sites\9\systemfiles\sitesettingscachedependecy.config' is denied?

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.
7/21/2009 10:26:48 AM
Gravatar
Total Posts 112

Access to the path 'C:\...\Data\Sites\9\systemfiles\sitesettingscachedependecy.config' is denied?

I've been trying to correct an error that occures when I create or update a page using

System Information
mojoPortal Version 2.2.7.9 MSSQL
Server Time Zone: Central Daylight Time
Server Local Time: 7/21/2009 10:21:54 AM
Current Time in Greenwich (aka GMT or UTC): 7/21/2009 3:21:54 PM
Server GMT Offset: -5
Preferred GMT Offset Web.config Setting:

The error.htm is

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

currentlog.config contains:

2009-07-21 10:17:54,744 ERROR mojoPortal.Web.Global - 24.160.150.149-en-US - /cms/Admin/PageSettings.aspx?pageid=113
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.UnauthorizedAccessException: Access to the path 'C:\webroot\MW\Default\c1\cms\Data\Sites\9\systemfiles\sitesettingscachedependecy.config' is denied.
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, Int32 bufferSize)
at System.IO.File.OpenFile(String path, FileAccess access, SafeFileHandle& handle)
at System.IO.File.SetLastWriteTimeUtc(String path, DateTime lastWriteTimeUtc)
at mojoPortal.Business.WebHelpers.CacheHelper.TouchCacheFile(String pathToCacheFile)
at mojoPortal.Business.WebHelpers.CacheHelper.TouchSiteSettingsCacheDependencyFile()
at mojoPortal.Web.AdminUI.PageProperties.SavePageData()
at mojoPortal.Web.AdminUI.PageProperties.Apply_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.admin_pagesettings_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

IIS is running as Local System Account, and I've setup permissions for NETWORK, NETWORK SERVICE, SYSTEM, and even EVERYONE to have full permissions.

I guess I'm just a little confused!

I look forward to hearing from you,
Dale E. Moore

7/21/2009 11:49:52 AM
Gravatar
Total Posts 18439

Re: Access to the path 'C:\...\Data\Sites\9\systemfiles\sitesettingscachedependecy.config' is denied

Hi Dale,

If you moved the site from one server to another then the existing files may have some funky permissions.

I would try deleting all the files from  C:\webroot\MW\Default\c1\cms\Data\Sites\9\systemfiles\

If the folder permissions are correct then the system should be able to re-create the files as needed.

Hope it helps,

Joe

7/23/2009 4:01:40 PM
Gravatar
Total Posts 112

Re: Access to the path 'C:\...\Data\Sites\9\systemfiles\sitesettingscachedependecy.config' is denied

Dear Joe;

Your suggestion to delete all files worked perfectly and I have had no failure since.

Thank you,
Dale E. Moore 

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