User1677734741 posted
I have desinged an ASP.NET Process that will recieve submitted PDF files from the Browser in Base64 String Format, convert them to Binary PDF Format and save the file on a dedicated Folder on the server.
I have enabled Indexing Services on the Folder which has the PDF Files which is under Window Server 2003 R2 SP2.
I am using .NET program to generate the PDF and save to a file.
Just recently, I noticed that Indexing Service is locking some files forever, and the only way to remove the lock is to restart indexing services.
I am getting this error from .NET when the file is locked (when it is already saved before, and to be overwritten again):
The process cannot access the file .... because it is being used by another process.
It seems to me that the lock on the file just hangs and no matter how long I wait, it will still be there. the only way to solve this problem is to stop/start the Indexing Services.
I am just wondering if there is anything I can do programatically to work around this problem, for example, using .NET to stop and restart the Indxing Services, or schedule the indexing services to start during th enight only, .... any other idea ?
Appreciate your help.
Tarek.