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. Visual Basic
  4. Invoking .Net DLL [modified]

Invoking .Net DLL [modified]

Scheduled Pinned Locked Moved Visual Basic
toolscsharpdotnettestinghelp
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.
  • S Offline
    S Offline
    subramanyeswari
    wrote on last edited by
    #1

    Hi, How to invoke a .Net dll from vb script. While creating the object it is giving the Automation error. My OS is 2000 with .Net framework 1.1. The same script is working on another machine(configuration 2003R2 .Net framework 3.5). Regards, Subramanyeswari

    modified on Wednesday, February 4, 2009 1:06 AM

    C 1 Reply Last reply
    0
    • S subramanyeswari

      Hi, How to invoke a .Net dll from vb script. While creating the object it is giving the Automation error. My OS is 2000 with .Net framework 1.1. The same script is working on another machine(configuration 2003R2 .Net framework 3.5). Regards, Subramanyeswari

      modified on Wednesday, February 4, 2009 1:06 AM

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What do you mean by 'invoke' ? Are you trying to run it through COM ? What version of .NET was the dll written with ?

      Christian Graus Driven to the arms of OSX by Vista.

      S 1 Reply Last reply
      0
      • C Christian Graus

        What do you mean by 'invoke' ? Are you trying to run it through COM ? What version of .NET was the dll written with ?

        Christian Graus Driven to the arms of OSX by Vista.

        S Offline
        S Offline
        subramanyeswari
        wrote on last edited by
        #3

        the .Net dll i think it is written in .Net 1.1. Invoke means when i am instantiating class I am getting the error. Wscript.createobject("NetClass.cls").. here it is failing. it is giving "could not create object" error. Regards

        D 1 Reply Last reply
        0
        • S subramanyeswari

          the .Net dll i think it is written in .Net 1.1. Invoke means when i am instantiating class I am getting the error. Wscript.createobject("NetClass.cls").. here it is failing. it is giving "could not create object" error. Regards

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

          Your .NET component isn't registered as a COM server. You need to use the RegAsm tool to do that. You'll find that somewhere under C:\Windows\Microsoft.NET\Framework. Just search for RegAsm.exe and you'll find it.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          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