Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
| Search | Today's Posts | Mark Forums Read
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 22nd, 2006, 05:07 AM
Registered User
Join Date: May 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error in WScript.CreateObject


I have recently upgraded a VB6.0 ActiveX DLL to VB.NET. This DLL is basically used for playback of java and vb scripts.

I earlier used to register the VB6.0 DLL with REGSVR32.EXE so the generated scripts (java and VB) can use the COM objects.

However, now after upgrading to VB.NET, and installing the .NET framewrok also on my machine, I am getting the following error while playing the scripts.

Error:"Could not locate automation class named APRecPlay.TInput."
Source: WScript.CreateObject

I also tried registring the VB.NET DLL with regasm.exe. But that doesnt help either.

Any suggestions?


  #2 (permalink)  
Old June 5th, 2006, 03:34 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

If I remember right, there is a set of steps that you need to take to make a .NET assembly accessible to COM. (It needs a GUID, etc.) A .NET assembly usually is not available for that technology.

You should investigate that line of thought, and see if you can find a help topic on that.

Similar Threads
Thread Thread Starter Forum Replies Last Post
CreateObject error plsames VB How-To 3 October 14th, 2006 07:20 AM
CreateObject Type mismatch error Deepmala Classic ASP Professional 1 February 7th, 2006 04:28 AM
Type Miss match error for Server.CreateObject Deepmala Classic ASP Components 0 December 6th, 2005 02:50 AM
WScript RTC Classic ASP Basics 2 June 8th, 2005 04:03 AM
error when createobject excel.application vovo Classic ASP Professional 0 February 3rd, 2005 12:29 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.