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. C#
  4. .Net COM interop challenge

.Net COM interop challenge

Scheduled Pinned Locked Moved C#
comcsharpwindows-adminhelp
6 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.
  • J Offline
    J Offline
    Jason McBurney
    wrote on last edited by
    #1

    Unable to install and run .Net application which uses COM Interop. Please offer suggestions. The Following message occurs on the target machine: System.Runtime.InteropServices.ComException(0x80040112): Creating an instance of the COM component with CLSID {248DD896-BB45-11CF-9ABC-0080C7E7B78D } from the IClassFactory failed due to the following error: 80040112 At Esc.Tos.Utilities.TCP.escTCP..ctor() At clsTCP..ctror() At mdlMain.ConfigureGlobalItems(frmMain theForm) At frmMAin..ctor() At Program.Main() Of course the application runs dandy on the development box, and other development boxes. Background and useful information: 1) Com object 248DD896-BB45-11CF-9ABC-0080C7E7B78D is the Winsock v.6 control. 2) On the target machine there is application A and application B Application A is a VB6 application which uses said COM object and sends TCP Messages Therefore, I assume that com object is correctly install and functional. Application B is My .Net application and throws the above error. Things I have tried: 1) Copy OCX locally and reregister 2) Run RegASM on the Interop Assemblies 3) Clean the registry 4) Validated the Interop code is pointing to the correct OCX. (using Lutz) 5) Installed applicaiton onto alternate development box using xcopy and life is good. ~Jason

    You can only be young once. But you can always be immature. - Dave Barry

    P A J 3 Replies Last reply
    0
    • J Jason McBurney

      Unable to install and run .Net application which uses COM Interop. Please offer suggestions. The Following message occurs on the target machine: System.Runtime.InteropServices.ComException(0x80040112): Creating an instance of the COM component with CLSID {248DD896-BB45-11CF-9ABC-0080C7E7B78D } from the IClassFactory failed due to the following error: 80040112 At Esc.Tos.Utilities.TCP.escTCP..ctor() At clsTCP..ctror() At mdlMain.ConfigureGlobalItems(frmMain theForm) At frmMAin..ctor() At Program.Main() Of course the application runs dandy on the development box, and other development boxes. Background and useful information: 1) Com object 248DD896-BB45-11CF-9ABC-0080C7E7B78D is the Winsock v.6 control. 2) On the target machine there is application A and application B Application A is a VB6 application which uses said COM object and sends TCP Messages Therefore, I assume that com object is correctly install and functional. Application B is My .Net application and throws the above error. Things I have tried: 1) Copy OCX locally and reregister 2) Run RegASM on the Interop Assemblies 3) Clean the registry 4) Validated the Interop code is pointing to the correct OCX. (using Lutz) 5) Installed applicaiton onto alternate development box using xcopy and life is good. ~Jason

      You can only be young once. But you can always be immature. - Dave Barry

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Yeah, don't use COM Interop.

      1 Reply Last reply
      0
      • J Jason McBurney

        Unable to install and run .Net application which uses COM Interop. Please offer suggestions. The Following message occurs on the target machine: System.Runtime.InteropServices.ComException(0x80040112): Creating an instance of the COM component with CLSID {248DD896-BB45-11CF-9ABC-0080C7E7B78D } from the IClassFactory failed due to the following error: 80040112 At Esc.Tos.Utilities.TCP.escTCP..ctor() At clsTCP..ctror() At mdlMain.ConfigureGlobalItems(frmMain theForm) At frmMAin..ctor() At Program.Main() Of course the application runs dandy on the development box, and other development boxes. Background and useful information: 1) Com object 248DD896-BB45-11CF-9ABC-0080C7E7B78D is the Winsock v.6 control. 2) On the target machine there is application A and application B Application A is a VB6 application which uses said COM object and sends TCP Messages Therefore, I assume that com object is correctly install and functional. Application B is My .Net application and throws the above error. Things I have tried: 1) Copy OCX locally and reregister 2) Run RegASM on the Interop Assemblies 3) Clean the registry 4) Validated the Interop code is pointing to the correct OCX. (using Lutz) 5) Installed applicaiton onto alternate development box using xcopy and life is good. ~Jason

        You can only be young once. But you can always be immature. - Dave Barry

        A Offline
        A Offline
        Adeel Chaudhry
        wrote on last edited by
        #3

        Install VB6 tools on the machine you need to deploy.....it will do all what is necessary to run it! HTH.

        Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.

        J 1 Reply Last reply
        0
        • A Adeel Chaudhry

          Install VB6 tools on the machine you need to deploy.....it will do all what is necessary to run it! HTH.

          Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.

          J Offline
          J Offline
          Jason McBurney
          wrote on last edited by
          #4

          VB6 Tools? I am not familar with that product, Could you include a link. Googling it gives me ... lots of similar stuff.

          You can only be young once. But you can always be immature. - Dave Barry

          A 1 Reply Last reply
          0
          • J Jason McBurney

            VB6 Tools? I am not familar with that product, Could you include a link. Googling it gives me ... lots of similar stuff.

            You can only be young once. But you can always be immature. - Dave Barry

            A Offline
            A Offline
            Adeel Chaudhry
            wrote on last edited by
            #5

            I found that in Visual Studio 6 installation once i needed! The issue is with registry entries, if you run VS6 installation and install only Tools from it, hopefully the problem will be solved. Additionally, this might be helpful http://support.microsoft.com/kb/146219[^] HTH.

            Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.

            1 Reply Last reply
            0
            • J Jason McBurney

              Unable to install and run .Net application which uses COM Interop. Please offer suggestions. The Following message occurs on the target machine: System.Runtime.InteropServices.ComException(0x80040112): Creating an instance of the COM component with CLSID {248DD896-BB45-11CF-9ABC-0080C7E7B78D } from the IClassFactory failed due to the following error: 80040112 At Esc.Tos.Utilities.TCP.escTCP..ctor() At clsTCP..ctror() At mdlMain.ConfigureGlobalItems(frmMain theForm) At frmMAin..ctor() At Program.Main() Of course the application runs dandy on the development box, and other development boxes. Background and useful information: 1) Com object 248DD896-BB45-11CF-9ABC-0080C7E7B78D is the Winsock v.6 control. 2) On the target machine there is application A and application B Application A is a VB6 application which uses said COM object and sends TCP Messages Therefore, I assume that com object is correctly install and functional. Application B is My .Net application and throws the above error. Things I have tried: 1) Copy OCX locally and reregister 2) Run RegASM on the Interop Assemblies 3) Clean the registry 4) Validated the Interop code is pointing to the correct OCX. (using Lutz) 5) Installed applicaiton onto alternate development box using xcopy and life is good. ~Jason

              You can only be young once. But you can always be immature. - Dave Barry

              J Offline
              J Offline
              Jason McBurney
              wrote on last edited by
              #6

              Alright, here is the solution. There is a licenes registry key missing. The most likely violates some eula somewhere. so use with caution. but adding this key will reactiviate the winsock.ocx [HKEY_CLASSES_ROOT\Licenses\2c49f800-c2dd-11cf-9ad6-0080c7e7b78d] @ = "mlrljgrlhltlngjlthrligklpkrhllglqlrk"

              You can only be young once. But you can always be immature. - Dave Barry

              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