We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

File in use

When I execute the following code in a ASP.NET web service I cannot delete the temporary xml file and it remains locked for a undefined time. Any suggestion ? PDFLogicDocument _pdf = new PDFLogicDocument(); _pdf.OpenXml(_xmlFile); string _pdfPath = Path.Combine(TargetPath, Guid.NewGuid().ToString("N") + ".pdf"); _pdf.Save(_pdfPath); File.Delete(_xmlFile);

1 Reply

AJ Ajish Syncfusion Team March 2, 2006 03:55 AM UTC

Hi, Sorry for the delay, I was able to see the problem. I will consult with the development team and get back to you shortly on this issue. Thanks, Ajish. >When I execute the following code in a ASP.NET web service I cannot delete the temporary xml file and it remains locked for a undefined time. >Any suggestion ? > >PDFLogicDocument _pdf = new PDFLogicDocument(); >_pdf.OpenXml(_xmlFile); >string _pdfPath = Path.Combine(TargetPath, Guid.NewGuid().ToString("N") + ".pdf"); >_pdf.Save(_pdfPath); >File.Delete(_xmlFile); >

Loader.
Live Chat Icon For mobile
Up arrow icon