COMException, error code :80040154
-
i'm using the reference Microsoft.Office.Interop.Visio to create a visio drawing document. When trying to obtain a visio application in my c# program as follow : "Application application =new Application()", i got the error below:
La récupération de la fabrique de classes COM pour le composant avec le CLSID {00021A20-0000-0000-C000-000000000046} a échoué en raison de l'erreur suivante : 80040154 Classe non enregistrée (Exception de HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG)).
When using the same type of reference such as "Microsoft.Office.Interop.Word" or "Microsoft.Office.Interop.Excel" everything works properly. Any suggestion on how to address this issue will be really appreciated. Thanks!!
-
i'm using the reference Microsoft.Office.Interop.Visio to create a visio drawing document. When trying to obtain a visio application in my c# program as follow : "Application application =new Application()", i got the error below:
La récupération de la fabrique de classes COM pour le composant avec le CLSID {00021A20-0000-0000-C000-000000000046} a échoué en raison de l'erreur suivante : 80040154 Classe non enregistrée (Exception de HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG)).
When using the same type of reference such as "Microsoft.Office.Interop.Word" or "Microsoft.Office.Interop.Excel" everything works properly. Any suggestion on how to address this issue will be really appreciated. Thanks!!
-
The message is clearly telling you what is wrong: Visio is not installed on your system.
Thanks for your reply. I have visio installed on my system trough Microsoft Virtualization application. That is why, the COM for visio is not found comparing to the COM for Word or Excel which i directly installed on my system(locally installed). How to access visio objet which is installed on a virtual server as it is my case from my c# program. Any idea! Thanks
-
Thanks for your reply. I have visio installed on my system trough Microsoft Virtualization application. That is why, the COM for visio is not found comparing to the COM for Word or Excel which i directly installed on my system(locally installed). How to access visio objet which is installed on a virtual server as it is my case from my c# program. Any idea! Thanks
-
Well, as the message clearly states, Visio is not installed on the system that you are trying to access it from, so you have no choice but to install it. The real system and the virtual system are totally separate entities.
Ok, since it's still a Microsoft technology (i mean the virtualization application for software ), is there any way to access Visio without having to install its on my real system? The fact is that the application Virtualization is an application streaming solution and i run visio manually without any issue. Thanks for your interest and constribution :)
-
Ok, since it's still a Microsoft technology (i mean the virtualization application for software ), is there any way to access Visio without having to install its on my real system? The fact is that the application Virtualization is an application streaming solution and i run visio manually without any issue. Thanks for your interest and constribution :)
-
Member 10825675 wrote:
is there any way to access Visio without having to install its on my real system?
No, As I said before the two systems are entirely separate; it is the same as having two different PCs.
I installed a visio trial version and everything works perfectly! :) Thus i will need to locally install visio on each sytem of my network instead on having its installed on a server and using client app to acess its in order to run my soft. This is the issue actually. Anyway, thanks for your valuable contribution.
-
i'm using the reference Microsoft.Office.Interop.Visio to create a visio drawing document. When trying to obtain a visio application in my c# program as follow : "Application application =new Application()", i got the error below:
La récupération de la fabrique de classes COM pour le composant avec le CLSID {00021A20-0000-0000-C000-000000000046} a échoué en raison de l'erreur suivante : 80040154 Classe non enregistrée (Exception de HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG)).
When using the same type of reference such as "Microsoft.Office.Interop.Word" or "Microsoft.Office.Interop.Excel" everything works properly. Any suggestion on how to address this issue will be really appreciated. Thanks!!
I faced the same error while accessing it from server. what i did is, changed the application pool identity in application pool on IIS. Identity should be the one which has administrator rights to use that application where it is installed. It worked fine after that. Hope it works for you too.