Sending mail with excel attachment issue
-
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
-
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
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]
-
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]
i checked the same link and given rights like tht only still it gives error :(
-
i checked the same link and given rights like tht only still it gives error :(
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]
-
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]
its its win2003 server
-
its its win2003 server
Grant Access Permission in DCOM Config for Network Service account (Application Pool user)