The process cannot access the file 'C:\temp\123.pdf' because it is being used by another process

The error "The process cannot access the file 'C:\temp\123.pdf' because it is being used by another process." is being produced by our application when trying to generate a pdf. Have you ever seen this before? Do you have any idea what can be done to resolve this issue?

Thanks.

Dear Campaign Mojo,

Please post the codes which can reproduce the error here. We will investigate it and give you a reply soon.

BTW, please check you codes carefully if there exits anything wrong which could cause this kind of error, such as forgetting to call stream.close() at the end of codes.

Best regards,