我试图在我的Web服务器上安装Microsoft Office的Interop Assemblies, 以供从我的站点读取Word文档。Microsoft Office应用程序的主互操作程序集
我可以只安装组件吗? 或者唯一的办法是安装办公套件?
例外:
Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
互操作程序集列表: http://msdn.microsoft.com/en-us/library/15s06t57.aspx#pialist
永远不要使用ASP.NET或任何其他服务器技术的Office自动化。 Office应用程序在桌面环境中运行,如果幸运的话,它将在ASP.NET应用程序中失败;如果你不幸运,会导致许多难以诊断的错误;不受支持,如果从服务器使用,甚至可能没有正确授权。 – 2012-02-20 19:26:37