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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Question about DNN CacheQuestion about DNN Cache
Previous
 
Next
New Post
6/18/2007 11:54 PM
 

Can you please share some information about how the cache works for DNN?  How is page cache different from module cache and how does it work even a page has different modules that are viewable by different roles or if different roles have different permissions for the same module within a page.  We are running into a weird issue.  We are in the process of stress testing our DNN portal.  We tried by turning off all caching in the portal.  It looks like whenever any page is accessed, a file of size 0KB is created in the folder Portals/_default/Cache under the DNN installation.  The file name is really long and contains .resources at the end.  When Clear Cache link is accessed within DNN module, these files are not deleted.  When disk caching is enabled we can see some other non zero bytes files under Portals/2/Cache folder.  I am assuming these are the actual cached files.

Under heavy load we start seeing the following error in Event Viewer logs within DNN.

AssemblyVersion: 04.05.03
PortalID: 2
PortalName: Executive Portal
UserID: 502
UserName: test0220
ActiveTabID: 164
ActiveTabName: Documents
RawURL: /DotNetNuke_2/executive/Documents/tabid/164/DMXModule/662/Default.aspx?EntryId=1408
AbsoluteURL: /DotNetNuke_2/Default.aspx
AbsoluteURLReferrer:
http://...../Documents/tabid/164/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: af9b9da8-c4b0-4686-aac5-8519616045c0
InnerException: Access to the path '....\DotNetNuke_2\website\Portals\_default\Cache\UG9ydGFsMg==.resources' is denied.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.__Error.WinIOError
StackTrace:
Message: System.UnauthorizedAccessException: Access to the path '......\DotNetNuke_2\website\Portals\_default\Cache\UG9ydGFsMg==.resources' 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, 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.Portals.PortalController.GetPortal(Int32 PortalId) at Bring2mind.DNN.Modules.DMX.Security.Security..ctor(UserInfo& OurUser, Int32 PortalId) at Bring2mind.DNN.Modules.DMX.Controls.PortalModuleBase.get_DMXSecurity() at Bring2mind.DNN.Modules.DMX.Common.Query..ctor(PortalModuleBase& OurModule, HttpRequest& Request) at Bring2mind.DNN.Modules.DMX.Controls.PortalModuleBase.get_Query() at Bring2mind.DNN.Modules.DMX.Dispatch.MyInitialize() at Bring2mind.DNN.Modules.DMX.Dispatch.a(Object A_0, EventArgs A_1) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings)
Source:
Server Name: .....

The following Warning message is being written to the Event Viewer of the App server.

 

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 6/13/2007 6:13:56 PM

Event time (UTC): 6/13/2007 10:13:56 PM

Event ID: 60ed71fcd4f343709a40fdefab45cb9a

Event sequence: 2

Event occurrence: 1

Event detail code: 0

 

Application information:

Application domain: /LM/W3SVC/770673771/Root/DotNetNuke_2-1-128262464118782648

Trust level: Full

Application Virtual Path: /DotNetNuke_2

Application Path: ....\DotNetNuke_2\website\

Machine name: .....

 

Process information:

Process ID: 5852

Process name: w3wp.exe

Account name: NT AUTHORITY\NETWORK SERVICE

 

Exception information:

Exception type: IOException

Exception message: The process cannot access the file '....\DotNetNuke_2\website\Portals\_default\Cache\UG9ydGFsMg==.resources' because it is being used by another process.

 

Request information:

Request URL: http://..../DotNetNuke_2/Default.aspx?TabId=229

Request path: /DotNetNuke_2/Default.aspx

User host address: ..........

User:

Is authenticated: False

Authentication Type:

Thread account name: .....

 

Thread information:

Thread ID: 66

Thread account name: .....

Is impersonating: True

Stack trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.File.Delete(String path)

at DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.Remove(String CacheKey)

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.Portals.PortalController.GetPortal(Int32 PortalId)

at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo)

at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo)

at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e)

at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

 

Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Can you please help?

Thanks,

Chhavi

 
New Post
7/3/2007 2:35 PM
 

Did you ever find a solution for this problem? I have seen it as well, with no solution given.

David.


- http://www.gamesecretary.com/
 
New Post
7/4/2007 4:27 PM
 

I discovered that this was fixed by disabling the broadcastpollingprovider. Apparantly it was locking the file. I then discovered that the web.config specified the file-based provider while DNN was actually using the broadcast polling provider, I corrected the error in the web.config file and this appears to have resolved the issue.

David.


- http://www.gamesecretary.com/
 
New Post
7/11/2007 12:00 AM
 

I apologize for the delay in replying.  We did the same thing.  In web.config we changed the default provider from File Based provider to Broadcast Polling provider and that resolved the issue.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Question about DNN CacheQuestion about DNN Cache


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