We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Mail merge engine creates temporary files on C drive using C#

While processing mail merge, C: on the server is getting filled up and the files are not getting cleaned out. Does Aspose.MailMerge create temporary files on C:? (please let us know the full path). Do these temp files get cleared out? We are seeing too many files getting created but not getting cleared out.
Also, is there a config setting to update this temp folder path so we can have it written to a SAN instead of the server’s local drive?


Have you tried the latest version of Aspose.Words for .NET 20.3?

If you still face problem, please attach the following resources here for testing:

  • Your input Word document.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.


Hi Tahir
Can you please review the question we had? We are trying to understand what folder does Aspose.Words writes temp files to? And if we can configure a different path for it to write to


The mail merge engine does not save any temporary files on C drive. You can specify the folder for temporary files used when saving to a DOC or DOCX file using SaveOptions.TempFolder property.

Please share the requested resources here for testing purpose. We will investigate the issue and provide you more information on it.


If there is no temporary folder define, where does that file writes?


When Aspose.Words saves a document, it needs to create temporary internal structures. By default, these internal structures are created in memory and the memory usage spikes for a short period while the document is being saved. When saving is complete, the memory is freed and reclaimed by the garbage collector.