If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > how to use Activex Dll or Activex Exe in asp?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-06, 10:27
rudra rudra is offline
L O S T in Reality
 
Join Date: Nov 2005
Location: San Francisco, CA
Posts: 506
Red face how to use Activex Dll or Activex Exe in asp?

Hi,
I am trying to use component developed in Vb.What I am doing is : -
1.I am developing an Activex Dll named "Book.dll".This Book.Dll has a class named "item".This class has a function named "show()".

Public function Show()
show="hello Joy"
end function

I am trying to use this component in asp.I am writing
Dim obj
set obj=Server.Createobject("Book.Item")
reponse.write(obj.show())
but this is giving an error.....
The error is permission denied to this component.I can't make out what is going wrong.Plz help me...
Thanks in Advance,
Joydeep

Last edited by rudra; 02-05-06 at 01:17.
Reply With Quote
  #2 (permalink)  
Old 02-05-06, 01:06
kropes2001 kropes2001 is offline
Registered User
 
Join Date: Nov 2005
Location: Honolulu HI
Posts: 118
so..
you designed the DLL.

are you trying to use this on your own machine (VB Scripting or as a webpage) or are you trying to use this on a website that you have and it is hosted on someone elses servers ?

if you are tring to use it on a website hosted someplace else...
good luck.

the reason you are getting the error is because the DLL has to be registered and installed on the web server (just having it in the directory there is not good enough).

And the reason i say good luck is because most hosting companies (including us) will not install custom DLL's
__________________
.
.
http://www.GetMySiteOnline.com - Can you help me Get My Site Online ? (Yes. That is EXACTLY what we do.)

http://www.GetMySiteOnline.com/FightingSpam/
__________________________
caeli enarrant gloriam Dei !

Last edited by kropes2001; 02-05-06 at 01:14.
Reply With Quote
  #3 (permalink)  
Old 02-05-06, 01:21
rudra rudra is offline
L O S T in Reality
 
Join Date: Nov 2005
Location: San Francisco, CA
Posts: 506
Hi
Will u plz tell me how to register a dll in web server.Well, I have designed it myself in my machine and using it through Vb script in asp page.I am testing it in the same machine.When I am creating the dll using vb ,I think its registering the dll and when I am using it in vb ,its working fine.But in asp its giving an error while creating the object.Plz help...
Thnaks!!
Joydeep
Reply With Quote
  #4 (permalink)  
Old 02-05-06, 03:01
rudra rudra is offline
L O S T in Reality
 
Join Date: Nov 2005
Location: San Francisco, CA
Posts: 506
Red face Using COM in Asp

Hi
Will u plz tell me how to register a dll in web server.Well, I have designed it myself in my machine and using it through Vb script in asp page.I am testing it in the same machine.When I am creating the dll using vb ,I think its registering the dll and when I am using it in vb ,its working fine.But in asp its giving an error while creating the object.Plz help...
Thnaks!!
Joydeep
Reply With Quote
  #5 (permalink)  
Old 02-17-06, 05:55
DBA_Rahul DBA_Rahul is offline
Registered User
 
Join Date: May 2004
Location: bangalore
Posts: 270
Even to run the ASP Page on your local system where you have made the VB DLL you need to register the DLL.

Use this,
Start - Run - regsvr32 (Space)(Physical Path Of the DLL) - Enter
__________________
Reply With Quote
  #6 (permalink)  
Old 02-22-06, 02:02
rudra rudra is offline
L O S T in Reality
 
Join Date: Nov 2005
Location: San Francisco, CA
Posts: 506
Quote:
Originally Posted by DBA_Rahul
Even to run the ASP Page on your local system where you have made the VB DLL you need to register the DLL.

Use this,
Start - Run - regsvr32 (Space)(Physical Path Of the DLL) - Enter
I think I am doing all the things right,I have registered them also.Its working fine through vb when I am using the Dll in vb.But when I am using it in asp

dim obj
set obj=server.createobject("Book.item")
its showing a error that permission is denied for the component.I can't make out whats going wrong.
Plz comment.
Thanks!!
Joydeep
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On