error on write cache?

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.
9/24/2010 5:10:50 PM
Gravatar
Total Posts 37

error on write cache?

2010-09-24 18:06:32,218 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2010-09-24 18:08:27,250 INFO mojoPortal.Web.Global - Application Started.
2010-09-24 18:08:35,828 ERROR mojoPortal.Business.WebHelpers.CacheHelper - System.UnauthorizedAccessException: Access to the path 'C:\Inetpub\wwwroot\mojoportal\Data\Sites\1\systemfiles\themecachedependecy.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) 

Joe I do not even know where to begin on how to fix this

9/24/2010 5:12:42 PM
Gravatar
Total Posts 37

Re: error on write cache?

error started after I allowed each page to have its own theme!

9/25/2010 8:03:03 AM
Gravatar
Total Posts 18439

Re: error on write cache?

If you've moved your site or changed the application pool, you may need to delete all the files under /Data/Sites/1/systemfiles

as long as the folder is writable the files will come back on their own. For more info see:

http://www.mojoportal.com/moving-an-installation-of-mojoportal-to-a-different-server.aspx

Hope it helps,

Joe

9/26/2010 1:11:58 PM
Gravatar
Total Posts 37

Re: error on write cache?

Joe, The problem is triggered when on new pages the option for :

allow browser caching and a separate skin is used for that particular page.

The moment allow browser caching is unchecked the error disappears.

If browser caching is on and default skin is used. No error is generated.

By the way, I do not see any errors on the site, only on the report?

Hope this helps.

9/28/2010 6:36:44 AM
Gravatar
Total Posts 18439

Re: error on write cache?

Sorry, but I cannot reproduce the problem. I still say the error message is indicative of a file system permission problem

if the file exists C:\Inetpub\wwwroot\mojoportal\Data\Sites\1\systemfiles\themecachedependecy.config

delete it

if it does not exist then the folder is not writable by the web process

if it does not come back after deleting it then the folder is not writable by the web process

Hope it helps,

Joe

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