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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Locked Resource FileLocked Resource File
Previous
 
Next
New Post
6/18/2008 5:30 PM
 

Hello,

I am having a problem with a locked resource file, and I have tried everything I can think of to solve this issue, but have had no success, yet.

I am not sure where to start. In the Portals\_default\Cache folder there is 412517EFE3EAAF5BD4873D1097CA25CC.resources file. It is always this file that trips up the site. I can easily reproduce the problem by opening two browsers and trying to navigate the website. One or both browsers will error out with this error.

The process cannot access the file 'D:\Inetpub\wwwroot\PNE1\Portals\_default\Cache\412517EFE3EAAF5BD4873D1097CA25CC.resources' because it is being used by another process.

I have checked file permissions and have given full control to both IUSER and Network Service to ensure enough permissions. I had started to create a module using the live server until I read enough to know that was not a good idea, so I made sure I cleaned all the old files off. I tried deleting the resources file (created backup first) and now I get Service Unavailable. I restored the file from backup and still got the Service Unavailable error. I restarted IIS and it is now available. Unfortunately, I still get the locked resources file.

Here is an excerpt of what is in the file. Hopefully, it will help.

<dictionary><item key="36" type="DotNetNuke.Security.Permissions.TabPermissionCollection, DotNetNuke, Version=4.8.3.4, Culture=neutral, PublicKeyToken=null"><ArrayOfTabPermissionInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

I would be very grateful for any help to get this fixed.

Thank you.

 Ben

 
New Post
6/18/2008 6:32 PM
 

Here is the stack trace. I am not familiar enought with DotNetNuke to understand where the issue is, though.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:


[IOException: The process cannot access the file 'D:\Inetpub\wwwroot\PNE1\Portals\_default\Cache\412517EFE3EAAF5BD4873D1097CA25CC.resources' because it is being used by another process.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2056741
   System.IO.File.Delete(String path) +157
   DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.DeleteCacheFile(String FileName) +20
   DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.GetPersistentCacheItem(String CacheKey, Type objType) +239
   DotNetNuke.Security.Permissions.TabPermissionController.GetTabPermissionsDictionary(Int32 PortalId) +94
   DotNetNuke.Security.Permissions.TabPermissionController.GetTabPermissionsCollectionByTabID(Int32 TabID, Int32 PortalId) +25
   DotNetNuke.Entities.Modules.ModuleController.FillModuleInfo(IDataReader dr, Boolean CheckForOpenDataReader, Boolean IncludePermissions, Boolean CheckForLegacyFields) +4097
   DotNetNuke.Entities.Modules.ModuleController.GetModuleByDefinition(Int32 PortalId, String FriendlyName) +315
   DotNetNuke.Entities.Portals.PortalSettings.GetSiteSetting(Int32 PortalId, String SettingName) +33
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3509
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 
New Post
6/18/2008 11:42 PM
 

I seem to have it figured out, although I am still testing. In the host settings, I had module cache set to memory. However, after viewing this thread:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/118/threadid/221834/scope/posts/Default.aspx

and

http://www.snapsis.com/DotNetNuke/Support/tabid/560/forumid/11/postid/6093/view/topic/Cache-Folders-in-the-Portal-Root-causing.aspx

I checked the web.config file and it had:

<add key="EnableCachePersistence" value="true" />

I set it to false and tried to recreate the problem and so far no errors. I am not sure if the setting in the host settings are directly related to the value in the web.config file, but it seems that perhaps exposing a way to edit the property in the web.config file without having to dig through everything might be beneficial.

Thank you.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Locked Resource FileLocked Resource File


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