行 92: public void Doc2Text(string docFileName) 行 93: { 行 94: Microsoft.Office.Interop.Word.ApplicationClass wordApp = new Microsoft.Office.Interop.Word.ApplicationClass(); 行 95: object fileobj = docFileName; 行 96: object nullobj = System.Reflection.Missing.Value;
[COMException (0x80040154): 检索 COM 类工厂中 CLSID 为 {000209FF-0000-0000-C000-000000000046} 的组件时失败,原因是出现以下错误: 80040154。] read_open.Doc2Text(String docFileName) in f:\freehost\cglzcn\web\read\open.aspx.cs:94 read_open.Page_Load(Object sender, EventArgs e) in f:\freehost\cglzcn\web\read\open.aspx.cs:61 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
在本地浏览没有错误, 当发布在网络上面就出现了这个错误! 请大家帮忙解一下【我是从服务器端读取word 文档 把word 文档的内容读取到页面上面显示】
你好
你的SERVER 上有沒有安裝 OFFICE 呢? 如果沒有的話可能會出現這個問題的
Please correct me if my concept is wrong