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. .NET (Core and Framework)
  4. Com Exception Unhandled

Com Exception Unhandled

Scheduled Pinned Locked Moved .NET (Core and Framework)
comhelpcsharp
4 Posts 3 Posters 0 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.
  • V Offline
    V Offline
    vkumar09
    wrote on last edited by
    #1

    I have a desktop application in .Net 2.0 I have a com class added in bin folder Interop.prjBatPrt.dll now running the application I'm getting the following error... ComException Was Unhandled... Retrieving the COM class factory for component with CLSID {00A4F4E0-380D-4DDD-9752-50FDA24BAC15} failed due to the following error: 80040154. can anyone help me to figure it out....

    A D 2 Replies Last reply
    0
    • V vkumar09

      I have a desktop application in .Net 2.0 I have a com class added in bin folder Interop.prjBatPrt.dll now running the application I'm getting the following error... ComException Was Unhandled... Retrieving the COM class factory for component with CLSID {00A4F4E0-380D-4DDD-9752-50FDA24BAC15} failed due to the following error: 80040154. can anyone help me to figure it out....

      A Offline
      A Offline
      Arindam Tewary
      wrote on last edited by
      #2

      This is a general error. What you can do is , 1. Check that the class installed is actuallt installed properly.( if not then re-installe that correctly) 2. Reset the identity user id/passwork that you might have there in com explorer. 2. Lastly, make sure that COM component is working correct at runtime. That can be tested this way: You can write a vb script file(.vbs) and try to invoke that COM component by just creating an instance of the class. If that is created then using the vbscript itself call the method to see whether that method which you might have used is actually invoked correctly. Sample VBscript code.Save this as "test.vbs" and double click and run.

      obj = CreateObject("yourcalssname")
      msgbox(IsObject(obj))

      Thanks, Arindam D Tewary

      V 1 Reply Last reply
      0
      • A Arindam Tewary

        This is a general error. What you can do is , 1. Check that the class installed is actuallt installed properly.( if not then re-installe that correctly) 2. Reset the identity user id/passwork that you might have there in com explorer. 2. Lastly, make sure that COM component is working correct at runtime. That can be tested this way: You can write a vb script file(.vbs) and try to invoke that COM component by just creating an instance of the class. If that is created then using the vbscript itself call the method to see whether that method which you might have used is actually invoked correctly. Sample VBscript code.Save this as "test.vbs" and double click and run.

        obj = CreateObject("yourcalssname")
        msgbox(IsObject(obj))

        Thanks, Arindam D Tewary

        V Offline
        V Offline
        vkumar09
        wrote on last edited by
        #3

        thanx arindam ...problem solved

        1 Reply Last reply
        0
        • V vkumar09

          I have a desktop application in .Net 2.0 I have a com class added in bin folder Interop.prjBatPrt.dll now running the application I'm getting the following error... ComException Was Unhandled... Retrieving the COM class factory for component with CLSID {00A4F4E0-380D-4DDD-9752-50FDA24BAC15} failed due to the following error: 80040154. can anyone help me to figure it out....

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          vkumar09 wrote:

          I have a com class added in bin folder Interop.prjBatPrt.dll

          No, that's not a COM class. That is a wrapper used as an interface between your managed code and the COM component you're code is using. A common newbie mistake is to deploy just that .DLL with the application and wonder why the app suddenly doesn't work. You also need the COM component you're using installed on the target machine as well as the wrapper .DLL's.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          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