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 ...The process cannot access the file because it is being used by another processThe process cannot access the file because it is being used by another process
Previous
 
Next
New Post
6/9/2009 7:58 AM
 

First off, I know that this issue has been withdrawn on Gemini because this error is caused by IIS and ASP.Net, not DotNetNuke. However, what I want to ask is that based on the comments on Gemini (http://support.dotnetnuke.com/issue/ViewIssue.aspx?p=0&id=7359), Cathal Connolly of the core team provided a possible fix for sites running on full trust. I tried Googling this "fix", but was unsuccessful. Can anyone point me to the URL containing the solution?

Many thanks,

Duc

 
New Post
6/10/2009 4:10 AM
 

i have no idea.

Funny thing is that this is even reproducable through ftp, or directly in windows. FIles that are locked by asp.net can not be deleted by any means. The trick cathal pointed at was to change the folders asp.net is looking at for possible filechanges. Being that that will only work in full trust, we will not use that fix. Another fix is more worthwile looking at IMHO, and that is the concept of soft deleting files, ie. marking them for deletion in the database, hide them from view in the file manager, and show them in the recycle bin. When clearing the recycle bin, files will need to be deleted by a scheduled task, in order to overcome asp.net locking (in effect, the scheduled task will try to delete every file that is marked for permanent deletion, until there is none left)

ok.. the idea is there.. . now we just need someone to build it :)


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
6/10/2009 7:21 AM
 

here you go - https://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=240686&wa=wsignin1.0 ,any of the code samples that change the FileChangesMonitor settings will do, but require full trust.

 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/11/2009 11:19 AM
 

Thanks for the link Cathal! However, can you elaborate on how to implement those hacks in DNN safely and properly? I'm not familiar with making changes to ASP.Net core functions.

Regards.

 
New Post
6/11/2009 7:22 PM
 

You're best not to make any changes to core-code. The code samples show how to disable FileChangeMonitor (FCM's) at the application level. I'd recommend that you do this via a httpmodule so you only need to add a web.config reference e.g. see http://codebetter.com/blogs/karlseguin/archive/2006/06/12/146356.aspx for an example of a httpmodule that does something during application start.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...The process cannot access the file because it is being used by another processThe process cannot access the file because it is being used by another process


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