Skip to main content
Inspiring
August 28, 2006
Question

A sharing violation occurred...

  • August 28, 2006
  • 16 replies
  • 32175 views
A sharing violation occurred while accessing C:...\MFC136.tmp

This happens nearly every time I edit a page and then F12 it to preview
(and save it).

It then brings up the Save As dialog box and I have to save the file as
if it doesn't exist. Weird.

Any way to get rid of this error?
    This topic has been closed for replies.

    16 replies

    Participant
    February 3, 2012

    I had a problem like that.  This worked for me!

    http://www.longPathTool.com

    Path too long.

    Error cannot delete file: cannot read from source file or disk

    Cannot delete file: Access is denied

    There has been a sharing violation.

    Cannot delete file or folder The file name you specified

    is not valid or too long. Specify a different file name.

    The source or destination file may be in use.

    The file is in use by another program or user.

    Error Deleting File or Folder

    Make sure the disk is not full or write-protected and that the file is not currently in use.

    Path too deep.

    October 27, 2011

    Okay I joined adobe forums just for this error message.

    The solution is to turn OFF windows preview pane in explorer.  I believe this is holding some type of lock on the file which causes Dreamweaver to throw the error, this occurs because because people often double click or "right click - open with" on the file they want to edit and thus leave the preview window still on that file.  Worse yet is that if you fail to save as the file and simply close the window it will DELETE the file.  That's right not just not save the file, delete the whole thing. Scary.

    I have replicated this error on two machines. Please note this was on a mapped drive.

     

    I hope this helps someone and Adobe/Microsoft figure this out.  Data loss is not cool.

    Thomas King

    Message was edited by: Thomas Andrew King

    Participant
    November 6, 2011

    What worked for me for this annoying error was to simply exit the program, return to the dwt file then "save all".  This worked.

    Participant
    July 7, 2011

    If the sharing violation occurs from a network file, make sure the file is opened via a mapped drive -- not via a UNC path.

    GOOD:

    N:\share\share\file.html

    BAD:

    \\servername\share\share\file.html

    July 8, 2011

    Many thanks for the response. The problem appears to have evaporated or at least I have noticed it in  a while. I'm not sure how this happens as I don't think Adobe do automatic updates like Microsoft, or do they?

    The files will all typically be coldfusion files so there will always be a testing server specified http://localhost:8500/myWebsite/rmyIndex.cfm I'm not sure if that's what you're referring to. These are all specified when a project is first setup.

    August 6, 2010

    Same issue.  Running CS4 and Windows 7 Ult.  Happens at work and home office.

    Error: "A sharing violation occured while accessing N:\....[path-location]...\MFC72F1.tmp."

    When this happens i cannot save, instead i get the above error.  i then have to click on explorer window, wait 3 seconds, then my file will dissappear/delete itself.  i then go back to DW-CS4 and 'save as' to continue.  Once i complete this monotonous process, it will not happen again unless i close file and re-open said file(s).

    There are rare occassion that this doesn't happen, but i would say it happens about 90% of the time.

    Participant
    September 11, 2010

    I had exactly the same problem. I was editing a CSS file in DW 8. I found out that JRun was somehow sharing the file. JRun is used by my local ColdFusion server, so I simply went to the Coldfusion Administrator and cleared the Template cache. After that I was able to modify my file again. Now I will see if the problem will appear again.

    How did I found out which process is using the same file I was editing? Well, I saved the file under another name and tried to delete the original file. By doing that, Dreamweaver denied the action (which was actually the problem) and said something like this: "The file cannot be deleted because it is being used by JRun". This is where I got the clue!!! Finally I was able to see which freakin process is sharing my file, making it impossible to modify it!

    Since JRun is used my my Coldfusion server I went to the task manager of my WIN7 and ended the ColdFusion Server processes (You cannot just end the JRun process if another running process is dependant on it). After that I FINALLY was able to modify the original file I couldn't modify before. So I restarted my CF server process and, like already written, cleared the Template cache.

    Hopefully this helps. So Try to make a copy of your original file that you are having problems to modify and delete the original IN DREAMWEAVER! Hopefully Dreamweaver will tell you why it cannot delete it and most important, which process is also sharing the file, resulting in a sharing violation we want to avoid.

    Participant
    September 11, 2010

    OMG! As it seems the problem persists! However at least now I know that if I clear the Cache in the CF Administrator I can modify the original file. Which is so annoying! It is impossible to work like that! does anyone have a better idea?

    Participant
    April 6, 2009

    I too encountered this problem with DW CS4. To get rid of it, I clicked on Site->ManageSites->Edit (for the site of interest) and then on the Advanced tab using Local Info as the category, I unclicked "enable cache" and then clicked OK, then Done. Then I previewed the site using two browser types (IE7 and FF 3) and everything appeared correctly with no more "A sharing violation occurred..." error. Not only that, but the previous problem of not having FireFox render the file's background image correctly suddenly started working again. This was actually my original problem since it would render fine in IE, but didn't render OK in FireFox.

    Then I went back into Site->ManageSites->Edit and turned the enable cache setting back on. Problem seems to have disappeared. weird

    stevebo

    Participant
    October 23, 2006
    We solved this error for Dreamweaver 8 by clearing the site cache.

    From the top menu, select "Site".
    Select "Advanced".
    Select "Recreate Site Cache".

    Maybe it was a fluke but it worked for me.
    Participating Frequently
    September 28, 2006
    Ok, it gets weirder - sorta.

    I was away on vacation, came back, both my machine (WinXP) and the server (Win2k) had Windows updates to install, so I did, then got to work - and Dreamweaver is fine. So maybe it's a Microsoft problem that DW got caught up in.

    NOTES:

    NO other program had any difficulty saving files to the server - all our work is on the server, shared by two computers / workers. NO trouble at all except with DW 8.

    REinstalling DW as suggested above seems to be a waste of time - fortunately I didn't go through all that hassle.

    If it comes back I'll post it here.


    September 4, 2006
    Hi all,

    I had the same problem and posted it in the same thread. I fixed the problem now. Its something crazy ;-) . But it works. Its nothing to do with dreamweaver(I excatly dont know who the problem is).

    I have all the site files in a server which is accesed by all my team members. All had the same problem(Even though we use different version of DW). I just formatted the server machine and opened and saved files using DW. There is no problems now. Everthing is working fine. But i still dont know who caused the problem. DW or my server machine. But anyways i have no problems now :-)

    Inspiring
    September 3, 2006
    David Alcala - Adobe wrote:
    > Does it happen with a new site definition setup something like this (local
    > folder on your C: drive, no remote folders)?:
    >
    > Local Root Folder: C:\dw_sites\my_site
    > Remote Folder: none
    > Testing Server: none
    >
    > Have you tried uninstalling and reinstalling Dreamweaver following the steps
    > in these TechNotes?:
    >
    > Uninstalling Studio 8 applications on Windows
    > http://www.adobe.com/go/4e7826b7
    >
    > Installing Studio 8 products in Selective Startup mode on Windows XP
    > http://www.adobe.com/go/d2b5934d
    >
    > As Murray mentioned, please contact tech support. It would also be helpful
    > if you could submit a bug report:
    >
    > http://www.adobe.com/go/wish
    >
    >

    David - thanks for your reply.

    I followed the instructions exactly and I still have the same problem.

    Now I have reinstall all my extension and reconfigure my settings, but
    that was a necessary risk.

    Is there no way to fix this?
    Inspiring
    September 3, 2006
    Alan wrote:
    >
    >> ryansebiz wrote:
    >>> A sharing violation occurred while accessing C:...\MFC136.tmp
    >>>
    >
    > are you using BitDefender as the A/V?
    >
    > does the error stop if you temp disable the a/v?
    >
    > if it does- go into the bitdefender settings and exclude the folders
    > containing your site files from being scanned.
    >

    Alan - thanks for your reply.

    Yes, I do have BitDefender 9 Standard. I have had this problem for a
    couple weeks before I bought BitDefender though. I also have Webroot Spy
    Sweeper 5 and AVG Free 7.1.

    I completely exited out of all three programs and I still have the
    "sharing" problem.

    Like Grant mentioned, I don't have the files open on any other
    computers. When I save the file it deletes the original - then I have to
    save where the original file was for things to work. It also plays one
    of two error sounds in XP.

    So no one knows how to fix this problem?