根据word模板进行数据的填充时,本地可以而服务器上不行,
此处的代码无法实现,改为接口实现后包报
System.Runtime.InteropServices.COMException: 消息筛选器显示应用程序正在使用中。 (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER)) 在 Microsoft.Office.Interop.Word.DocumentClass.Close(Object& SaveChanges, Object& OriginalFormat, Object& RouteDocument) 在 WebApplication2.RLExport.test1111(String id) 位置 D:\xsdd\WebApplication2\RLExport.cs:行号 451 在 WebApplication2.WebService2.RLExport(String id) 位置 D:\xsdd\WebApplication2\WebService2.asmx.cs:行号 27
451行为doc.close() 但错误并不在此,而是因为服务器上的word配置有错误
这个地方需要全部去除,不进行拼写校验,问题解决
被恶心哭了