Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.NET and Excel

ASP.NET and Excel

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netcomdesign
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Dear all, I am having trouble with generating Excel when the application is placed on a webserver. Locally, it works fine but unfortunately, it gives the following error message when placed on a webserver. Actually, I am reading each node in a Treeview for generating the Excel. I am using the Microsoft Excel Object 11.0 as reference and the classes in there (Application, Workbook, Sheets...) Please help me in resolving this problem if possible. Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005. 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 {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005. Source Error: Line 241: // Excel objects initialisation Line 242: GC.Collect();// clean up any other excel guys hangin' around... Line 243: oXL = new Excel.Application(); Line 244: oXL.Visible = false; Line 245: Source File: c:\TrouxLicenses\Default.aspx.cs Line: 243 Stack Trace: [COMException (0x80080005): Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005.] _Default.GenerateExcel() in c:\TrouxLicenses\Default.aspx.cs:243 _Default.btnExportToExcel_Click(Object sender, EventArgs e) in c:\TrouxLicenses\Default.aspx.cs:209 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo stBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

    I 1 Reply Last reply
    0
    • L Lost User

      Dear all, I am having trouble with generating Excel when the application is placed on a webserver. Locally, it works fine but unfortunately, it gives the following error message when placed on a webserver. Actually, I am reading each node in a Treeview for generating the Excel. I am using the Microsoft Excel Object 11.0 as reference and the classes in there (Application, Workbook, Sheets...) Please help me in resolving this problem if possible. Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005. 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 {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005. Source Error: Line 241: // Excel objects initialisation Line 242: GC.Collect();// clean up any other excel guys hangin' around... Line 243: oXL = new Excel.Application(); Line 244: oXL.Visible = false; Line 245: Source File: c:\TrouxLicenses\Default.aspx.cs Line: 243 Stack Trace: [COMException (0x80080005): Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005.] _Default.GenerateExcel() in c:\TrouxLicenses\Default.aspx.cs:243 _Default.btnExportToExcel_Click(Object sender, EventArgs e) in c:\TrouxLicenses\Default.aspx.cs:209 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo stBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

      I Offline
      I Offline
      indianet
      wrote on last edited by
      #2

      http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups