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. General Programming
  3. C#
  4. Excel Error :(

Excel Error :(

Scheduled Pinned Locked Moved C#
comhelp
3 Posts 3 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.
  • M Offline
    M Offline
    Mugdha_Aditya
    wrote on last edited by
    #1

    I'm sending mail with excel attchment and it's working fine when I run it from my local machine. but if I try to access it from another machine it's giving me this Error: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. Error coming on first line of below code Microsoft.Office.Interop.Excel.Workbook aBook; Microsoft.Office.Interop.Excel.Application ExlApp = new Microsoft.Office.Interop.Excel.Application(); i have given all rights (http://blog.crowe.co.nz/archive/2006/03/02/589.aspx\[^\]) still error is coming please help me out as soon as possible

    L T 2 Replies Last reply
    0
    • M Mugdha_Aditya

      I'm sending mail with excel attchment and it's working fine when I run it from my local machine. but if I try to access it from another machine it's giving me this Error: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. Error coming on first line of below code Microsoft.Office.Interop.Excel.Workbook aBook; Microsoft.Office.Interop.Excel.Application ExlApp = new Microsoft.Office.Interop.Excel.Application(); i have given all rights (http://blog.crowe.co.nz/archive/2006/03/02/589.aspx\[^\]) still error is coming please help me out as soon as possible

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      It looks like your target machine does not have Excel or the interop libraries installed.

      It's time for a new signature.

      1 Reply Last reply
      0
      • M Mugdha_Aditya

        I'm sending mail with excel attchment and it's working fine when I run it from my local machine. but if I try to access it from another machine it's giving me this Error: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. Error coming on first line of below code Microsoft.Office.Interop.Excel.Workbook aBook; Microsoft.Office.Interop.Excel.Application ExlApp = new Microsoft.Office.Interop.Excel.Application(); i have given all rights (http://blog.crowe.co.nz/archive/2006/03/02/589.aspx\[^\]) still error is coming please help me out as soon as possible

        T Offline
        T Offline
        T M Gray
        wrote on last edited by
        #3

        What exactly are you doing with the Excel objects? You certainly don't need excel to send an e-mail. If you are creating or modifying the spreadsheet before you send it, is it something you could do through the ODBC driver? Don't assume that anything outside of the System namespace will be installed on a server.

        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