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. General Programming
  3. COM
  4. COMException, error code :80040154

COMException, error code :80040154

Scheduled Pinned Locked Moved COM
comhelpcsharpgraphicstutorial
8 Posts 3 Posters 22 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.
  • O Offline
    O Offline
    orelle
    wrote on last edited by
    #1

    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!!

    L A 2 Replies Last reply
    0
    • O orelle

      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!!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The message is clearly telling you what is wrong: Visio is not installed on your system.

      O 1 Reply Last reply
      0
      • L Lost User

        The message is clearly telling you what is wrong: Visio is not installed on your system.

        O Offline
        O Offline
        orelle
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • O orelle

          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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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.

          O 1 Reply Last reply
          0
          • L Lost User

            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.

            O Offline
            O Offline
            orelle
            wrote on last edited by
            #5

            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 :)

            L 1 Reply Last reply
            0
            • O orelle

              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 :)

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              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.

              O 1 Reply Last reply
              0
              • L Lost User

                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.

                O Offline
                O Offline
                orelle
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • O orelle

                  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!!

                  A Offline
                  A Offline
                  Anup Kasat
                  wrote on last edited by
                  #8

                  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.

                  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