Quote:
I am Exporting Word Using Mail Merge Method in Web Application
First reason why it don't work: it work on your PC because you have msword installed, you server don't have msword.
object strTemplatePath = "D:\\ExportToWord\\ExportInvoice\\ExportSalesInvoiceTamplate.docx";
Second reason why it don't work: C# and ASP are running on server, this path aim to your server storage that certainly does not exist.
Quote:
It's Working Fine in Visual Studio Debugging.
It work on your PC because while debugging, your PC is client and server at same time.