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 ...Cannot delete cache files. Locked?Cannot delete cache files. Locked?
Previous
 
Next
New Post
3/13/2015 11:16 AM
 

I noticed in event log that I am having daily error from the scheduler, while trying to delete cached files. When I am deleting them from Host Settings > Clear Cache, I am not getting an error, however it does not delete them, at least not all. Today I had a problem with the HTML Module, where I was changing the content, and in Edit Mode was correct, but in View mode, it was the old one. So I tried to delete older versions and got the same error as I get from the scheduler.

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Deleted 0 files, however, some files are locked. Could not delete the following files: C:\ST-Online.Net.7.DEV\Portals\0-System\Cache\Pages\191_677BFE887188238BB6BE7C43105E786B2EF138586890D2749C6412D366DEB575.attrib.resources;C:\ST-Online.Net.7.DEV\Portals\0-System\Cache\Pages\191_677BFE887188238BB6BE7C43105E786B2EF138586890D2749C6412D366DEB575.data.resources; ---> System.IO.IOException: Deleted 0 files, however, some files are locked. Could not delete the following files: C:\ST-Online.Net.7.DEV\Portals\0-System\Cache\Pages\191_677BFE887188238BB6BE7C43105E786B2EF138586890D2749C6412D366DEB575.attrib.resources;C:\ST-Online.Net.7.DEV\Portals\0-System\Cache\Pages\191_677BFE887188238BB6BE7C43105E786B2EF138586890D2749C6412D366DEB575.data.resources; at DotNetNuke.Services.ModuleCache.FileProvider.Remove(Int32 tabModuleId) at DotNetNuke.Entities.Modules.ModuleController.SynchronizeModule(Int32 moduleID) at DotNetNuke.Modules.Html.EditHtml.OnVersionsGridItemCommand(Object source, GridCommandEventArgs e) --- End of inner exception stack trace ---


When I tried to delete the files manualy, I had no issues.

 
New Post
3/14/2015 6:12 AM
 
please check file System permissions, most likely the ASP.NET user, configured in your IIS App Pool is missing permission.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/16/2015 3:56 AM
 

I do not think this is the case... In the specific folder, I ever tried "Everyone -  Full Control" and still have the same behaviour.

 
New Post
3/16/2015 10:05 AM
 
other chance is a background process accessing the files, e.g. a virus scan or backup software.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/20/2015 10:45 AM
 

Still having the same problem, and now the site is on a production server. Site is running with IIS Worker Process and as I wrote before, folder "Cache" has Everyone > Full Control access.

 

AssemblyVersion:7.3.2

PortalID:0

UserID:-1

UserName:

ActiveTabID:57

ActiveTabName:Home

RawURL:/

AbsoluteURL:/default.aspx

UserAgent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:6e38bcfa-e617-4ae4-975e-e07c029cb2ba

InnerException:Access to the path 'C:\ST-Online.Net.7\Portals\0-System\Cache\Pages\167_677BFE887188238BB6BE7C43105E786B2EF138586890D2749C6412D366DEB575.attrib.resources' is denied.

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:System.IO.__Error.WinIOError

StackTrace:

Message:

System.UnauthorizedAccessException: Access to the path 'C:\ST-Online.Net.7\Portals\0-System\Cache\Pages\167_677BFE887188238BB6BE7C43105E786B2EF138586890D2749C6412D366DEB575.attrib.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, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)

   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)

   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)

   at System.IO.File.WriteAllLines(String path, String[] contents)

   at DotNetNuke.Services.ModuleCache.FileProvider.SetModule(Int32 tabModuleId, String cacheKey, TimeSpan duration, Byte[] output)

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Cannot delete cache files. Locked?Cannot delete cache files. Locked?


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