ActiveX error

  • Thread starter Thread starter ruca
  • Start date Start date
R

ruca

Cannot create ActiveX component

This is the error that gives me when I try to create an object. I create him like this:

Dim obj as New Object
//this is a component made by other application
obj = CreateObject("cth0mn.hdHrrCl")
If (obj.initialize(conn)) Then //inicialize in my component
.... //my code
End If
obj = Nothing

Dou I have to import something or do anything else????
 
You have to make sure that the object whose progid you are using both exists
on the machine you are trying to instantiate it on, and that the user
account trying to access it has permissions to use it.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

Cannot create ActiveX component

This is the error that gives me when I try to create an object. I create him
like this:

Dim obj as New Object
//this is a component made by other application
obj = CreateObject("cth0mn.hdHrrCl")
If (obj.initialize(conn)) Then //inicialize in my component
.... //my code
End If
obj = Nothing

Dou I have to import something or do anything else????
 
Then you need to check NTFS permissions. If ASP.NET is running under the
machine\aspnet account, then this account will need to have access to this
file.
 
Chris,

How about the same scenario but the object is client side.

Runs fine in html page double clicked but will not run in ASPNET aspx
page...

TIA
Harry
 
There should be no difference between HTML and an ASP.NET page - on the
client side, both are only HTML. Open up the page, and view source, and take
a look for any differences that you see.
 
Back
Top