-1
I am writing a file to the server (ASP.NET) which is a PDF and for this I am using Itextsharp. Everything is working correctly my problem is that when I try to generate the second PDF it gives me error message saying that the file is in use by another process.
I’ve used all the resources I know to release the file but without result.
Does anyone have any suggestions...???
I appreciate the help. Eduardo
Edit your question and put the properly formatted code.
– Rafael Barros
doc.Close()
is enough to close the file. It is definitely notMandar_Email()
or something else that’s not locking?– Paulo Soares