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. Sending mail with excel attachment issue

Sending mail with excel attachment issue

Scheduled Pinned Locked Moved ASP.NET
helpcom
6 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.
  • 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 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). 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 still error is coming :( please help me out as soon as possible

    P 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 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). 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 still error is coming :( please help me out as soon as possible

      P Offline
      P Offline
      Prosanta Kundu online
      wrote on last edited by
      #2

      It means that your application user does not have necessary permission to open an excel instance. Open DCOM Config, and Grant Launch & Activation permisson, and Access permission to Microsoft Excel Application. Or you can see this [http://forums.asp.net/t/1303594.aspx]

      M 1 Reply Last reply
      0
      • P Prosanta Kundu online

        It means that your application user does not have necessary permission to open an excel instance. Open DCOM Config, and Grant Launch & Activation permisson, and Access permission to Microsoft Excel Application. Or you can see this [http://forums.asp.net/t/1303594.aspx]

        M Offline
        M Offline
        Mugdha_Aditya
        wrote on last edited by
        #3

        i checked the same link and given rights like tht only still it gives error :(

        P 1 Reply Last reply
        0
        • M Mugdha_Aditya

          i checked the same link and given rights like tht only still it gives error :(

          P Offline
          P Offline
          Prosanta Kundu online
          wrote on last edited by
          #4

          If you are deploying this Windows Server 2008 then see this link [http://social.msdn.microsoft.com/Forums/en-US/innovateonoffice/thread/b81a3c4e-62db-488b-af06-44421818ef91?prof=required]

          M 1 Reply Last reply
          0
          • P Prosanta Kundu online

            If you are deploying this Windows Server 2008 then see this link [http://social.msdn.microsoft.com/Forums/en-US/innovateonoffice/thread/b81a3c4e-62db-488b-af06-44421818ef91?prof=required]

            M Offline
            M Offline
            Mugdha_Aditya
            wrote on last edited by
            #5

            its its win2003 server

            P 1 Reply Last reply
            0
            • M Mugdha_Aditya

              its its win2003 server

              P Offline
              P Offline
              Prosanta Kundu online
              wrote on last edited by
              #6

              Grant Access Permission in DCOM Config for Network Service account (Application Pool user)

              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