Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. 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.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. 

解决方案 »

  1.   

    run dcomcnfg.exe ( win2000 )
        组件服务(win2003)
    修改excel组件的启动权限
      

  2.   

    权限问题:
    如果是Window2003 ->控制面版 -> 管理工具 -> 组件服务 -> 
         打开树级目录找到子目录DCOM配置 -> Microsoft Excel 应用程序 
         -> 右击选“属性” -> 在弹出对话窗口中选“安全”选项卡->
         -> 将启动和激活权限设为自定义->点击编辑按钮->
         ->在新窗口中将Everyone用户加入,选中复选框"启动权限",给予启动权限如果是WindowXP ->控制面版 -> 管理工具 -> 组件服务(繁体为"元件服务") -> 
         打开树级目录找到子目录DCOM配置 -> Microsoft Excel 应用程序 
         -> 右击选“属性” -> 在弹出对话窗口中选“安全”选项卡->
         -> 将启动和激活权限设为自定义->点击编辑按钮->
         ->在新窗口中将Everyone用户加入,选中复选框"远程启动",给予远程启动权限
    Excel article resource:
    http://blog.csdn.net/ChengKing/archive/2005/11/29/539514.aspx