Hi All,
I am getting error when I tried to open excel file or to read data from the Microsoft office files....
Retrieving the COM class factory for component with CLSID {6B2C2E50-F005-11D4-9D08-00D0591AE3CB} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
The solutions I found for this are that to give the access rights to related user, through DCOMCNFG, etc.
But this is not a proper solution for the project. This problem occurs when we are using our code through IIS only.
As the Microsoft doesn't allow to Automate MS Office through IIS.
Still I want the solution on this.........So please anybody help on this.......
If I give rights to all users from DCOMCNFG, then also I am getting error.
I got another exception "Access to Visual Basic project is not trusted.", when I tried to access VB code in that Excel file using above created object of Microsoft.Office.Interop.Excel.Application.
Anybody please HELP!!!
for more about this thread please see this,
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/df53f54f-33b1-409f-a4b9-f0e6a2118e94
--
Prakash
↧