Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Intermittent Caching Error on Web FarmIntermittent Caching Error on Web Farm
Previous
 
Next
New Post
3/13/2008 7:27 AM
 

Hi,

I'm getting an intermittent problem in my Web Farmm enabled DNN 4.6.2 installation. It can occur in any part of the application .... Esentially the event view shows the following error/trace.

ModuleId: 439
ModuleDefId: 99
FriendlyName: Site Map
ModuleControlSource: DesktopModules/DNNMasters_SiteMap/SiteMap.ascx
AssemblyVersion: 04.06.02
PortalID: 3
PortalName
UserID: 1
UserName: host
ActiveTabID: 102
ActiveTabName: Site Map
RawURL: /FooterMenu/SiteMap/tabid/102/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.obsrfundratings.co.uk/registered/Home/tabid/82/Default.aspx
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/523.15.1 (KHTML, like Gecko) Version/3.0.4 Safari/523.15
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 22ca6117-02e6-4ba0-9398-995a5a89a2ff
InnerException: The process cannot access the file 'D:\WebFiles\Fundratings\Portals\_default\Cache\VGFiczM=.resources' because it is being used by another process.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.__Error.WinIOError
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The process cannot access the file 'D:\WebFiles\Fundratings\Portals\_default\Cache\VGFiczM=.resources' because it is being used by another process. ---> System.IO.IOException: The process cannot access the file 'D:\WebFiles\Fundratings\Portals\_default\Cache\VGFiczM=.resources' because it is being used by another process. 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, FileOptions options) at System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path, Boolean append) at System.IO.File.CreateText(String path) at DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.CreateCacheFile(String FileName) at DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.Insert(String CacheKey, Object objObject, CacheDependency objDependency, DateTime AbsoluteExpiration, TimeSpan SlidingExpiration, Boolean PersistAppRestart) at DotNetNuke.Common.Utilities.DataCache.SetCache(String CacheKey, Object objObject, TimeSpan SlidingExpiration, Boolean PersistAppRestart) at DotNetNuke.Entities.Tabs.TabController.GetTabsByPortal(Int32 PortalId) at DotNetNuke.Entities.Tabs.TabController.GetTabs(Int32 PortalId) at DNNMasters.SiteMap.SiteMap.addNode(SiteMapNodeCollection pNodes, TabInfo pTab, Int32 portalId) at DNNMasters.SiteMap.SiteMap.addNode(SiteMapNodeCollection pNodes, TabInfo pTab, Int32 portalId) at DNNMasters.SiteMap.SiteMap.BindData(Int32 portalId) at DNNMasters.SiteMap.SiteMap.setDataByPortal(Int32 portalId) at DNNMasters.SiteMap.SiteMap.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

This appears be something to do with caching? It is running on clustered web farm environment with 4 web servers.

 Any help greatly appreciated!!

 
New Post
1/22/2009 1:22 PM
 

Hello,
I hope you resolved the issue. If so, please share your experiences.

I had the same issue with my DNN web farm. Here are some tips you may want to give it a try. They have worked for me in most cases:

1) Use BroadcastPollingCachingProvider instead of FileBasedCachingProvider

The recommended setting for web farm is to use <caching defaultProvider="FileBasedCachingProvider">. However, I changed the following entry in web.config as follows: 

<caching defaultProvider="BroadcastPollingCachingProvider">

This change fixed most sites and they have been running several months with no complains

2) If the previous option doesn’t help, keep using FileBasedCachingProvider, but set DotNetNuke.Services.Cache.PurgeCache, in the scheduler, to run every 2 hours.


3) Give the site, its own application pool and set to recycle it more often.

Good luck!


 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Intermittent Caching Error on Web FarmIntermittent Caching Error on Web Farm


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out