【发布时间】:2014-01-03 04:19:24
【问题描述】:
我有一个 asp.net MVC 应用程序,我收到 500 - 内部服务器错误。我的代码工作正常我发现每当我初始化 Microsoft word 类时,如果我删除初始化部分,我就会收到此错误,然后它可以正常工作任何建议??
//Create new instance of word and create a new document
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
// Word.Document doc = null;
//Properties for the new word document, so everything happens in the background. If this isn’t set all the word documents will be visible
// object readOnly = false;
// object isVisible = false;
【问题讨论】:
标签: asp.net asp.net-mvc deployment office-interop