none
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154. RRS feed

  • 问题

  • Server Error in '/' Application.

    Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace: 

    [COMException (0x80040154): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.]
      Admin_Orders_Manage_Admin_ChkOrder.Output_Word(String orderid, Int32 productcode) in d:\flower\Flowerweb\Flowerweb\Admin\Orders_Manage\Admin_ChkOrder.aspx.cs:218
      Admin_Orders_Manage_Admin_ChkOrder.btn_Loadorder_Click(Object sender, EventArgs e) in d:\flower\Flowerweb\Flowerweb\Admin\Orders_Manage\Admin_ChkOrder.aspx.cs:181
      System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
      System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
      System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
      System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
      System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

    我在服务器上创建word文档的时候出现这个异常,在本地IIS上没有问题,服务器上没有安装OFFICE,不知道如何解决,谁帮帮我,谢谢。

    2010年10月12日 13:55

答案

  • >服务器上没有安装OFFICE

    Office没正常安装的话Word不能工作的

     



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    2010年10月12日 15:11
    版主
  • 你好:

    请检查你的代码。是不是需要程序在调用时先要执行打开操作再进行读取。


    I am here!
    2010年10月14日 6:06
    版主

全部回复

  • >服务器上没有安装OFFICE

    Office没正常安装的话Word不能工作的

     



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    2010年10月12日 15:11
    版主
  • 谢谢您的回答,确实是服务器上没有安装OFFICE,而且服务器上安装OFFICE的话,会有安全风险。

    那请问服务器上没有安装OFFICE的情况下,怎么才能够实现后台下载word格式的订单呢?肯定有别的方法吧。

    请您说的详细一些。谢谢

    2010年10月12日 22:49
  • 安装Office。Open Office的自动化支持远远不如Office。

     



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    2010年10月12日 23:54
    版主
  • 谢谢您的回答。

    您好,今天我在服务器上安装了OFFICE,但是又出现了一个异常

    Server Error in '/' Application.

    因为没有打开的文档,所以这一命令无效。

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: 因为没有打开的文档,所以这一命令无效。

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [COMException (0x800a1098): 因为没有打开的文档,所以这一命令无效。]
      Microsoft.Office.Interop.Word.ApplicationClass.get_ActiveWindow() +0
      Admin_Orders_Manage_Admin_ChkOrder.Output_Word(String orderid, Int32 productcode) in d:\flower\Flowerweb\Flowerweb\Admin\Orders_Manage\Admin_ChkOrder.aspx.cs:241
      Admin_Orders_Manage_Admin_ChkOrder.btn_Loadorder_Click(Object sender, EventArgs e) in d:\flower\Flowerweb\Flowerweb\Admin\Orders_Manage\Admin_ChkOrder.aspx.cs:187
      System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
      System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
      System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
      System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
      System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

    不知道这是为什么。。 

    2010年10月13日 7:29
  • 你打开了文档么?

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    2010年10月13日 14:16
    版主
  • 你好:

    请检查你的代码。是不是需要程序在调用时先要执行打开操作再进行读取。


    I am here!
    2010年10月14日 6:06
    版主
  • 因为我们这边的服务器都不安装office,请问有什么方法可以解决这个问题呢?
    2011年11月8日 9:03