Server 2012 R2 SMB - The process cannot access the file '\\server\share\test.txt' because it is being used by another process.

Hi,
We are having issues with Server 2012 R2 SMB shares.
We try to write some changes to a file, but we first create a temporary backup in case the write fails. After the backup is created we write the changes to the file and then we get an error:
The process cannot access the file '\\server\share\test.txt' because it is being used by another process.
It looks like the backup process keeps the original file in use.
The problem doesn't always occur the first time, but almost everytime after 2 or 3 changes. I have provided some code below to reproduce the problem, you can run this in a loop to reproduce.
The problem is that once the error arises, the file remains 'in use' for a while, so you cannot retry but have to wait at least several minutes. 
I've already used Process Explorer to analyze, but there are no open file handles. 
To reproduce the problem: create two Server 2012 R2 machines and run the below code from one server accessing an SMB share on the other server.
Below is the code I use for testing, if you reproduce the scenario, I'm sure you get the same error.
We are not looking for an alternative way to solve this, but wonder if this is a bug that needs to be reported?
Anybody seen this behavior before or know what's causing it?
The code:
string file =
@"\\server\share\test.txt";
if (File.Exists(file))
File.Copy(file, file +
".bak", true);
File.WriteAllText(file,
"Testje",
Encoding.UTF8);
The error:
 System.IO.IOException: The process cannot access the file '\\server\share\test.txt' because it is being used by another process.

Hi,
There is someone else having the same issue with yours. You could try code in the article below:
“The process cannot access the file because it is being used by another process”
http://blogs.msdn.com/b/shawncao/archive/2010/06/04/the-process-cannot-access-the-file-because-it-is-being-used-by-another-process.aspx
If you wonder the root cause of the issue, the .NET Framework Class Libraries forum can help.
Best Regards,
Mandy 
If you have any feedback on our support, please click
here .
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • Backup stopped before completing. The process cannot access the file because it is being used by another process

    I am working with a client who is attempting to backup to a NAS device 
    The device is a linksys NSS6000 (Cisco device).
    It’s a dual 1Gbit LAN device that supports CIFS / FTP and NFS transfers. It has only 1Gbit lan connected.
    The device has 4 *  500 gb sata drives in raid 1  attached.
    Cables go from cat 5 to fiber back to cat5. (The NAS  is located at a neighboring office) The switches are 1gbit.
    Server is a win2k8r1 fully up to date.
    When backing up to the NAS device, the following error occurs:
    Running backup of volume Local Disk(D:), copied (86%).
    Running backup of volume Local Disk(D:), copied (90%).
    Running backup of volume Local Disk(D:), copied (94%).
    Running backup of volume Local Disk(D:), copied (98%).
    Backup of volume Local Disk(D:) completed successfully.
    Backup stopped before completing.
    Summary of backup:
    Backup stopped before completing.
    The process cannot access the file because it is being used by another process.
    If we redirect the backup to a folder on a 2008 share, the backup completes successfully.
    Only when backing up to the linksys NSS6000 does the error occur.
    No other backup processes are writing to the NAS device so I can't understand why the process thinks the file is
    being used by another process.
    One thing we did notice that when the backup to the NAS device occurs, throughput is about 150 mbit average
    On the 2008 server shares we successfully backup to, the through put is 500 mbit.  Not sure if that is important, but
    might be worth mentioning.
    The following event log entry was noted at the end of the backup.
    The description for Event ID '519' in Source 'Microsoft-Windows-Backup' cannot be found. 
    The local computer may not have the necessary registry information or message DLL files to display the message,
    or you may not have permission to access them.  The following information is part of the
    event:'2009-05-12T10:13:31.617Z', '', '2147942432', '%%2147942432'
    Any ideas?
    Thanks..Michael

    I am also seeing the same problem backing up nightly to a brand new NAS device (WD My Book Live)
    All the error codes are the same as those in this thread.
    From Windows Event Viewer:
    The backup operation that started at '‎2011‎-‎03‎-‎25T06:00:19.811302700Z' has failed with following error code '2147942432' (The process cannot access the file because it is being used by another process.). Please review the event details
    for a solution, and then rerun the backup operation once the issue is resolved.
    Fault bucket 659897467, type 5
    Event Name: WindowsBackupFailure
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: Backup
    P2: 6.1.7600
    P3: 0x80070020
    P4: 7
    P5:
    P6:
    P7:
    P8:
    P9:
    P10:
    Attached files:
    C:\Windows\Logs\WindowsBackup\WindowsBackup.1.etl
    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_Backup_6957d65de91fc4a853ecc7c78914bf7351fff0d1_14578325
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: dd480bf2-56a6-11e0-ae81-00217099bf56
    Report Status: 0
    From Report.wer  in  C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_Backup_6957d65de91fc4a853ecc7c78914bf7351fff0d1_14578325
    Version=1
    EventType=WindowsBackupFailure
    EventTime=129455071508181139
    Consent=1
    UploadTime=129455071508201140
    ReportIdentifier=dd480bf2-56a6-11e0-ae81-00217099bf56
    Response.BucketId=659897467
    Response.BucketTable=5
    Response.type=4
    Sig[0].Name=Operation
    Sig[0].Value=Backup
    Sig[1].Name=AppVer
    Sig[1].Value=6.1.7600
    Sig[2].Name=HRESULT
    Sig[2].Value=0x80070020
    Sig[3].Name=TargetType
    Sig[3].Value=7
    DynamicSig[1].Name=OS Version
    DynamicSig[1].Value=6.1.7600.2.0.0.256.48
    DynamicSig[2].Name=Locale ID
    DynamicSig[2].Value=1033
    State[0].Key=Transport.DoneStage1
    State[0].Value=1
    State[1].Key=DataRequest
    State[1].Value=Bucket=659897467/nBucketTable=5/nResponse=1/n
    FriendlyEventName=WindowsBackupFailure
    ConsentKey=WindowsBackupFailure
    AppName=Windows host process (Rundll32)
    AppPath=C:\Windows\System32\rundll32.exe
    ReportDescription=Windows Backup failure

  • The process cannot access the file because it is being used by another process with Execute package task

    Hi,
    I've a master package that calls other packages with an Execute Package Task. Sometimes we have an error: "The process cannot access the file because it is being used by another process" and sometimes not. It seems random.
    We are working on a Terminal Server and the SQL Server database engine and the files are placed on another server. It seems that the errors doesn't occu when we run the packages on the server with a job. We can't log onto the windows server on this machine..
    Hennie

    I've seen this myself. On most occasions an immediate rerun would fix the issue. As stated this happens only when we try to run this from BIDs. From SQL agent job it always runs fine. 
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • The process cannot access the file because it is being used by another proc

    We are exporting crystal reports into PDF using  ExportToHttpResponse (code snippet below)
          // Getting the type of the report file which has been selected by the user. (which will be REPORT CLASS type)
    Type objType = Type.GetType("WebApplication1.Reports." + ReportName);
    ReportClass SEPREport = (ReportClass)Activator.CreateInstance(objType);
    // GetTypedDataSet()returns an instance of typed data set.
    SEPREport.SetDataSource(GetTypedDataSet());
    SEPREport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, ReportName );
    Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0.
    Now on our machines, we have never experienced any issues.
    BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
    The process cannot access the file because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: The process cannot access the file because it is being used by another process.
    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:
    [COMException (0x80004005): The process cannot access the file because it is being used by another process.
       CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
       CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +525
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +681
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +105
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +163
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +132
       MSSB.FATools.UI.PlannerReport.CreatePDFDocument() +732
       MSSB.FATools.UI.PlannerReport.btnCreatePDF_Click(Object sender, EventArgs e) +45
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5615

    A bit of a confusion on my part;
    Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0. Now on our machines, we have never experienced any issues.
    Going by the above, you should have references to CR assemblies of version 10.5.3700 only. No other references.
    Now, looking at this paragraph:
    BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
    I wonder what runtime was deployed to the server. E.g.; if you are using CR 10.5, your assemblies will be 10.5.3700 and you should be deploying the following runtime (depending on 32 bit / 64 bit, etc.):
    CRRedist2008_ia64.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100006255262008E/CRRedist2008_ia64.zip
    CRRedist2008_x64.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100006255272008E/CRRedist2008_x64.zip
    CRRedist2008_x86.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100009351342008E/CRBasicVS2008_redist_x86.zip
    One way to check on what is actually loading is to use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility.
    - Ludek

  • I cant figure out what is wrong i keep getting this an OIEception that says "{"The process cannot access the file because it is being used by another process."}

    I am trying to move a file from a folder to another folder.
    here is my code:
    //storage of the all files
    string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Test Pictures");
    private void historyPictureBox_Click(object sender, EventArgs e)
    destinationFile = @"C:\Users\Jonah\Desktop\Test Test";
    File.Move(folderContentNames[1], destinationFile);
    updateListBoxFileName();
    updateImageBox();
    each time I hit the bolded underlined part I get that error message.
    if you need anything else just ask.
    Thanks in advance,
    Thor Orb

    Hi Thor,
    If you want to move a file from a folder to another folder, I think you could get the sourcePath and TargetPath. The code below shows a simple demo:
    string[] folders = Directory.GetFiles(@"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test");
    string desFile =Path.Combine( @"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test - Copy\"+Path.GetFileName(folders[1]));
    File.Move(folders[1], desFile);
    In addition, the link below might be useful to you:
    # How to: Copy, Delete, and Move Files and Folders (C# Programming Guide)
    >> The process cannot access the file because it is being used by another process
    The message seemed that the file was opened in other process. Did you operate the file with other code?
    I think you could check if the files and the folders were opened, and review your codes if they were used in other places.
    If you have any further questions, please feel free to post in this forum.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.
    Ya, Thanks I figured about the path and destation. yes I am using the file in another area, the file is an image jpg and I am displaying it in a picture box. Now I have been doing a little research I see a command called Dispose() and this is suppose to
    release the handle on the image, but I can seem to figure out have to use it correctly.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Collections;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.IO;
    namespace Scanned_Picture_Ogranizer
    public partial class Form1 : Form
    //storage of the all files
    string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Scan Project Testing\Test Pictures", "*.jpg");
    //List<string> folderContentList = folderContentNames.ToList();
    private List<string> folderContentList = new List<string>();
    Bitmap currentImage;
    Bitmap placeHolder;
    public Form1()
    InitializeComponent();
    convertingArrayToList();
    startUpData();
    string sourceFile = @"C:\Users\Jonah\OneDrive\My Programming Projects\Scanned Picture Organizer Project\Test Pictures";
    string destinationFile = "";
    private void moveButton_Click(object sender, EventArgs e)
    private void startUpData()
    //placeHolder = new Bitmap(folderContentList[0]);
    //currentImage = (Bitmap)placeHolder.Clone();
    // Image loadImage = new Bitmap(pictureClones[0]);
    // currentFilePictureBox.Image = loadImage;
    int numberOfFilesLeft = folderContentNames.Length;
    foreach (string name in folderContentNames)
    fileNamesListBox.Items.Add(name);
    fileNameTextBox.Text = folderContentNames[0];
    numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
    ///loadImage.Dispose();
    //FileStream currentImage = new FileStream(folderContentList[0], FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
    private void convertingArrayToList()
    foreach (string listName in folderContentNames)
    folderContentList.Add(listName);
    private void selectingImageFromListBox()
    private void updateImageBox()
    Bitmap currentImage = new Bitmap(folderContentList[0]);
    currentFilePictureBox.Image = currentImage;
    currentImage.Dispose();
    private void updateListBoxFileName()
    fileNamesListBox.Items.RemoveAt(0);
    fileNameTextBox.Text = folderContentList[0];
    // numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
    private void historyPictureBox_Click(object sender, EventArgs e)
    destinationFile = @"C:\Users\Jonah\Desktop\Scan Project Testing\Test Test\";
    File.Move(folderContentList[0], destinationFile + System.IO.Path.GetFileName(folderContentList[0]));
    folderContentList.RemoveAt(0);
    updateImageBox();
    updateListBoxFileName();
    when I first start the program the first picture displays, but when I trigger historyPictureBox_Click(), it does that error again. Another things is that I already looked at that link and it didn't help.
    I just super confused, I would like your help on this.
    Thanks,
    Thor Orb

  • Move-item: The process cannot access the file because it is being used by another process.

    Hey,
    I have a powershell script where I first use Get-childitem to receive a number of files.
    Then I do some stuff with it and try to move the file afterwards.
    Unfortunately if I am using a lot of files I receive very often the error:
    The process cannot access the file because it is being used by another process.
    Even -Force parameter does not help further.
    Based on my look around it is not used by another process.
    I think it is still 'in use' by powershell from script commands previously.
    Is there any way to 'see' if the file is still in use currently and wait for this to end?
    Or can I 'close' the current usage of the file?
    Thank you :)

    Hey,
    Thank you.
    I build the following function.
    But either the $return = $true I receive "The process cannot access the file because it is being used by another process." when I try to move-item... :(
    Function Wait-FileUnlock($FilePath){
    Write-Host " "
    $FileInfo = New-Object System.IO.FileInfo $($FilePath)
    DO{
    try{
    $fileStream = $fileInfo.Open([System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::Read)
    $return = $true
    catch{
    Start-Sleep -Milliseconds 5
    Write-Host "." -NoNewline
    $return = $false
    While($return -ne $true)
    $Error
    return $return
    Another functions is:
    Function Wait-FileUnlock($FilePath){
    Write-Host " "
    DO{
    $Error.Clear()
    Rename-Item $FilePath $FilePath -ErrorAction SilentlyContinue | Out-Null
    Start-Sleep -Milliseconds 5
    Write-Host "." -NoNewline
    While($Error.Count -ne 0)
    This one waits .. but it seems not to end waiting at any time :(

  • How do I fix this error: DF024: Unable to preserve original file at ... Error 32 The process cannot access the file because it is being used by another process.(Seq 1352).  ?

    I am installing creative the cloud Illustrator desktop app on a machine with windows 7 64 bit running in a domain environment.  The download starts and takes about runs for a bout 10 minutes and then stops with the error: DF024: Unable to preserve original file at "C:\Program Files\Adobe\Adobe Illustrator CC 2014\Support Files\Contents\Windows\AdobeLinguistic.dll" Error 32 The process cannot access the file because it is being used by another process.(Seq 1352)
    I am logged in as a network administrator and there are no other apps except a web browser (Chrome) running.  There are no other users logged into the machine.
    How can I see what other process is using the needed file so that I can fix it?
    Thanks

    MelissaB34 it looks like you already are reviewing your installation log files but you can find more information at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html.  From the error you have posted it appears that your current User account is either unable to update C:\Program Files\Adobe\Adobe Illustrator CC 2014\Support Files\Contents\Windows\AdobeLinguistic.dll or does not have sufficient file permissions to do so.  Since you mentioned you are on a domain please ensure that you are working with your I.T. department and have correct access to this directory.
    You may want to also consider logging in under a local administrator account to see if you face the same difficulties.  This would help you determine if you are facing a file corruption issue or file permission issue.

  • How do I delete a photo from my desktop which keeps showing the following info. every time I try to move it to the trash?:  "DSC_0073.JPG" can't be opened right now because it's being used by another task, such as moving or copying an item or emptying the

    I dragged a copy of a photo onto my desktop from iPhoto, and it seems to be in some state of process/activity (vs. just being a copy of a photo on my desktop).  I tried to delete/move to trash the photo, and I keep getting the following message:  “DSC_0073.JPG” can’t be opened right now because it’s being used by another task, such as moving or copying an item or emptying the Trash. Try again when the current task is complete.
    How do I delete this photo from my desktop?
    Thanks!

    I ended up shutting down my system, and when I started it back up, I was able to drag the photo to the trash and delete it (I did get a message warning that my deleting the photo might negatively affect the application that was "using" it, but I deleted it anyway...it worked...and I'm hoping I didn't adversely affect another application!).
    Thanks so much for your help!

  • Error message: File can't be opened right now because it's being used by another task, such as moving or copying an item or emptying the Trash. Try again when the current task is complete.

    I recently transferred some data from my external hard drive to my desktop, but there was an error transferring some of the files and it couldn't respond, and eventually i simply removed the external hard drive. However, the folder/files are still on my desktop, and when i try to move them or delete them, this error message appears:
    “-folder/file name-” can’t be opened right now because it’s being used by another task, such as moving or copying an item or emptying the Trash. Try again when the current task is complete.
    Since I removed the external hard drive before the files were finished transferring, there is no way for the current task to be completed. How can I resolve this and delete the folders/files from my desktop?

    I just managed to resolve this by going to the apple sign in the top left, choosing force quit (or you could do option+command+esc), then i chose finder, and i clicked relaunch. After relaunching finder, the error message doesn't appear anymore, and I could move these files/folders, and delete them just fine.
    Hope this will help other people who encounter similar problems in the future!

  • Action to Convert Word doc to pdf, error: the process cannot access the file because it is being used by another process

    I am simply running an action that converts all Word 2010 docs within a directory into pdfs in another directory. The Word doc is closed.
    This is performed within Adobe Pro X.  The directory to look in has been set.  The directory to save in has been set, and is different.
    The error message pops up after I run the action.  If I click the OK button, the 'save pdf file as' box pops up, with Adobe printer's default save directory
    (not the same as the above two) selected.
    If I click Save, accepting the meaningless file name (ADPD5A5.pdf in this case) the problem goes away.  If I chose cancel, the problem also goes away.
    I don't want to save this pdf as anything other than what is set up in the action.  How do I stop this from happening?
    I've unchecked 'prompt for Adobe pdf file name' within the Word Adobe preferences, but to no success.
    I will ultimately be converting scores of docs into pdfs, and cannot have to interfere with each one.
    This worked fine on my XP machine, but now in Windows 7 64 bit (new machine, new Adobe install) it is causing this problem.

    A bit of a confusion on my part;
    Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0. Now on our machines, we have never experienced any issues.
    Going by the above, you should have references to CR assemblies of version 10.5.3700 only. No other references.
    Now, looking at this paragraph:
    BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
    I wonder what runtime was deployed to the server. E.g.; if you are using CR 10.5, your assemblies will be 10.5.3700 and you should be deploying the following runtime (depending on 32 bit / 64 bit, etc.):
    CRRedist2008_ia64.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100006255262008E/CRRedist2008_ia64.zip
    CRRedist2008_x64.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100006255272008E/CRRedist2008_x64.zip
    CRRedist2008_x86.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100009351342008E/CRBasicVS2008_redist_x86.zip
    One way to check on what is actually loading is to use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility.
    - Ludek

  • Error occurs during reseed - the EDB file is being used by another process

    Greetings,
    We were notified today that one of our databases in an Exchange 2013 cluster is currently in a failed state. We have three servers - two at the primary site and one in the DR site. The database has a mounted and healthy copy on its preferred server, but
    the secondary copy is now failed with a pretty high CopyQueueLength.
    I've done plenty of reseeds with Exchange 2010, and I understand that Exchange 2013 will do an automatic reseed in the event of a failure. However the auto-reseed is generating the following message:
    Automatic Reseed Manager failed to execute repair workflow 'FailedSuspendedCopyAutoReseed' for database 'DB05'. Error: The Automatic Reseed Manager encountered an error: The automatic repair operation for database copy 'DB05\mb02' will not be run because
    one of the prerequisite checks failed. Error: There are no Exchange volumes mounted under root path 'C:\ExchangeVolumes', which are required for the Automatic Reseed component.
    WorkflowLaunchReason: The seeding operation failed. Error: An error occurred while performing the seed operation. Error: The process cannot access the file 'M:\DB05\DB05.EDB' because it is being used by another process.
    During the course of my investigation, I tried to rename the .edb file to .old and was told that the file is in use by Microsoft.exchange.store.worker.exe. There doesn't seem to be a way to kill this process, as every time I've tried I've been told that
    access is denied. I'm not even sure it's wise to kill the process anyway (I'm only trying to kill the one with the PID that matches the database).
    Attempting to manually reseed the database generates a similar error to the one above. I've failed all the databases over to the other server and restarted the Information Store service as well as the Host Controller service, but so far I can't seem to get
    this file unlocked. One article I found did mention making sure that Exchange Servers is listed and given Read access to the folder. I did manually set this but I still see no change. I also verified that Symantec Endpoint Protection is set to exclude .edb
    files, and the automatic Exchange exclusions are preventing it from scanning the Exchange install locations.
    I'm curious if anyone has any suggestions that I might have missed so far. This is confusing the daylights out of me and I'd like to be able to get this reseeded. I suspect that even a full server restart won't clear this up, so any help would be great.
    We're just starting to transition users over from Exchange 2007 to 2013, and I'd prefer to have a method of avoiding this in the future before we're in full production.

    Thanks for your response, Ed! I really appreciate you taking the time to do so.
    The ultimate fix for this was a reboot of the server and I was finally able to kick off a reseed. For the sake of thoroughness, here's the last two things we tried before rebooting.
    I did try stopping the Symantec Endpoint Protection service on the server, but the job still failed in the same way. I'd also been given the recommendation to try stopping the Information Store service and try a reseed like that. Still no love. I've been
    using ProcessExplorer, too, to try and isolate the lock, but didn't have much luck there, beyond what I already knew regarding the store.worker.exe locking the file.
    I don't much care for the notion that I needed to reboot the server to remove that lock, I was really hoping for something less intrusive. But at least we've got it working and can move on with our day!
    Again, thanks for your response, Ed!

  • I am unable to empty the trash. it keeps saying that it is being used by another task. I have tried rebooting and problem persist.

    I am not very computer savy and am hoping one of you can give me an easy fix.  I am unable to empty my trash. A window pops up and says, "the trash can't be emptied because it is being used by another task, such as moving or copying an item or emptying trash.  Try again when current task is complete."  That has been going on for several days.  I did discover that my trash contained over 2,000 items.  When I tried to empty them this is what happened.  I also must have on auto save because everything I've ever worked on is saved.
    HELP???

    Did you by any chance hit Secure Empty Trash? Restart then see if holding down the Option (alt) key while hitting Empty Trash works.

  • While deleting the virtual machine .vhd folder -- error msg : the process cannot access the file beacuse it is being used by another process

    When i am trying to delete the Virtual Machine folder/directory i get the below error. Virtual machine is turned off
    V:\>rmdir ME-EXCAS01 /s
    ME-EXCAS01, Are you sure (Y/N)? y
    ME-EXCAS01\ME-EXCAS01\Virtual Machines\1B1FD14E-B3F0-4232-9F96-2A871E879CD6.xml
    - The process cannot access the file because it is being used by another process
    How to delete the whole folder ?
    Thanks

    Also, if your VM has snapshots and you delete it, you must wait for the snapshots to finish merging - the VHD files will be locked until then.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • Failing capture - file being used by another process.

    Hi there.
    So i have a IBM system x 3550 m4 booting from SAN Windows server 2012.
    I'm trying to capture an image using MDT 2012 installed on windows server 2008 r2.
    The first try to capture failed because of lack of proper network driver in WinPE. So i've managed to boot again in the system (the PE after restart was giving me a 0xc000000f bsod). I've put drivers into boot image and started a second attempt to capture.
    There was a strange thing: the process was stuck very long on bcdedit sub-tasks (as were lagging the interactive bcdedit calls i've tried to do from command line). But nevertheless it managed to reboot and almost finished capturing but crashed at 83% with
    the following in log:
    <![LOG[ Console > [ 82% ] Capturing progress: 1:03 mins remaining ]LOG]!><time="17:38:08.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > [ 83% ] Capturing progress: 56 secs remaining ]LOG]!><time="17:38:20.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > [ ERROR ] C:\Windows\WinSxS\Manifests\amd64_nvraid.inf_31bf3856ad364e35_6.2.9200.16384_none_92a46a8c48c2da5e.manifest (Error = 32)]LOG]!><time="17:38:52.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > [ ERROR ] C:\Windows\WinSxS\Manifests\amd64_policy.1.2.microsof..op.security.azroles_31bf3856ad364e35_6.2.9200.16384_none_4583aaacb524ff52.manifest (Error = 32)]LOG]!><time="17:38:52.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > Error imaging drive [C:\]]LOG]!><time="17:38:53.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > The process cannot access the file because it is being used by another process.]LOG]!><time="17:38:53.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Return code from command = 2]LOG]!><time="17:38:53.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Error creating an image of drive C:, rc = 2]LOG]!><time="17:38:53.000+000" date="02-04-2014" component="ZTIBackup" context="" type="3" thread="" file="ZTIBackup">
    <![LOG[Event 41036 sent: Error creating an image of drive C:, rc = 2]LOG]!><time="17:38:54.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ZTIBackup COMPLETED. Return Value = 2]LOG]!><time="17:38:54.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ZTI ERROR - Non-zero return code by ZTIBackup, rc = 2]LOG]!><time="17:38:54.000+000" date="02-04-2014" component="ZTIBackup" context="" type="3" thread="" file="ZTIBackup">
    <![LOG[Event 41002 sent: ZTI ERROR - Non-zero return code by ZTIBackup, rc = 2]LOG]!><time="17:38:54.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    I assume it happens because of something not clean from 1st capture attempt, no?
    How can i fix this? 
    Thanks.
    http://about.me/bromi

    Hi there.
    So i have a IBM system x 3550 m4 booting from SAN Windows server 2012.
    I'm trying to capture an image using MDT 2012 installed on windows server 2008 r2.
    The first try to capture failed because of lack of proper network driver in WinPE. So i've managed to boot again in the system (the PE after restart was giving me a 0xc000000f bsod). I've put drivers into boot image and started a second attempt to capture.
    There was a strange thing: the process was stuck very long on bcdedit sub-tasks (as were lagging the interactive bcdedit calls i've tried to do from command line). But nevertheless it managed to reboot and almost finished capturing but crashed at 83% with
    the following in log:
    <![LOG[ Console > [ 82% ] Capturing progress: 1:03 mins remaining ]LOG]!><time="17:38:08.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > [ 83% ] Capturing progress: 56 secs remaining ]LOG]!><time="17:38:20.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > [ ERROR ] C:\Windows\WinSxS\Manifests\amd64_nvraid.inf_31bf3856ad364e35_6.2.9200.16384_none_92a46a8c48c2da5e.manifest (Error = 32)]LOG]!><time="17:38:52.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > [ ERROR ] C:\Windows\WinSxS\Manifests\amd64_policy.1.2.microsof..op.security.azroles_31bf3856ad364e35_6.2.9200.16384_none_4583aaacb524ff52.manifest (Error = 32)]LOG]!><time="17:38:52.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > Error imaging drive [C:\]]LOG]!><time="17:38:53.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ Console > The process cannot access the file because it is being used by another process.]LOG]!><time="17:38:53.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Return code from command = 2]LOG]!><time="17:38:53.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Error creating an image of drive C:, rc = 2]LOG]!><time="17:38:53.000+000" date="02-04-2014" component="ZTIBackup" context="" type="3" thread="" file="ZTIBackup">
    <![LOG[Event 41036 sent: Error creating an image of drive C:, rc = 2]LOG]!><time="17:38:54.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ZTIBackup COMPLETED. Return Value = 2]LOG]!><time="17:38:54.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ZTI ERROR - Non-zero return code by ZTIBackup, rc = 2]LOG]!><time="17:38:54.000+000" date="02-04-2014" component="ZTIBackup" context="" type="3" thread="" file="ZTIBackup">
    <![LOG[Event 41002 sent: ZTI ERROR - Non-zero return code by ZTIBackup, rc = 2]LOG]!><time="17:38:54.000+000" date="02-04-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    I assume it happens because of something not clean from 1st capture attempt, no?
    How can i fix this? 
    Thanks.
    http://about.me/bromi

  • HT1339 I lost all my songs on ipod when my mom plugged her ipod into my computer. I tried to restore it but it says it cannot be restored because it is in use by another application. What do I do now? help! I still have all my songs in my itunes library

    I lost all my ipod songs when my mom plugged her exact same ipod (5th generation nano) into my computer. She did not get my songs on hers but somehow I lost mine. I tried the five R's and evrything I could find online. I cannot get the songs from my iTunes library back on my ipod. I get a message that says. "Gina's ipod cannot be restored because it is being used in another application." Please help me

    Why do you need to restore your iPod to resync your content back over to it from your iTunes library? You should just be able to configure the content to sync to your device as you did before this problem occurred.
    iTunes: Syncing media content to iOS devices and iPod
    B-rock

Maybe you are looking for

  • BO 6.5 - save as excel 2003 (problem date 31/12/2099)

    hi, i've a query result  in BO with a date "31/12/2099". This date come from an oracle db file. I save it into xls (save as) but the result in xls give me "30/12/1900". With other date, there is no problem. an idea to correct this ? thanks

  • Manipulati​ng the cell size in an Excel spreadshee​t

    Problem 1 of 2 (2 is in the same project but a different function so will place in separate post) Using LV 2013 on Windows 7 with Excel 2010 I have a routine where I insert assorted data into an Excel spreadsheet based on a pre-formatted Excel templa

  • Win Elements 7 won't print in landscape orientation

    O.K. my PSE 5 will print in landscape orientation along the length of roll paper with an Epson Stylus 7600, but no matter what combinations I use with PSE 7, and making sure that at all stages the landscape icons/buttons are selected, PSE 7 won't pri

  • TS3989 HOW DO i SAVE PHOTOS ON IPHONE TO ICLOUD?

    I have been trying to back up my phone to iCloud because I'm switching iPhones. When I have been trying to back up my iPhone, everything is backed up except for my photos. When I look in Photo Stream, they aren't showing up. I have 600 pictures that

  • Control Panel LCD Screen is too dark.

    Is there a way to brighten the LCD screen on the control panel? Thanks. This question was solved. View Solution.