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