lundi 20 avril 2015

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154

i am getting below error when i try to run below line of code.

code:- private excel.Application app = new excel.Application();

error:- Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154.

This code is working fine when microsoft office is install on dev server. but company did not wants to install microsoft office on Production server. So, i have uninstall microsoft office from dev machine.

I have install microsoft office 2010 primary interop assembly(PIARedist.exe). But, still getting same error.

Please help me on this issue.

Aucun commentaire:

Enregistrer un commentaire