word-2013

Word Automation from IIS

假装没事ソ 提交于 2019-11-29 18:06:26
I created a Windows application which starts a Word process (Microsoft.Office.Interopt.Word) with C#. I load two addins word.AddIns.Add(@"C:\temp\addin.dot", true);. This code works perfectly fine within my windows application. To be able to start this process remotly, I created a MVC web application. The web app uses the same code, but it failes on the part where I load the addins: error: Word cannot open this document template: (C:\temp\addin.dot) The web application uses an application pool with administrator permissions and following settings: Enable 32-Bit Applications: True Load User