File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
Go Back  Xtreme Visual Basic Talk > > > File system gets stuck in 'FileSystemObject.DeleteFile'


Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2017, 04:15 AM
srikrishnaraja srikrishnaraja is offline
Newcomer
 
Join Date: Sep 2011
Posts: 3
Default File system gets stuck in 'FileSystemObject.DeleteFile'


I have one automation project which does the job of building the setup using NSIS wrapper. The project is built with the VB6 code. During the execution of the project I am getting the error for deleting a file as “Method 'DeleteFile' of object 'IFileSystem3' failed” for the method ‘FileSystemObject.DeleteFile’ with force option set to true.

Scenario:

Server (Windows server 2012) drive is mapped to the local windows 7 system and whole operation is run in this mapped drive in client machine. And the project is run on the client machine.
Now when I run my project to build the setup, it copies all the application files to a folder called Temp under build1 and build2 directory and then it builds 2 separate setup exe using the NSIS (makeNSIS). After the creation of NSIS setups, it will delete all the source files from temp folder. While deleting the MDAC_TYP.exe file, I get the error as mentioned above. The above said error comes for both the Build1 & Build2 folders and the error comes occasionally (not every time) for the same exe.

I cannot rename/delete/move the file in any of the PC through UNC or even in server it cannot be deleted. If I try to rename/delete the file or its parent folder, the system from where I try to delete/rename gets stuck.

Other methods I tried are as below.
  • Tried my project under testing environment and there was no such error.
  • Checked for file handle using process explorer in both client as well as server – No handles were found
  • Checked for Open files in the Shared folders of the server. - No open file connection found for the file.
  • Tried rebooting the client machine – Not solved.
  • Tried to delete/Rename the file using command in server – Not possible.
  • Tried to delete/rename the file in server – No error and no message. Instead, server gets stuck.
  • Checked for disk problems using chkdisk in server. No problems reported.
  • Folder permission – The user ha full permission and there is no issue.
  • Tried running the same build process after reboot – Everything works fine. But, again repeats after some time/day.
  • Tried disconnecting the mapped drive at the time of error exists. But, still not able to rename.
  • No antivirus/Event viewer log in both client as well as server

After all these still I could not able to explain why exactly the error occurring.
Reply With Quote
Reply

Tags
file, server, error, project, client, folder, nsis, delete/rename, mapped, machine, drive, setup, run, system, checked, files, stuck, windows, process, permission, build, temp, exe, build2, build1


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile' File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
 
File system gets stuck in 'FileSystemObject.DeleteFile'
File system gets stuck in 'FileSystemObject.DeleteFile'
 
-->